.tariff-storefront,
.tariff-preview {
  --tariff-blue: #2563eb;
  --tariff-ink: #1e3a8a;
  --tariff-soft: color-mix(in srgb, white 62%, var(--tariff-ink));
  --tariff-muted: #bdcdff;
  color: white;
  background: radial-gradient(120% 90% at 18% 88%, #2563eb, transparent 52%),
    linear-gradient(165deg, var(--ink), #23262e 48%, #1e3a8a);
}
.dialog.tariff-storefront { inset: 0; width: 100%; height: 100%; }
.tariff-storefront .dialog-form { display: block; }
.tariff-storefront .dialog-body { display: block; width: min(100% - 20px, 1040px); margin: auto; padding: 56px 20px 48px; }
.tariff-storefront .dialog-head { border: 0; padding: 0; }
.tariff-storefront .dialog-head h2 {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.tariff-storefront .close-dialog {
  position: fixed; z-index: 2; top: 16px; right: 16px; width: 52px; height: 52px;
  border-radius: 50%; color: white; background: #42444c;
}
.tariff-storefront .close-dialog:hover { background: #555761; color: white; }
.tariff-storefront .close-dialog svg { width: 28px; height: 28px; }
.tariff-storefront .dialog-foot { display: none; }
.tariff-hero { text-align: center; margin-bottom: 28px; }
.tariff-hero h2 {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .3em .5em;
  margin: 0 0 12px; font-size: clamp(28px, 5vw, 36px); font-weight: 400; letter-spacing: -.02em; line-height: 1.12;
}
.tariff-title-prefix {
  font-family: "Ranscale Label", "Helvetica Neue Condensed", Arial, sans-serif;
  font-weight: 400; letter-spacing: .04em; text-transform: uppercase;
}
.tariff-hero .brand { color: white; font-size: 1em; }
.tariff-hero p { margin: 0; color: var(--tariff-soft); font-size: clamp(18px, 3.2vw, 22px); line-height: 1.35; }

.tariff-grid-shell, .tariff-preview .tariff-card {
  background: color-mix(in srgb, white 10%, var(--tariff-ink));
}
.tariff-grid-shell {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 16px);
  padding: clamp(14px, 2.4vw, 22px); border-radius: 24px; margin-bottom: 18px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .32);
}
.tariff-card {
  min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 12px 16px;
  overflow-wrap: anywhere;
}
.tariff-card.tariff-card-spotlight {
  border-radius: 20px; background: color-mix(in srgb, var(--tariff-ink) 92%, #020617);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 48px rgba(0, 0, 0, .44);
}
.tariff-card h3 { margin: 0; font-size: 21px; font-weight: 400; letter-spacing: -.01em; }
.tariff-base-lead { margin: 0 0 12px; font-size: 24px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; white-space: pre-line; }
.tariff-features { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.35; }
.tariff-features li { display: flex; align-items: start; gap: 7px; padding: 3px 0; }
.tariff-features svg { flex: none; margin-top: 1px; }
.tariff-note { margin: 0; color: var(--tariff-muted); font-size: 13px; line-height: 1.55; }
.tariff-card-base .tariff-note { margin-top: 14px; }
.tariff-badge {
  width: fit-content; max-width: 100%; margin: 0; border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 500; line-height: 1.2; background: white; color: var(--tariff-blue);
}
.tariff-price { margin: 0; color: white; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.tariff-price span { display: block; margin-top: 4px; color: var(--tariff-soft); font-size: 17px; font-weight: 500; line-height: 1.2; letter-spacing: .02em; }
.tariff-rule { width: 100%; height: 1px; margin: 0; border: 0; background: color-mix(in srgb, white 22%, var(--tariff-blue)); }
.tariff-description { align-self: start; margin: 0; font-size: 16px; line-height: 1.45; white-space: pre-line; }
.tariff-description strong { font-weight: 500; }
.tariff-cta {
  display: block; align-self: stretch; text-align: center; padding: 13px 16px; border: 0; border-radius: 999px;
  margin-top: auto; background: white; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500;
}
button.tariff-cta { cursor: pointer; }
button.tariff-cta:hover { background: var(--surface-2); }
.tariff-footnote { text-align: center; margin-inline: auto; max-width: 52em; }

.dialog.tariff-editor { width: min(940px, 100%); }
.tariff-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 18px; align-items: start; }
.tariff-editor-fields, .tariff-editor-fields fieldset { min-width: 0; }
.tariff-editor-fields fieldset { padding: 0; border: 0; margin: 0; }
.tariff-editor-fields [data-card-type] .commerce-options { display: flex; flex-wrap: wrap; }
.tariff-editor-fields [data-card-type] .commerce-option { align-items: center; }
.tariff-editor-fields [data-card-type] input { margin-top: 0; }
.tariff-editor-fields .tariff-offer-field { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.tariff-offer-field > label { margin-top: 9px; }
.tariff-preview { position: sticky; top: 14px; border-radius: 18px; padding: 13px; }
.tariff-preview h2 { margin: 0 0 10px; font-size: 14px; font-weight: 650; }
.tariff-preview .tariff-card { border-radius: 14px; box-shadow: none; }
.tariff-preview .tariff-card-spotlight { background: #1c3681; }
.tariff-preview .tariff-base-lead { font-size: 22px; }
.tariff-catalog-entry { padding: 0 16px 14px; color: var(--muted); }
@media (min-width: 821px) {
  .tariff-grid-three { grid-template-rows: auto auto auto auto 1fr auto; row-gap: 0; }
  .tariff-grid-three .tariff-card { grid-row: 1/-1; }
  .tariff-grid-three .tariff-card:not(.tariff-card-base) { display: grid; grid-template-rows: subgrid; row-gap: 12px; }
}
@media (max-width: 820px) {
  .tariff-grid-shell, .tariff-editor-layout { grid-template-columns: 1fr; }
  .tariff-preview { position: static; }
  .tariff-storefront .dialog-body { padding: 72px 6px 26px; }
  .tariff-storefront .close-dialog { width: 44px; height: 44px; }
}

