/* Billing page — extends dashboard shell */

:root {
  --bill-purple: var(--dash-accent);
  --bill-plan-cosmos-deep: #1b2441;
  --bill-plan-cosmos-mid: #43508f;
  --bill-plan-cosmos-light: #616ca2;
  --bill-purple-soft: var(--dash-surface-hover);
  --bill-card-elevated: var(--dash-elevated);
  --bill-border: rgba(255, 255, 255, 0.08);
  --bill-text: #f4f4f5;
  --bill-danger: #ef4444;
  --bill-danger-soft: rgba(239, 68, 68, 0.12);
  --bill-right-w: 320px;
}

body.bill-page {
  --dash-purple: var(--bill-purple);
  --dash-purple-soft: var(--bill-purple-soft);
}

.bill-page .dash-new-btn {
  background: var(--bill-purple);
}

.bill-page .dash-pro__btn {
  background: var(--bill-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bill-page .dash-search input:focus {
  border-color: var(--dash-border-strong);
  box-shadow: 0 0 0 3px var(--dash-surface-hover);
}



.bill-content {
  padding: var(--dash-content-y, 32px) var(--dash-page-x, 32px);
  padding-left: calc(var(--dash-page-x, 32px) + var(--dash-mobile-nav-gutter, 0px));
  padding-bottom: calc(var(--dash-content-y, 32px) + var(--dash-content-pad-bottom, 0px));
  flex: 1;
  min-width: 0;
  container: bill-content / inline-size;
}

.bill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, var(--bill-right-w));
  gap: var(--dash-gap, 24px);
  align-items: start;
}

.bill-main {
  display: flex;
  flex-direction: column;
  gap: var(--dash-gap, 24px);
  min-width: 0;
  container: bill-main / inline-size;
}

.bill-aside {
  display: flex;
  flex-direction: column;
  gap: var(--dash-gap, 24px);
  position: sticky;
  top: var(--dash-gap, 24px);
  min-width: 0;
  margin-top: calc(21.5px + 10px + 40px + var(--dash-gap, 24px));
}

/* Breadcrumb */
.bill-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.bill-crumb a {
  color: var(--dash-text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.bill-crumb a:hover {
  color: var(--bill-purple);
}

.bill-crumb__sep {
  opacity: 0.5;
}

.bill-crumb [aria-current="page"] {
  color: var(--bill-text);
}

.bill-head {
  margin-bottom: 4px;
}

.bill-head .settings-crumb {
  margin-bottom: 10px;
}

.bill-title {
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  color: var(--bill-text);
}

.bill-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--dash-text-muted);
  line-height: 1.45;
}

/* Hero plan card */
.bill-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 18px;
  min-height: 132px;
  padding: 18px;
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card, 20px);
  box-shadow: none;
  transition: background 150ms ease;
  container: bill-plan-card / inline-size;
}

.bill-hero:hover {
  background: var(--dash-card);
}

.bill-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.bill-hero__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bill-hero__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(238, 238, 238, 0.16), rgba(238, 238, 238, 0.06));
}

.bill-hero__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bill-card-elevated);
  color: var(--bill-text);
}

.bill-hero__identity {
  min-width: 0;
}

.bill-hero__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bill-hero__name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--bill-text);
}

.bill-hero__note {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.bill-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bill-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  color: var(--dash-text-muted);
}

.bill-features svg {
  color: var(--dash-green);
  flex-shrink: 0;
}

.bill-hero__price {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 0;
  text-align: left;
}

.bill-hero__amount {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--bill-text);
  line-height: 1;
}

.bill-hero__currency {
  font-size: 28px;
  font-weight: 600;
  vertical-align: top;
}

.bill-hero__period {
  font-size: 16px;
  font-weight: 500;
  color: var(--dash-text-muted);
}

.bill-hero__freq {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--dash-text-muted);
}

/* Shared card */
.bill-card {
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card, 20px);
  padding: 20px;
  box-shadow: none;
  transition: background 150ms ease;
}

.bill-card:hover {
  background: var(--dash-card);
}

.bill-card__head {
  margin-bottom: 16px;
}

.bill-card__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--bill-text);
}

.bill-card__head .bill-card__title {
  margin-bottom: 6px;
}

.bill-card__subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.45;
}

/* Detail rows */
.bill-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bill-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.bill-detail-row__label {
  font-size: 14px;
  color: var(--dash-text-muted);
  flex-shrink: 0;
}

.bill-detail-row__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--bill-text);
  text-align: right;
}

.bill-detail-row__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bill-pay-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bill-text);
}

.bill-pay-method__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 18px;
  flex: 0 0 auto;
}

.bill-pay-method__brand--mastercard {
  position: relative;
  width: 32px;
}

.bill-pay-method__brand--mastercard::before,
.bill-pay-method__brand--mastercard::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.bill-pay-method__brand--mastercard::before {
  left: 6px;
  background: #ef4444;
}

.bill-pay-method__brand--mastercard::after {
  left: 15px;
  background: rgba(245, 158, 11, 0.9);
  mix-blend-mode: screen;
}

.bill-update-link {
  border: none;
  background: var(--bill-card-elevated);
  color: var(--bill-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  transition: background 150ms ease;
}

.bill-update-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Action cards */
.bill-action-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bill-action-card {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
}

.bill-action-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.bill-action-card--danger:hover {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

.bill-action-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bill-purple-soft);
  color: var(--bill-purple);
}

.bill-action-card__icon--danger {
  background: var(--bill-danger-soft);
  color: var(--bill-danger);
}

.bill-action-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bill-action-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--bill-text);
}

.bill-action-card--danger .bill-action-card__title {
  color: var(--bill-danger);
}

.bill-action-card__desc {
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.4;
}

.bill-action-card__chev {
  color: var(--dash-text-muted);
  opacity: 0.6;
}

/* Badges */
.bill-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.bill-badge--success {
  background: rgba(34, 197, 94, 0.14);
  color: var(--dash-green);
}

.bill-badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dash-text-muted);
}

.bill-badge--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

/* Right panel */
.bill-panel {
  background: var(--dash-card);
  border: none;
  border-radius: var(--dash-radius-card, 20px);
  padding: 20px;
  box-shadow: none;
  transition: background 150ms ease;
}

.bill-panel:hover {
  background: var(--dash-card);
}

.bill-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.bill-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--bill-text);
}

.bill-panel__meta {
  font-size: 12px;
  color: var(--dash-text-muted);
}

.bill-panel__link {
  border: none;
  background: transparent;
  color: var(--dash-text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color 150ms ease;
}

.bill-panel__link:hover {
  color: var(--bill-text);
}

.bill-readiness__copy {
  margin: 0;
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.bill-readiness__link {
  text-decoration: none;
}

.bill-link-btn {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--bill-card-elevated);
  color: var(--bill-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease;
}

.bill-link-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bill-text);
}

/* Usage */
.bill-usage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bill-usage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.bill-usage__label {
  font-size: 13px;
  color: var(--dash-text-muted);
}

.bill-usage__val {
  font-size: 12px;
  font-weight: 500;
  color: var(--bill-text);
}

.bill-usage__track {
  height: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.bill-usage__bar {
  height: 100%;
  border-radius: 12px;
  background: var(--bill-purple);
  transition: width 400ms ease;
}

/* Invoices */
.bill-invoice {
  display: grid;
  grid-template-columns: 1fr auto 32px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 0;
  border: none;
}

.bill-invoice__date {
  margin: 0;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.bill-invoice__amount {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bill-text);
}

.bill-invoice__dl {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--dash-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.bill-invoice__dl:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--bill-text);
  border-color: var(--dash-border);
}

/* Support */
.bill-support {
  text-align: left;
}

.bill-support__icon {
  width: 40px;
  height: 40px;
  margin: 0 0 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bill-card-elevated);
  color: var(--dash-text-muted);
}

.bill-support__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bill-text);
}

.bill-support__desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.45;
}

.bill-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.bill-btn--primary {
  background: var(--bill-purple);
  color: var(--dash-accent-text, #0a0a0a);
}

.bill-btn--primary:hover {
  background: color-mix(in srgb, var(--bill-purple) 90%, white);
}

.bill-btn--secondary {
  background: var(--bill-card-elevated);
  color: var(--bill-text);
}

.bill-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bill-btn--danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--bill-danger);
}

.bill-btn--danger:hover {
  background: var(--bill-danger-soft);
}

.bill-btn--block {
  width: 100%;
}

.bill-btn:disabled,
.bill-action-card:disabled,
.bill-update-link:disabled,
.bill-link-btn:disabled,
.bill-panel__link:disabled,
.bill-invoice__dl:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

/* Plan switcher */
.bill-plan-switcher {
  accent-color: var(--bill-purple);
}

.bill-plan-switcher__fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bill-plan-switcher__fieldset > .bill-card__subtitle {
  min-height: calc(2 * 1.45em);
}

.bill-plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.bill-plan-option {
  --bill-plan-border-angle: -90deg;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--bill-text);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.bill-plan-option__select {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 0;
  flex: 1;
  cursor: inherit;
}

.bill-plan-option::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -1px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--bill-plan-border-angle),
    color-mix(in srgb, var(--bill-plan-cosmos-deep) 84%, transparent) 0 10%,
    color-mix(in srgb, var(--bill-plan-cosmos-mid) 86%, white 8%) 24%,
    color-mix(in srgb, var(--bill-plan-cosmos-light) 78%, white 18%) 40%,
    color-mix(in srgb, var(--bill-purple) 76%, transparent) 56%,
    color-mix(in srgb, var(--bill-plan-cosmos-mid) 72%, transparent) 72%,
    rgba(255, 255, 255, 0.18) 88%,
    color-mix(in srgb, var(--bill-plan-cosmos-deep) 84%, transparent) 100%
  );
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.bill-plan-option:hover {
  background: rgba(255, 255, 255, 0.045);
}

.bill-plan-option__select input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.bill-plan-option:has(input:checked) {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.032);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.bill-plan-option:has(input:checked)::before {
  opacity: 1;
}

.bill-plan-option:has(input:checked):hover {
  background: rgba(255, 255, 255, 0.038);
}

.bill-plan-option.is-selection-animating::before {
  animation: bill-plan-border-sweep 1550ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@property --bill-plan-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: -90deg;
}

@keyframes bill-plan-border-sweep {
  0% {
    --bill-plan-border-angle: -90deg;
    opacity: 0.38;
  }

  18%,
  100% {
    opacity: 1;
  }

  100% {
    --bill-plan-border-angle: 630deg;
  }
}

.bill-plan-option.is-current .bill-plan-option__name::after {
  content: "Current";
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--bill-plan-cosmos-light) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bill-plan-cosmos-mid) 22%, transparent);
  color: color-mix(in srgb, var(--bill-plan-cosmos-light) 76%, white 20%);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
}

.bill-plan-option.is-unavailable {
  opacity: 0.58;
  cursor: not-allowed;
}

.bill-plan-option__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 0;
}

.bill-plan-option__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bill-plan-option__name,
.bill-plan-option__price {
  font-size: 15px;
  font-weight: 650;
  color: var(--bill-text);
}

.bill-plan-option__price {
  white-space: nowrap;
}

.bill-plan-option__desc {
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.bill-plan-option__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  color: var(--bill-text);
  font-size: 12px;
  line-height: 1.35;
}

.bill-plan-option__features > span {
  position: relative;
  padding-left: 18px;
}

.bill-plan-option__features > span::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid color-mix(in srgb, var(--bill-plan-cosmos-light) 82%, white 12%);
  border-bottom: 1.5px solid color-mix(in srgb, var(--bill-plan-cosmos-light) 82%, white 12%);
  transform: rotate(-45deg);
}

.bill-plan-switcher__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bill-plan-option__action-slot {
  display: flex;
  min-height: 32px;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 4px;
}

.bill-plan-option__action-slot:empty {
  visibility: hidden;
}

.bill-plan-option__action-slot > .bill-plan-switcher__actions {
  position: relative;
  z-index: 3;
}

.bill-plan-option__action-slot .bill-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

/* Billing FAQ */
.bill-faq {
  scroll-margin-top: 24px;
}

.bill-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bill-faq__item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: background 150ms ease;
}

.bill-faq__item[open] {
  background: rgba(255, 255, 255, 0.045);
}

.bill-faq__item summary {
  position: relative;
  padding: 14px 44px 14px 14px;
  color: var(--bill-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.bill-faq__item summary::-webkit-details-marker {
  display: none;
}

.bill-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bill-card-elevated);
  color: var(--dash-text-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 21px;
  text-align: center;
  transform: translateY(-50%);
}

.bill-faq__item[open] summary::after {
  content: "\2212";
}

.bill-faq__item summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bill-purple) 72%, white);
  outline-offset: 2px;
}

.bill-faq__item p {
  margin: 0;
  padding: 0 44px 16px 14px;
  color: var(--dash-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Dialogs */
.bill-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #151515;
  color: var(--bill-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.bill-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.bill-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.bill-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bill-dialog__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.bill-dialog__close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--bill-text);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
}

.bill-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--dash-text-muted);
  font-size: 13px;
}

.bill-dialog__input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bill-text);
  font: inherit;
  padding: 0 14px;
  outline: none;
  box-sizing: border-box;
}

.bill-dialog__input:focus-visible,
.bill-dialog__close:focus-visible,
.bill-btn:focus-visible,
.bill-update-link:focus-visible,
.bill-action-card:focus-visible,
.bill-link-btn:focus-visible,
.bill-panel__link:focus-visible,
.bill-invoice__dl:focus-visible,
.bill-plan-option input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bill-purple) 72%, white);
  outline-offset: 2px;
}

.bill-dialog__error {
  margin: 0;
  color: var(--bill-danger);
  font-size: 13px;
}

.bill-dialog__copy {
  margin: 0;
  color: var(--dash-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.bill-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.bill-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--dash-popover-bg-solid, #202020);
  color: var(--bill-text);
  box-shadow: var(--dash-popover-shadow, 0 16px 48px rgba(0, 0, 0, 0.45));
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.bill-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@container bill-content (max-width: 900px) {
  .bill-layout {
    grid-template-columns: 1fr;
  }

  .bill-aside {
    position: static;
    margin-top: 0;
  }
}

@container bill-main (max-width: 720px) {
  .bill-hero {
    grid-template-columns: 1fr;
  }

  .bill-hero__price {
    align-items: flex-start;
    min-width: 0;
    padding-left: 0;
    text-align: left;
  }

  .bill-features {
    align-items: flex-start;
  }

  .bill-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .bill-detail-row__value,
  .bill-detail-row__right {
    width: 100%;
    text-align: left;
  }

  .bill-detail-row__right {
    justify-content: space-between;
  }

  .bill-action-card {
    grid-template-columns: 40px 1fr 18px;
    padding: 14px;
  }

  .bill-action-card__icon {
    width: 40px;
    height: 40px;
  }

  .bill-plan-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .bill-content {
    padding-right: var(--dash-page-x, 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bill-plan-option.is-selection-animating::before {
    animation: none;
  }
}
