.rich-text {
  width: 100%;
  position: relative;
}

.rich-text > *:first-child {
  padding-top: 0;
  margin-top: 0;
}

.rich-text img {
  vertical-align: middle;
}

.rich-text h2:first-child {
  padding-top: 0;
}

.rich-text h2,
.rich-text h3
{
  align-items: center;
  display: flex;
}

.rich-text h2 img,
.rich-text h3 img {
  max-height: 16px;
  width: auto;
  margin-right: 8px;
}

.rich-text ul, .rich-text ol {
  list-style: revert;
  padding: 0 1.5em;
  margin: revert;
}

.rich-text ul ul,
.rich-text ol ol,
.rich-text ul ol,
.rich-text ol ul {
    padding-inline-start: 20px;
}

.rich-text .replaced-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  cursor: inherit;
  margin-right: 4px;
}

.rich-text p {
  margin: 16px 0;
  padding: revert;
}

.rich-text .accordion-body {
    margin: 16px 0;
}

.rich-text h2:not(:first-child):not(hr + h2) {
  padding-top: 16px;
}

.rich-text hr + h2,
.rich-text hr + h3,
.rich-text hr + h4,
.rich-text hr + h5 {
  padding-top: 0;
}

.rich-text hr {
  border: 0;
  border-top: 1px solid var(--gray-100);
  margin: 40px 0;
}

.rich-text .well {
  background-color: var(--blue-25) !important;
  align-items: flex-start;
  margin: 24px 0;
  padding: 16px 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  border-radius: 8px;
  border: 1px solid;
  border-color: var(--gray-100);
}


.rich-text .well h2 {
  position: relative;
  flex: 1;
  font-family: var(--headings-font-family);
  font-weight: var(--headings-md-550-font-weight);
  color: #171717;
  font-size: var(--headings-md-550-font-size);
  letter-spacing: var(--headings-md-550-letter-spacing);
  line-height: var(--headings-md-550-line-height);
  font-style: var(--headings-md-550-font-style);
}

.rich-text .btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  min-width: 64px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  position: relative;
  border-radius: 58px;
  border: 1px solid;
  background-color: var(--white-1000);
  border-color: var(--blue-500);
  cursor: pointer;
  color: var(--blue-500);
  font-weight: 400;
}

.rich-text .btn.disabled {
  background-color: var(--gray-100);
  border-color: var(--gray-100);
  color: var(--gray-400);
}

.rich-text .btn:hover {
  background-color: var(--blue-500);
  color: var(--white-1000);
  border-color: var(--blue-500);
}


.rich-text a strong {
    text-decoration: inherit;
    color: inherit;
    font-size: inherit;
    font-style: inherit;
}

.rich-text td > p:first-child {
  margin-top: 0;
}

.rich-text td > p:last-child {
  margin-bottom: 0;
}

.rich-text .portal-link {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  color: var(--blue-500);
  font-weight: 500;
}

.rich-text .portal-link:hover {
  text-decoration: none;
}

.rich-text .portal-link:hover .portal-link-text {
  text-decoration: underline;
}

.rich-text strong {
  color: var(--black-1000);
}

.rich-text table tr:nth-child(odd) {
  background-color: var(--blue-50);
}

.rich-text table tr:nth-child(even) {
  background-color: var(--white-1000);
}