.eram-plans {
  --eram-plan-accent: var(--eram-profile-accent, #2d9d8c);
  --eram-plan-line: #e0ebe7;
  --eram-plan-selected: #ddefed;
  text-align: right;
}

@supports (color: color-mix(in srgb, black, white)) {
  .eram-plans {
    --eram-plan-selected: color-mix(in srgb, var(--eram-plan-accent) 16%, white);
  }
}

.eram-plans .eram-plans-header {
  display: grid;
  gap: 8px;
  margin-block-end: 20px;
}

.eram-plans .eram-plans-header :is(h2, p) {
  margin: 0;
  text-align: right;
}

.eram-plans .eram-plans-header h2 {
  color: #535353;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.eram-plans .eram-plans-header p {
  color: #666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.eram-plans .eram-plan-groups {
  display: grid;
  margin-block-end: 20px;
  overflow-anchor: none;
}

.eram-plans .eram-plans-empty {
  margin: 0;
  padding: 10px;
  text-align: center;
}

.eram-plans .eram-plan-group:not(:last-child) {
  border-block-end: 1px solid var(--eram-plan-line);
}

.eram-plans .eram-plan-type {
  display: flex;
  box-sizing: border-box;
  min-block-size: 47px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 14px 10px;
  color: #35514a;
  background-color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.eram-plans summary.eram-plan-type {
  position: relative;
  padding-inline-end: 34px;
  list-style: none;
  cursor: pointer;
}

.eram-plans summary.eram-plan-type::-webkit-details-marker {
  display: none;
}

.eram-plans summary.eram-plan-type::after {
  position: absolute;
  inset-inline-end: 15px;
  inset-block-start: 50%;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border: solid #4f8076;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform .24s ease;
}

.eram-plans details[open] > summary.eram-plan-type::after {
  transform: translateY(-30%) rotate(225deg);
}

.eram-plans .eram-plan-icon {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  block-size: 32px;
  border-radius: 10px;
  font-size: 17px;
}

.eram-plans .eram-plan-icon--phone {
  color: #63aea2;
  background-color: #63aea23d;
}

.eram-plans .eram-plan-icon--video {
  color: #f2799f;
  background-color: #fcd4e1;
}

.eram-plans .eram-plan-icon--text {
  color: #847db7;
  background-color: #847db73d;
}

.eram-plans .eram-plan-rows {
  display: grid;
  isolation: isolate;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

.eram-plans .eram-plan-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-block-size: 66px;
  padding: 10px;
}

.eram-plans .eram-plan-row + .eram-plan-row::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 12px;
  block-size: 1px;
  background-color: var(--eram-plan-line);
  content: "";
  pointer-events: none;
}

.eram-plans .eram-plan-summary {
  display: grid;
  justify-items: start;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: right;
}

.eram-plans .eram-plan-choice {
  cursor: pointer;
}

/* Extend the choice to the price column, which contains HikaShop's own HTML. */
.eram-plans .eram-plan-choice::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 10px;
  content: "";
}

.eram-plans .eram-plan-row::after,
.eram-plans .eram-plan-selection {
  position: absolute;
  pointer-events: none;
}

.eram-plans .eram-plan-row::after {
  inset: 4px 3px;
  border-radius: 11px;
  z-index: -2;
  background-color: #f7fbfa;
  opacity: 0;
  content: "";
  transition: opacity .18s ease;
}

@media (hover: hover) {
  .eram-plans:not(.eram-plans-preview) .eram-plan-row:hover::after {
    opacity: 1;
  }
}

.eram-plans .eram-plan-selection {
  inset: 0;
  border-radius: 9px;
  z-index: -1;
  background-color: var(--eram-plan-selected);
  opacity: 0;
}

.eram-plans .eram-plan-row:has(.eram-plan-choice[aria-pressed="true"]) > .eram-plan-selection {
  opacity: 1;
}

.eram-plans .eram-plan-choice:focus-visible {
  outline: none;
}

.eram-plans .eram-plan-type:focus-visible,
.eram-plans .eram-plan-choice:focus-visible::after,
.eram-plans .eram-plan-start:focus-visible {
  outline: 2px solid var(--eram-plan-accent);
  outline-offset: -2px;
}

.eram-plans .eram-plan-duration {
  color: #304842;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
}

.eram-plans .eram-plan-wait {
  color: #8b8b8b;
  font-size: 11px;
  line-height: 1.7;
}

.eram-plans .eram-plan-price {
  color: var(--eram-plan-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: left;
  overflow-wrap: anywhere;
}

.eram-plans .eram-plan-price > [class^="hikashop_inserted_product_"] {
  text-align: inherit !important;
}

.eram-plans .hikashop_product_price_before_discount {
  display: block;
}

.eram-plans .hikashop_product_price_before_discount_amount {
  font-size: 11px;
  opacity: .6;
}

.eram-plans .eram-plan-start.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-block-size: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--eram-plan-accent);
  border-radius: 11px;
  color: #fff;
  background-color: var(--eram-plan-accent);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .eram-plans .eram-plans-header h2 {
    font-size: 17px;
  }

  .eram-plans .eram-plan-row {
    min-block-size: 60px;
  }

  .eram-plans .eram-plan-price {
    font-size: 13px;
  }

  .eram-plans .eram-plan-start.btn {
    min-block-size: 44px;
    padding-block: 9px;
  }
}

@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .eram-plans details.eram-plan-group::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size .26s ease, opacity .2s ease, content-visibility .26s allow-discrete;
    }

    .eram-plans details.eram-plan-group[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .eram-plans summary.eram-plan-type::after,
  .eram-plans .eram-plan-row::after {
    transition: none;
  }
}
