[hidden] {
  display: none !important;
}
html.in-checkout {
  scroll-behavior: auto;
}
.in-checkout body {
  padding-bottom: 0;
}
.flow {
  padding-top: clamp(16px, 3vh, 28px);
  padding-bottom: 32px;
}
.flow button {
  font: inherit;
}
.flow .flow-back,
.flow .flow-link {
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
  padding: 5px 0;
}
.flow .flow-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.flow .flow-link:hover,
.flow .flow-back:hover {
  text-decoration: underline;
}
.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 22px;
}
.flow-header h1 {
  margin: 0;
  color: var(--navy);
  font: 600 clamp(30px, 3.6vw, 46px) / 1.05 var(--font);
  letter-spacing: -0.035em;
}
.flow-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-progress li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.flow-progress li + li:before {
  content: "";
  background: var(--line-strong);
  width: 20px;
  height: 1px;
  margin-right: 6px;
}
.flow-progress span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 12px;
}
.flow-progress [aria-current="step"] {
  color: var(--navy);
  font-weight: 600;
}
.flow-progress [aria-current="step"] span {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.flow-progress .finished span {
  background: var(--pale);
  color: var(--blue);
  border-color: var(--blue-01);
}
.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.85fr);
  align-items: start;
  gap: clamp(16px, 2.5vw, 32px);
}
.flow-card,
.flow-summary {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flow-card {
  padding: clamp(18px, 2.6vw, 32px);
}
.flow-card h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.022em;
}
.flow-card h2:focus {
  outline: none;
}
.flow button:focus-visible,
.flow-document:focus-visible,
.flow summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.flow .bd-btn {
  width: auto;
  min-height: 44px;
  padding: 10px 22px;
  font-weight: 600;
}
.flow button:disabled {
  cursor: default;
  opacity: 0.55;
}
.flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.flow-actions > .bd-btn:only-of-type,
.flow-actions > .bd-btn:last-child,
#doc-next {
  margin-left: auto;
}
.doc-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  border-radius: 9px;
  padding: 3px;
  background: var(--bg);
  margin-bottom: 12px;
}
.doc-switch button {
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.doc-switch button[aria-pressed="true"] {
  background: var(--card);
  color: var(--blue);
  font-weight: 600;
  box-shadow: 0 1px 3px #08177a26;
}
.flow-document {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  /* Both documents must be read to the end, so the reader gets real room. */
  height: clamp(240px, 46vh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  line-height: 1.5;
  font-size: 14px;
}
.flow-document h3 {
  font-size: 15px;
  margin: 15px 0 5px;
  color: var(--navy);
}
.flow-document p {
  margin: 0 0 10px;
}
.flow-document a {
  color: var(--blue);
}
.flow-help,
.flow-summary-body > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.flow-help {
  margin: 9px 0 0;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.consent-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  flex: none;
}
.flow-error {
  border-left: 3px solid var(--err);
  color: var(--err);
  background: var(--err-bg);
  padding: 8px 12px;
  margin-bottom: 12px;
}
.flow-summary {
  padding: 17px 20px;
}
.flow-summary summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
}
.flow-summary summary::-webkit-details-marker {
  display: none;
}
.flow-summary summary strong {
  font-size: 18px;
  margin-left: auto;
}
.flow-summary summary svg {
  height: 17px;
  width: 17px;
  fill: currentColor;
}
.flow-summary details[open] summary svg {
  transform: rotate(180deg);
}
.flow-summary-body {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.flow-summary-body ul,
.flow-summary-body dl {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-summary-body li,
.flow-summary-body dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}
.flow-summary-body dd,
.flow-summary-body li strong {
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
}
.flow-summary-body dl {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.flow-summary-body p {
  margin: 12px 0 0;
}
.flow-total-row {
  color: var(--navy);
  font-weight: 600;
}
.edit-billing {
  margin: 0 0 12px;
}
@media (min-width: 761px) and (max-height: 800px) {
  .in-checkout .bd-header-in {
    min-height: 50px;
  }
  .flow {
    padding-top: 10px;
  }
  .flow-header {
    margin: 4px 0 14px;
  }
  .flow-header h1 {
    font-size: 34px;
  }
  .flow-card {
    padding: 20px 24px;
  }
  .flow-card h2 {
    margin-bottom: 10px;
  }
  .flow-actions {
    margin-top: 12px;
  }
}
@media (max-width: 760px) {
  .flow {
    padding: 12px var(--gutter) 22px;
  }
  .flow-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 7px 0 12px;
  }
  .flow-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .flow-card,
  .flow-side {
    width: 100%;
  }
  .flow-side {
    order: -1;
    gap: 10px;
  }
  .flow-summary {
    padding: 10px 15px;
  }
  .flow-document {
    height: clamp(220px, 40vh, 420px);
  }
  /* Four steps fit a phone's width without their connecting rules. */
  .flow-progress li + li:before {
    content: none;
  }
  .flow-card {
    padding: 16px;
  }
  .flow-progress {
    gap: 7px;
  }
  .flow-progress li {
    gap: 4px;
    font-size: 12px;
  }
  .flow-progress li + li:before {
    width: 10px;
    margin-right: 3px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .flow-card [data-step]:not([hidden]) {
    animation: show-checkout-step 120ms ease-out;
  }
  @keyframes show-checkout-step {
    from {
      opacity: 0.45;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
/* ---- progress: the finished Order step carries a check */
.flow-progress span svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.flow-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ---- agreement: the order in plain words, each document's read state, a visible consent box */
.flow-recap {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #c9d3ff;
  border-radius: 12px;
  background: var(--pale);
}
.flow-recap h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
.flow-recap ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
}
.doc-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.doc-state {
  padding: 1px 8px;
  border-radius: 999px;
  background: #f1f2f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.doc-state.is-read {
  background: var(--ok-bg);
  color: var(--ok);
}
.consent-box {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfd;
}
.consent-box .consent-check {
  margin-top: 0;
  font-size: 15px;
}
.renewal-notice {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.consent-check input {
  width: 20px;
  height: 20px;
}
.consent-check input:disabled + span {
  color: var(--muted);
}
.consent-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0 29px;
  color: var(--muted);
  font-size: 13px;
}
.consent-lock svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.pay-note:empty {
  display: none;
}

/* ---- offers above the order summary: shown until the agreement is accepted */
.flow-offers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.offer {
  position: relative;
  min-width: 0;
  padding: 16px 20px 18px;
  border: 1px solid #c9d3ff;
  border-radius: var(--radius);
  background: var(--card);
}
.offer--save {
  border-color: #9fddb5;
  background: var(--ok-bg);
}
.offer-k {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.offer--save .offer-k {
  color: var(--ok);
}
.offer h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}
.offer > p:not(.offer-k) {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
}
.offer-compare {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  font-size: 15px;
}
.offer-compare div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.offer-compare dt {
  color: var(--muted);
}
.offer-compare dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.offer .bd-btn2 {
  width: 100%;
  margin-top: 12px;
  cursor: pointer;
}
.offer-plans {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.offer-plan {
  position: relative;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}
.offer-plan.is-added {
  border-color: var(--blue);
  background: var(--pale);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.offer-plan-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.offer-plan-name {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  font-size: 17px;
  font-weight: 600;
}
.offer-plan-name small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}
.offer-plan-info {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--blue);
  cursor: pointer;
}
.offer-plan-info svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.offer-plan .bd-btn2 {
  width: auto;
  min-height: 44px;
  margin-top: 0;
  padding: 0 16px;
}
.offer-plan-details {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
}
.offer-plan.is-open .offer-plan-details {
  display: block;
}
.offer-plan-details ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0 0 0 18px;
}
.offer-until {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
#offer-status:empty {
  display: none;
}
/* On wide screens with a pointer, a plan's details float beside it, so the order summary stays put. */
@media (min-width: 1024px) and (hover: hover) {
  .offer-plan-details {
    position: absolute;
    right: calc(100% + 32px);
    top: -14px;
    z-index: 5;
    width: 340px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(8, 23, 122, 0.22);
  }
  .offer-plan:hover .offer-plan-details,
  .offer-plan:focus-within .offer-plan-details {
    display: block;
  }
}

/* ---- order summary: one-time charges apart from recurring ones, as Omni quoting totals them */
.flow-group + .flow-group {
  margin-top: 12px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}
.flow-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.flow-group h3 span:last-child {
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.flow-summary-body .flow-group dl {
  margin-top: 0;
  border-top: 0;
}
.flow-credit-row {
  color: var(--ok);
}
.flow-due .flow-total-row dd {
  font-size: 22px;
}

/* Stripe expands native address fields as the buyer types. Keep phone controls
   in the same place while the fields resize and when an earlier step reopens. */
@media (max-width: 760px) {
  .flow:has(.collect-details:not([hidden])) {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .flow .collect-details:not([hidden]) {
    animation: none;
  }
  .collect-details .flow-actions {
    position: fixed;
    z-index: 12;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--card);
  }
  .doc-switch {
    display: flex;
  }
  .doc-switch button {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  /* Phones: each offer is one compact row, so the documents stay near the top. */
  .flow-side {
    gap: 10px;
  }
  .flow-offers {
    gap: 8px;
  }
  .offer {
    padding: 10px 12px 12px 14px;
  }
  .offer--save {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    padding: 8px 8px 8px 14px;
  }
  .offer--save > p,
  .offer--save .offer-compare div:first-child,
  .offer-long {
    display: none;
  }
  .offer h2 {
    margin: 0;
    font-size: 16px;
  }
  .offer--save .offer-compare {
    grid-column: 1;
    margin: 0;
    font-size: 14px;
  }
  .offer--save .offer-compare div {
    justify-content: flex-start;
    gap: 6px;
  }
  .offer--save .offer-compare dd {
    font-weight: 500;
  }
  .offer--save .bd-btn2 {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
  }
  .offer > p:not(.offer-k) {
    font-size: 14px;
  }
}
