.rmai {
  --rmai-gold: #ccb966;
  --rmai-gold-dark: #756724;
  --rmai-ink: #2b2b29;
  --rmai-muted: #656560;
  --rmai-border: #d9d8d2;
  color: var(--rmai-ink);
  container-type: inline-size;
  margin: 28px 0;
  font-family: Roboto, "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", sans-serif;
}

.rmai,
.rmai * {
  box-sizing: border-box;
}

.rmai__choices {
  display: grid;
  gap: 0;
  align-items: start;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8d8d4;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
}

.rmai__choices--dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rmai__disclosure {
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rmai__choices--dual .rmai__disclosure:not([open]) {
  border-right: 1px solid #e1e1dd;
}

.rmai__disclosure[open] {
  grid-column: 1 / -1;
}

.rmai--open .rmai__human-trigger {
  display: none;
}

.rmai__trigger {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 60px;
  padding: 11px 16px 11px 18px;
  cursor: pointer;
  list-style: none;
  background: #fff;
  transition: background-color 140ms ease;
}

.rmai__trigger::-webkit-details-marker {
  display: none;
}

.rmai__trigger:hover,
.rmai__disclosure[open] .rmai__trigger {
  background: #f6f6f5;
}

.rmai__disclosure[open] .rmai__trigger {
  border-bottom: 1px solid #dfdfdb;
}

.rmai__trigger:focus-visible,
.rmai__angle:focus-visible,
.rmai__service:focus-visible,
.rmai__copy:focus-visible,
.rmai__human-trigger:focus-visible {
  outline: 3px solid #1d5fd1;
  outline-offset: 2px;
}

.rmai__trigger-copy {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}

.rmai__title {
  display: block;
  overflow: hidden;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmai__trigger-arrow {
  flex: 0 0 auto;
  color: #8b7b32;
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.rmai__disclosure[open] .rmai__trigger-arrow {
  transform: rotate(90deg);
}

.rmai__frame {
  padding: 20px 22px 21px;
  background: #fff;
}

.rmai__question-title,
.rmai__notice,
.rmai__status {
  margin: 0;
}

.rmai__question-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.rmai__angles {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.rmai__angle-item {
  padding: 0;
  margin: 0;
}

.rmai__angle {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px 10px 15px;
  color: var(--rmai-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d2d1cb;
  border-radius: 5px;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.rmai__angle:hover,
.rmai__angle[aria-expanded="true"] {
  background: #f7f7f7;
  border-color: #aa9846;
  box-shadow: 0 2px 7px rgb(75 66 28 / 7%);
}

.rmai__angle-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.rmai__angle-arrow {
  flex: 0 0 auto;
  color: #8b7b32;
  font-size: 16px;
  line-height: 1;
  transition: transform 140ms ease;
}

.rmai__angle:hover .rmai__angle-arrow,
.rmai__angle[aria-expanded="true"] .rmai__angle-arrow {
  transform: translateX(2px);
}

.rmai__panel {
  padding: 16px;
  margin-top: 12px;
  background: #f6f6f6;
  border: 1px solid #d5d5d2;
  border-radius: 5px;
}

.rmai__panel[hidden] {
  display: none;
}

.rmai__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.rmai__service {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  color: var(--rmai-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid #cfcec7;
  border-radius: 5px;
}

.rmai__service:hover {
  color: #171717;
  background: #f3f3f3;
  border-color: #b4a352;
}

.rmai__service-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
}

.rmai__service-arrow {
  color: #847a51;
  font-size: 12px;
}

.rmai__copy {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  margin-top: 8px;
  color: #59564b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: 1px dashed #b8b4a6;
  border-radius: 4px;
}

.rmai__copy:hover {
  color: #33312b;
  background: #fff;
  border-color: #8f8767;
}

.rmai__notice {
  margin-top: 11px;
  color: var(--rmai-muted);
  font-size: 12px;
  line-height: 1.6;
}

.rmai__status {
  min-height: 1.5em;
  margin-top: 4px;
  color: #5f572f;
  font-size: 12px;
  font-weight: 700;
}

.rmai__human-trigger {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 60px;
  padding: 11px 16px 11px 18px;
  color: var(--rmai-ink);
  text-decoration: none;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rmai__human-trigger:hover {
  color: var(--rmai-ink);
  background: #f7f7f7;
}

.rmai__human-trigger strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmai__human-arrow {
  flex: 0 0 auto;
  color: #252525;
  font-size: 18px;
  line-height: 1;
}

.rmai__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rmai--compact .rmai__frame {
  padding: 15px;
}

@container (max-width: 540px) {
  .rmai__choices--dual {
    grid-template-columns: 1fr;
  }

  .rmai__choices--dual .rmai__disclosure:not([open]) {
    border-right: 0;
    border-bottom: 1px solid #e1e1dd;
  }

  .rmai__trigger {
    gap: 10px;
    min-height: 58px;
    padding: 11px 12px;
  }

  .rmai__title {
    font-size: 15px;
  }

  .rmai__human-trigger {
    min-height: 58px;
    padding: 11px 12px;
  }

  .rmai__frame {
    padding: 17px 13px 15px;
  }

  .rmai__angle {
    min-height: 52px;
    padding-left: 13px;
  }

  .rmai__panel {
    padding: 14px 12px;
  }

  .rmai__services {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rmai__trigger,
  .rmai__trigger-arrow,
  .rmai__angle,
  .rmai__angle-arrow {
    transition: none;
  }
}
