/* Order rails and activation fields aligned with the reference checkout. */
body[data-page="product"] .product-order-rail,
body[data-page="service"] .product-order-rail {
  border-radius: 18px;
}

body[data-page="product"] .product-order-rail > .order-summary,
body[data-page="service"] .product-order-rail > .service-order-summary {
  padding: 18px 18px 20px;
}

body[data-page="product"] .product-order-rail .summary-top,
body[data-page="service"] .product-order-rail .summary-top {
  margin-bottom: 13px;
}

body[data-page="product"] .product-order-rail .summary-top h3,
body[data-page="service"] .product-order-rail .summary-top h2 {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 900;
  line-height: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-page="product"] .product-order-rail .summary-service,
body[data-page="service"] .product-order-rail .summary-service {
  min-height: 62px;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #393640;
  border-radius: 12px;
  background: #25222e;
}

body[data-page="product"] .product-order-rail .summary-icon,
body[data-page="service"] .product-order-rail .summary-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 9px;
}

body[data-page="product"] .product-order-rail .summary-service small,
body[data-page="service"] .product-order-rail .summary-service small {
  font-size: 11px;
  line-height: 14px;
}

body[data-page="product"] .product-order-rail .summary-service strong,
body[data-page="service"] .product-order-rail .summary-service strong {
  font-size: 14px;
  line-height: 18px;
}

body[data-page="product"] .product-order-rail .summary-contact {
  margin: 15px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page="product"] .product-order-rail .summary-contact label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="product"] .product-order-rail .summary-contact input {
  min-height: 49px;
  padding: 14px 16px;
  border: 1px solid #393640;
  border-radius: 12px;
  background: #25222e;
  color: var(--product-text);
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
}

body[data-page="product"] .product-order-rail .summary-contact p {
  margin: 4px 0 0;
  color: var(--product-muted);
  font-size: 11px;
  line-height: 14px;
}

body[data-page="product"] .product-order-rail .summary-line,
body[data-page="service"] .product-order-rail .summary-line {
  padding: 8px 2px;
  font-size: 13px;
  line-height: 18px;
}

body[data-page="product"] .product-order-rail .summary-total,
body[data-page="service"] .product-order-rail .summary-total {
  margin: 8px 0 0;
  padding: 10px 2px 0;
  border-top: 1px solid var(--product-border);
  font-size: 16px;
  line-height: 27px;
}

body[data-page="product"] .product-order-rail .summary-total strong,
body[data-page="service"] .product-order-rail .summary-total strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 27px;
}

body[data-page="product"] .product-order-rail .summary-info {
  margin: 12px 0 13px;
  padding: 10px 12px;
  border: 1px solid #393640;
  border-radius: 11px;
  background: #25222e;
  color: var(--product-muted);
  font-size: 12px;
  line-height: 18px;
}

body[data-page="product"] .product-order-rail .order-summary .button,
body[data-page="service"] .product-order-rail .service-order-submit {
  min-height: 49px;
  padding: 13px 16px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
}

body[data-page="product"] .product-order-rail .order-summary .button + .button {
  margin-top: 8px;
}

body[data-page="product"] .product-order-rail > .checkout-aside {
  padding: 12px 18px 18px;
  border-top: 0;
}

body[data-page="product"] .product-order-rail .checkout-aside p,
body[data-page="service"] .product-order-rail .service-order-status {
  font-size: 12px;
  line-height: 18px;
}

body[data-page="product"] .product-order-rail .checkout-aside .inventory-status {
  padding: 10px 12px;
  border-radius: 11px;
  background: #25222e;
}

body[data-page="service"] .product-order-rail .service-order-contacts {
  margin: 15px 0 0;
}

body[data-page="service"] .product-order-rail .service-order-field {
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="service"] .product-order-rail .service-order-field input,
body[data-page="product"] .product-order-rail .summary-contact input,
body[data-page="product"] .checkout-fields .field input,
body[data-page="product"] .checkout-fields .field textarea,
body[data-page="service"] .service-activation-panel .directory-field > input {
  min-height: 49px;
  padding: 14px 16px;
  border: 1px solid #393640;
  border-radius: 12px;
  background: #25222e;
  color: var(--product-text);
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
}

body[data-page="product"] .product-order-rail .summary-contact input:focus,
body[data-page="service"] .product-order-rail .service-order-field input:focus,
body[data-page="product"] .checkout-fields .field input:focus,
body[data-page="product"] .checkout-fields .field textarea:focus,
body[data-page="service"] .service-activation-panel .directory-field > input:focus {
  border-color: var(--product-accent);
  outline: 3px solid color-mix(in srgb, var(--product-accent) 22%, transparent);
}

body[data-page="product"] .checkout-fields .field textarea {
  min-height: 115px;
  resize: vertical;
}

body[data-page="product"] .checkout-fields .field label,
body[data-page="service"] .service-activation-panel .directory-field-label {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="product"] .checkout-fields .field {
  padding-top: 0;
}

body[data-page="product"] .checkout-fields .field p,
body[data-page="service"] .service-activation-panel .service-order-disclosure {
  font-size: 12px;
  line-height: 18px;
}

body[data-page="service"] .service-activation-panel .directory-field {
  border-color: #393640;
  border-radius: 12px;
  background: #1c1a23;
}

body[data-page="service"] .service-activation-panel .directory-options button {
  min-height: 43px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

/* Shared customer controls and the desktop order summary. */
body[data-page] .product-order-rail {
  border-color: #39383f;
  background: #1e1c21;
}
body[data-page] .product-order-rail .summary-service {
  align-items: flex-start;
  min-height: 0;
  padding: 12px 14px;
  border-color: #3d3a40;
  background: #ffffff09;
}
body[data-page] .product-order-rail .summary-service > span:last-child { gap: 3px; }
body[data-page] .product-order-rail .summary-service strong { font-size: 14.5px; line-height: 1.3; }
body[data-page] .product-order-rail .summary-service small { font-size: 11.5px; line-height: 14px; }

body[data-page="service"] .service-order-contacts {
  position: relative;
}
body[data-page="service"] .product-order-rail .service-order-field {
  display: grid;
  margin: 0;
  line-height: 18px;
}
body[data-page="service"] .service-order-field > span { padding-inline-end: 25px; }

.checkout-email-help {
  position: absolute;
  inset: 0 0 auto auto;
  z-index: 1;
  color: #d1cdd6;
  font-size: 11px;
}
.checkout-email-help > summary {
  display: grid;
  width: 18px;
  height: 18px;
  margin-inline-start: auto;
  place-items: center;
  border: 1px solid #69656e;
  border-radius: 50%;
  background: #ffffff0d;
  list-style: none;
  cursor: pointer;
}
.checkout-email-help > summary::-webkit-details-marker { display: none; }
.checkout-email-help > p {
  max-width: min(240px, 70vw);
  margin: 4px 0 0;
  padding: 8px 10px;
  border: 1px solid #48434d;
  border-radius: 8px;
  background: #27242d;
}

body[data-page="service"]:has(#serviceSelectedPeriod:not([hidden])) .service-order-period {
  display: none;
}
body[data-page] .product-order-rail .checkout-order-price {
  margin-top: 14px;
  padding: 0 2px 8px;
  border: 0;
  font-size: 13px;
  line-height: 16px;
}
body[data-page] .product-order-rail .checkout-order-price + .summary-total {
  margin-top: 0;
  padding-top: 9px;
}
body[data-page] .product-order-rail .summary-total { border-color: #39363c; }
body[data-page] .product-order-rail .summary-total strong { color: #fff; }

.checkout-order-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #ffc10747;
  border-radius: 11px;
  background: #ffc10719;
  color: #d6d2dc;
  font-size: 12px;
  line-height: 18px;
}
body[data-page="service"] .product-order-rail .service-order-submit {
  min-height: 51px;
  margin-top: 13px;
  border: 1px solid #55565b;
  background: linear-gradient(110deg, #303136, #101011);
  color: #fff;
}
body[data-page="service"] .product-order-rail .service-order-submit:hover:not(:disabled) {
  border-color: #777780;
  background: linear-gradient(110deg, #303136, #101011);
}

body[data-page="service"] .grok-order-hint { display: none; }
body[data-page="service"][data-service="grok-ai"] .grok-order-hint {
  display: block;
  margin: 12px 0 0;
  color: #ffb81c;
  font-size: 13px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
body[data-page="service"] .grok-order-hint a { color: inherit; }

body[data-page="service"] .service-activation-panel .directory-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
body[data-page="service"] .service-activation-panel .directory-field {
  grid-column: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-page="service"] .service-activation-panel .section-kicker { display: none; }
body[data-page="service"] .service-activation-panel .section-heading { margin-bottom: 12px; }
body[data-page="service"] .service-activation-panel .section-heading h2,
body[data-page="product"] .checkout-heading h2 {
  margin: 0;
  padding-inline-start: 2px;
  color: #a9a4b0;
  font-size: 11px;
  font-weight: 900;
  line-height: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body[data-page="service"] .service-activation-panel .directory-field-label,
body[data-page="product"] .checkout-fields .field label {
  margin-bottom: 8px;
  color: #d3d0d8;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: none;
}
body[data-page="service"] .service-activation-panel .directory-field > input,
body[data-page="service"] .product-order-rail .service-order-field input,
body[data-page="product"] .checkout-fields .field textarea {
  width: 100%;
  border-color: #49464c;
  background: #ffffff09;
}
body[data-page="product"] .checkout-fields .field textarea {
  height: 96px;
  min-height: 96px;
}
body[data-page="service"] .service-activation-panel .directory-check,
body[data-page="product"] .checkout-check {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #3d3942;
  border-radius: 12px;
  background: #ffffff07;
  color: #d3d0d8;
}
body[data-page="service"] .service-activation-panel .directory-check input,
body[data-page="product"] .checkout-check input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0;
  accent-color: var(--product-accent);
}
body[data-page="service"] .service-activation-panel .directory-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
}
body[data-page="service"] .service-activation-panel .directory-option {
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid #393640;
  border-radius: 10px;
  background: #ffffff07;
  color: var(--product-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
body[data-page="service"] .service-activation-panel .directory-option:has(input:checked) {
  border-color: var(--service-accent);
  background: color-mix(in srgb, var(--service-accent) 12%, transparent);
}

body[data-page="product"] .checkout-check,
body[data-page="service"] .service-activation-panel .directory-check {
  font-size: 13px;
  line-height: 19px;
}

@media (max-width: 760px) {
  body[data-page="product"] .product-order-rail > .order-summary,
  body[data-page="service"] .product-order-rail > .service-order-summary {
    padding: 16px 15px 18px;
  }

  body[data-page="product"] .product-order-rail > .checkout-aside {
    padding: 10px 15px 16px;
  }

  body[data-page="service"] .product-order-rail .service-order-field input,
  body[data-page="product"] .checkout-fields .field input,
  body[data-page="product"] .checkout-fields .field textarea,
  body[data-page="product"] .product-order-rail .summary-contact input,
  body[data-page="service"] .service-activation-panel .directory-field > input {
    min-height: 50px;
    font-size: 16px;
  }

  body[data-page="product"] .checkout-fields .field textarea {
    height: 96px;
    min-height: 96px;
  }
  body[data-page="service"] .service-activation-panel .section-heading h2,
  body[data-page="product"] .checkout-heading h2 { line-height: 16.5px; }
  body[data-page="service"] .service-activation-panel .directory-field-label,
  body[data-page="product"] .checkout-fields .field label { line-height: 19.5px; }

  body[data-page="product"] .product-order-rail .order-summary .button,
  body[data-page="service"] .product-order-rail .service-order-submit {
    min-height: 49px;
    font-size: 15px;
  }

}

@media (max-width: 1024px) {
  body[data-page="product"] .checkout-mobile-bar,
  body[data-page="service"] .checkout-mobile-bar {
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
  }

  body[data-page="product"] .checkout-mobile-total,
  body[data-page="service"] .checkout-mobile-total {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    line-height: 1;
  }

  body[data-page="product"] .checkout-mobile-plan,
  body[data-page="service"] .checkout-mobile-plan {
    overflow: hidden;
    max-width: 100%;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 700;
    line-height: 11px;
    letter-spacing: .1em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body[data-page="product"] .checkout-mobile-total strong,
  body[data-page="service"] .checkout-mobile-total strong {
    color: var(--product-text);
    font-size: 21px;
    font-weight: 900;
    line-height: 23px;
    white-space: nowrap;
  }

  body[data-page="product"] .checkout-mobile-bar .button,
  body[data-page="service"] .checkout-mobile-bar .button {
    min-height: 43px;
    min-width: 193px;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
  }
}

body[data-page] .product-order-rail .summary-service .summary-icon { display: none; }
body[data-page] .product-order-rail .summary-service > span:last-child { display: flex; flex-direction: column-reverse; }
body[data-page="product"] .product-order-rail .summary-top .integration-label { padding: 0 7px; font-size: 9px; line-height: 12px; }

@media (max-width: 1024px) {
  body[data-page] .checkout-mobile-bar { background: #151020; }
  body[data-page] .checkout-mobile-bar .button { padding-block: 9px; line-height: 1.4; }
  body[data-page="product"][data-service="chatgpt"] .checkout-mobile-bar .button { background: linear-gradient(110deg, #119579, #096452); color: #fff; }
  body[data-page="service"][data-service="claude"] .checkout-mobile-bar .button { background: linear-gradient(110deg, #bf694c, #a84c32); color: #fff; }
}

body[data-page="product"] .checkout-explanation {
  margin-top: 18px;
  color: var(--product-muted);
  font-size: 12px;
  line-height: 18px;
}
body[data-page="product"] .checkout-explanation p { margin: 0 0 6px; }
body[data-page="product"] .product-order-rail .order-summary .inventory-status {
  margin: 12px 0 13px;
  padding: 10px 12px;
  border: 1px solid #393640;
  border-radius: 11px;
  background: #ffffff0d;
  color: var(--product-muted);
  font-size: 12px;
  line-height: 18px;
}
.checkout-aux-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 10px;
}
.checkout-aux-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #c2bbc9;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.checkout-aux-action:hover { color: #fff; }
.checkout-aux-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.checkout-order-sheet:not([open]) { display: none; }
@media (max-width: 1024px) {
  body[data-page] .product-page-content:has(.checkout-order-sheet) {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout-sheet-rail { display: none; }
  .checkout-order-sheet[open] {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #39383f;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: #1e1c21;
    color: var(--product-text);
  }
  .checkout-order-sheet::backdrop { background: #0008; }
  html:has(.checkout-order-sheet[open]) { overflow: hidden; }
  body[data-page] .checkout-order-sheet .checkout-sheet-rail {
    display: block;
    position: static;
    width: 100%;
    max-height: none;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body[data-page] .checkout-order-sheet .checkout-sheet-rail > .order-summary {
    padding: 0 16px 18px;
  }
  .checkout-order-grip {
    display: block;
    width: 44px;
    height: 4px;
    margin: 16px auto 12px;
    border-radius: 4px;
    background: #ffffff47;
  }
  .checkout-order-close {
    position: absolute;
    inset: 9px 12px auto auto;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #f8717166;
    border-radius: 12px;
    background: #f8717121;
    color: #f87171;
    font: 20px/1 Inter, system-ui, sans-serif;
    cursor: pointer;
  }
  body[data-page] .checkout-order-sheet .summary-top { padding-inline-end: 42px; }
  body[data-page="service"] .checkout-mobile-bar .button {
    border-color: #777780;
    background: linear-gradient(135deg, var(--plan-gradient-start, #e6e8ee), var(--plan-gradient-end, #9aa0ad));
    color: #14151a;
  }
}
