.plan-billing { margin: 0 0 28px; }

.billing-selector {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 5px;
  border: 1px solid #dcd8e6;
  border-radius: 999px;
  background: #eae7f0;
}

.billing-legend,
.billing-selector input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.billing-selector label { position: relative; cursor: pointer; }
.billing-selector label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #57515f;
  font-size: 14px;
  font-weight: 550;
}

.billing-selector input:checked + span {
  background: #fff;
  color: #221d2b;
  box-shadow: 0 2px 8px #23193814;
}
.billing-selector input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.billing-selector em {
  border-radius: 999px;
  padding: 4px 7px;
  background: #e5dcff;
  color: #4919b5;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
.billing-selector input:checked + span em { background: var(--violet); color: #fff; }

.billing-explanation {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.plan-price-offer:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
}
.plan-price-offer del { color: var(--muted); }
.plan-discount {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e5dcff;
  color: #4919b5;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.plan-price-offer:not([hidden]) + .plan-summary-price { margin-top: 8px; }
.price-table thead .plan-price-offer:not([hidden]) + strong { margin-top: 8px; }
.plan-billing-note {
  margin: 8px 0 0;
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 400;
}
.plan-yearly-savings { display: block; color: #4919b5; font-weight: 550; }
.price-table thead .plan-billing-note { margin: -8px 0 16px; }

@media (max-width: 520px) {
  .billing-selector label > span { padding-inline: 14px; }
  .plan-summary-price { font-size: 36px; }
  .plan-details .price-table thead strong { font-size: 28px; }
  .price-table thead .plan-billing-note { min-height: 64px; }
}
