/*
 * secure-booking-checkout-order.css: the order in the phone-first checkout
 * (secure_booking_checkout.html, checkout-order.js).
 *
 * Phones: a "Your order" bar that stays at the top of the screen while the
 * buyer scrolls, on the form and on payment; tapping it slides a sheet up with
 * the plan's Includes list, the total and the pay-over-time sentence.
 * From 920px: no bar; the same panel is an open card beside the form.
 * Also the header above it: the logo and the support line (owner, 2026-11-17).
 * Scoped under body.sbc. See wiki/secure-booking-checkout.md.
 */

/* ---- Header: the logo (to the website) and the support line, in Evergreen ---- */

body.sbc .sb-header {
  max-width: 1040px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--sbc-line);
}
body.sbc .sb-header-logo img {
  height: 28px;
}
body.sbc .sb-header-link {
  color: var(--sbc-ink);
  font-size: 15px;
}
body.sbc .sb-header a:focus-visible {
  outline: 2px solid var(--sbc-apricot);
}
/* The support line in the top right: a muted lead over the number. */
.sbc-help {
  display: grid;
  justify-items: end;
  gap: 1px;
  min-height: 44px;
  align-content: center;
  color: var(--sbc-ink);
  text-decoration: none;
  line-height: 1.2;
}
.sbc-help-lead {
  color: var(--sbc-muted);
  font-size: 12.5px;
}
.sbc-help-num {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 920px) {
  body.sbc .sb-header {
    margin-bottom: 40px;
  }
  body.sbc .sb-header-logo img {
    height: 32px;
  }
}

/* ---- Phones: the bar ------------------------------------------------------ */

/* The section itself is sticky (it holds only the bar in the page's flow; the
   sheet is fixed), so the bar stays in view down the whole form. */
body.sbc .sb-product.sbc-order {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: none;
  margin: 0 -16px;
  padding: 10px 16px;
  background: var(--sbc-page);
  border-bottom: 1px solid var(--sbc-line);
}

/* The live page hides its product card while paying on a phone; here the order
   stays, so the buyer always sees what they are paying for. */
body.sbc .sb-shell.sb-paying .sb-product.sbc-order {
  display: block;
}

.sbc-order-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid var(--sbc-line);
  border-radius: 12px;
  background: var(--sbc-card);
  color: var(--sbc-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sbc-order-bar:focus-visible {
  outline: 2px solid var(--sbc-apricot);
  outline-offset: 2px;
}
.sbc-order-what {
  display: grid;
  flex: 1;
  min-width: 0;
}
.sbc-order-label {
  color: var(--sbc-muted);
  font-size: 13px;
}
.sbc-order-what strong {
  font-size: 16px;
  font-weight: 600;
}
.sbc-order-amt {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.sbc-order-chev {
  width: 8px;
  height: 8px;
  margin: 0 2px 4px;
  border-right: 2px solid var(--sbc-muted);
  border-bottom: 2px solid var(--sbc-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.sbc-order-bar[aria-expanded='true'] .sbc-order-chev {
  transform: rotate(225deg);
  margin-bottom: -4px;
}
.sbc-order [hidden] {
  display: none !important;
}

/* ---- Phones: the sheet ---------------------------------------------------- */

.sbc-order-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(21, 37, 30, 0.42);
}

.sbc-order-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: var(--sbc-card);
  box-shadow: 0 -8px 32px rgba(21, 37, 30, 0.18);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.sbc-order-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.25s ease;
}
/* A grab handle, the sign of a sheet. */
.sbc-order-panel::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 2px;
  background: var(--sbc-line);
}
@media (prefers-reduced-motion: reduce) {
  .sbc-order-panel,
  .sbc-order-panel.is-open {
    transition: none;
  }
}
html.sbc-sheet-open,
html.sbc-sheet-open body {
  overflow: hidden;
}

/* ---- The panel's contents (sheet and card) ---------------------------------- */

.sbc-order-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sbc-order-title {
  margin: 0;
  font-family: var(--sbc-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}
.sbc-order-done {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--sbc-link);
  font: 600 15px var(--sbc-text);
  cursor: pointer;
}
.sbc-order-done:focus-visible {
  outline: 2px solid var(--sbc-apricot);
  outline-offset: 2px;
  border-radius: 4px;
}
.sbc-order-sub {
  margin: 12px 0 8px;
  font-size: 14.5px;
  font-weight: 600;
}
body.sbc .sbc-includes {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.sbc .sbc-includes li {
  display: flex;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--sbc-ink);
}
/* A forest tick, as the website's lists. */
body.sbc .sbc-includes li::before {
  content: '\2713';
  flex: none;
  color: var(--sbc-forest);
  font-weight: 700;
}
body.sbc .sbc-order-panel .sb-timing {
  margin: 14px 0 0;
  color: var(--sbc-muted);
  font-size: 14px;
}
.sbc-order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--sbc-line);
  font-size: 17px;
  font-weight: 600;
}
body.sbc .sbc-order-total .sb-total {
  margin: 0;
  font: inherit;
  color: inherit;
}
body.sbc .sbc-order-panel .sb-total-note,
.sbc-order-hsa {
  margin: 8px 0 0;
  color: var(--sbc-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Services bought after the evaluation: set apart from the total by a rule, a
   name and price on one line and what it is under them. */
.sbc-addons {
  margin-top: 18px;
  padding-top: 4px;
  border-top: 1px solid var(--sbc-line);
}
.sbc-addons-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sbc-addons-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 2px;
}
.sbc-addon-name {
  font-size: 15px;
  font-weight: 500;
}
.sbc-addon-price {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.sbc-addon-text {
  grid-column: 1 / -1;
  color: var(--sbc-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

/* ---- From 920px: an open card beside the form ------------------------------- */

@media (min-width: 920px) {
  body.sbc .sb-product.sbc-order {
    position: sticky;
    top: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }
  .sbc-order-bar,
  .sbc-order-scrim,
  .sbc-order-done,
  .sbc-order-panel::before {
    display: none !important;
  }
  .sbc-order-panel,
  .sbc-order-panel.is-open {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 24px;
    border: 1px solid var(--sbc-line);
    border-radius: 16px;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
}
