/* One checkout surface, with editable products and a visible final total. */
.checkout-page { --checkout-error: #b91c3c; --checkout-success: #16734d; padding-bottom: 0; }
.checkout-page[data-color=dark] { --checkout-error: #fb8ea4; --checkout-success: #81d5ac; }
.checkout-page .site-header :is(.header-search, .desktop-nav, .desktop-explore-trigger, .flow-mobile-search) { display: none !important; }
.checkout-page .site-header .header-actions { margin-left: auto; }
.checkout-page .site-header .cart-trigger { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; }
.checkout-page .checkout-container { max-width: 1160px; margin-inline: auto; padding: 30px 28px 64px; }
.checkout-page .checkout-heading { padding: 0 0 20px; }
.checkout-page .checkout-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; color: var(--muted); }
.checkout-page .checkout-heading h1 { font-size: clamp(27px, 3vw, 36px); line-height: 1.2; letter-spacing: -.035em; margin: 12px 0 0; }
.checkout-page .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.checkout-page :is(.checkout-fields, .checkout-summary, .checkout-cart-item, .checkout-item-main, [data-checkout-fields]) { min-width: 0; }
.checkout-page .checkout-fields { display: grid; gap: 20px; }
.checkout-page :is(.form-section, .summary-card) { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.checkout-page :is(.form-section, .summary-card) > h2 { margin: 0 0 22px; padding: 0; font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.checkout-page .checkout-summary { position: static; top: auto; align-self: start; padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 801px) {
  .checkout-page .checkout-summary.is-sticky { position: sticky; top: var(--checkout-summary-top, 96px); }
}
.checkout-page [data-checkout-fields] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.checkout-page [data-checkout-fields] > .wide { grid-column: 1 / -1; }
.checkout-page [data-checkout-fields] label { min-width: 0; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.checkout-page [data-checkout-fields] :is(.muted, .required-mark) { font-size: 11px; font-weight: 400; }
.checkout-page [data-checkout-fields] :is(input:not([type=checkbox]), select, textarea) { min-height: 46px; width: 100%; margin-top: 8px; padding: 12px; border-radius: 9px; font-size: 14px; }
.checkout-page [data-checkout-fields] .ui-select-trigger { min-height: 46px; font-size: 14px; }
.checkout-page [data-checkout-fields] .ui-select { margin-top: 8px; }
.checkout-page [data-checkout-fields] textarea { min-height: 100px; resize: vertical; }
.checkout-page .checkout-products-section { scroll-margin-top: 100px; }
.checkout-page [data-checkout-items] > p { font-size: 13px; margin: 0; }
.checkout-page .checkout-cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; column-gap: 16px; row-gap: 12px; padding-block: 20px; border-top: 1px solid var(--line); }
.checkout-page .checkout-cart-item:first-child { border-top: 0; padding-top: 0; }
.checkout-page .checkout-cart-item:last-child { padding-bottom: 0; }
.checkout-page .checkout-item-thumb { grid-column: 1; grid-row: 1 / 3; display: block; width: 64px; height: 86px; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; overflow: hidden; }
.checkout-page .checkout-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkout-page .checkout-item-thumb > span { display: grid; height: 100%; place-items: center; color: var(--muted); }
.checkout-page .checkout-item-main { grid-column: 2 / -1; }
.checkout-page .checkout-item-main h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.4; letter-spacing: -.01em; overflow-wrap: anywhere; }
.checkout-page :is(.checkout-item-options, .checkout-item-unit) { display: block; margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.checkout-page .checkout-item-options:empty { display: none; }
.checkout-page .checkout-item-error { font-size: 12px; line-height: 1.5; color: var(--checkout-error); margin: 8px 0 0; }
.checkout-page .checkout-quantity { grid-column: 2; display: inline-flex; justify-self: start; align-self: center; margin: 0; height: 44px; min-height: 44px; }
.checkout-page .checkout-quantity button { width: 40px; height: 44px; min-height: 44px; padding: 0; font-size: 20px; }
.checkout-page .checkout-quantity input { width: 38px; min-width: 0; height: 44px; min-height: 44px; padding: 0; margin: 0; font-size: 14px; background: transparent; }
.checkout-page .checkout-item-price { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; align-items: end; justify-content: center; min-width: 0; }
.checkout-page .checkout-item-price strong { font-size: 15px; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.checkout-page .checkout-item-remove { color: var(--muted); padding: 8px 0; font-size: 11px; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.checkout-page .checkout-options > h2 { margin-bottom: 8px; }
.checkout-page .checkout-options details { border: 0; border-bottom: 1px solid var(--line); padding: 0; margin: 0; }
.checkout-page .checkout-options summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 0; gap: 16px; font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; }
.checkout-page .checkout-options summary::-webkit-details-marker { display: none; }
.checkout-page .checkout-options summary > span { color: var(--muted); font-size: 20px; font-weight: 400; transition: transform .18s ease; }
.checkout-page .checkout-options details[open] > summary > span { transform: rotate(45deg); }
.checkout-page .checkout-note > [data-checkout-fields] { padding-bottom: 18px; grid-template-columns: 1fr; }
.checkout-page .checkout-coupon-entry { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 18px; }
.checkout-page .checkout-coupon-entry > [data-checkout-fields] { flex: 1; grid-template-columns: 1fr; }
.checkout-page [data-apply-checkout-coupon] { min-height: 46px; padding-inline: 16px; }
.checkout-page [data-checkout-coupon-feedback] { margin: -4px 0 18px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.checkout-page [data-checkout-coupon-feedback][data-state=error] { color: var(--checkout-error); }
.checkout-page [data-checkout-coupon-feedback][data-state=success] { color: var(--checkout-success); }
.checkout-page [aria-invalid=true] { border-color: var(--checkout-error); }
.checkout-page .invoice-toggle { min-height: 52px; gap: 12px; margin: 0; padding: 12px 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.checkout-page .invoice-toggle input[type=checkbox]:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.checkout-page .check-row input[type=checkbox] { width: 19px; height: 19px; min-width: 19px; min-height: 19px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.checkout-page [data-invoice-fields] { padding-top: 6px; }
.checkout-page :is(.summary-row, .summary-line) { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin: 14px 0; font-size: 14px; line-height: 1.5; }
.checkout-page :is(.summary-row, .summary-line) > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.checkout-page :is(.summary-row, .summary-line).total { border-top: 1px solid var(--line); padding: 20px 0 0; margin: 20px 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.checkout-page [data-checkout-summary] > p { font-size: 14px; line-height: 1.65; margin: 16px 0; }
.checkout-page .summary-card > h2 { font-size: 20px; }
.checkout-page .checkout-payment { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 1.5; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checkout-page .checkout-payment > span { color: var(--muted); }
.checkout-page .checkout-payment strong { font-weight: 500; text-align: right; }
.checkout-page .summary-card .terms { align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.65; margin: 22px 0; min-height: 44px; cursor: pointer; }
.checkout-page .terms a { text-decoration: underline; text-underline-offset: 3px; }
.checkout-page .button[data-checkout-submit] { width: 100%; min-height: 56px; padding: 16px 20px; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: .035em; white-space: normal; }
.checkout-page .form-error:not(:empty) { margin-top: 16px; padding: 12px; border-radius: 9px; background: color-mix(in srgb, #e11d48 8%, var(--surface)); font-size: 13px; line-height: 1.6; }
.checkout-page .checkout-empty { padding: 56px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.checkout-page .checkout-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 50%; }
.checkout-page .checkout-empty-icon svg { width: 28px; height: 28px; }
.checkout-page .checkout-empty h2 { margin: 0; font-size: 24px; }
.checkout-page .checkout-empty p { margin: 12px 0 24px; color: var(--muted); }
.checkout-page .checkout-recommendations { min-width: 0; }
.checkout-page .checkout-recommendations.form-section > .upsell-section { margin: 0; padding: 0; border: 0; }
.checkout-page .checkout-recommendations .upsell-section > h3 { font-size: 18px; line-height: 1.4; margin-bottom: 14px; }
.checkout-page .checkout-recommendations .upsell-item { min-width: 0; }
.checkout-page .checkout-recommendations .upsell-item h4 { overflow-wrap: anywhere; font-size: var(--upsell-title-size, 14px); line-height: 1.5; }
.checkout-page .checkout-recommendations .upsell-item .price-line { font-size: var(--upsell-price-size, 14px); }
.checkout-page .checkout-recommendations .upsell-item > button { white-space: normal; }
.checkout-page .checkout-summary .checkout-recommendations { margin-bottom: 22px; }
.checkout-page [hidden] { display: none !important; }
@media (hover: hover) {
  .checkout-page .checkout-item-remove:hover { color: var(--ink); }
  .checkout-page .checkout-options summary:hover { color: var(--accent); }
}
@media (max-width: 960px) {
  .checkout-page .checkout-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .checkout-page :is(.form-section, .summary-card) { padding: 20px; }
  .checkout-page .checkout-cart-item { column-gap: 12px; }
}
@media (max-width: 800px) {
  .checkout-page .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .checkout-page .checkout-container { max-width: 640px; padding: 20px 20px 40px; }
  .checkout-page .checkout-summary { position: static; }
}
@media (max-width: 480px) {
  .checkout-page .checkout-recommendations .upsell-section:not(.upsell-compact) .upsell-item { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 12px; }
  .checkout-page .checkout-recommendations .upsell-section:not(.upsell-horizontal):not(.upsell-compact) .upsell-item > button { grid-column: 2; justify-self: start; min-height: 44px; }
  .checkout-page .checkout-container { padding: 10px 12px 28px; }
  .checkout-page .checkout-heading { padding: 0 4px 16px; }
  .checkout-page .checkout-heading h1 { margin-top: 8px; font-size: 27px; }
  .checkout-page .checkout-fields { gap: 14px; }
  .checkout-page .checkout-layout { gap: 14px; }
  .checkout-page :is(.form-section, .summary-card) { padding: 18px 16px; border-radius: 13px; }
  .checkout-page :is(.form-section, .summary-card) > h2 { font-size: 17px; margin-bottom: 18px; }
  .checkout-page [data-checkout-fields] { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .checkout-page [data-checkout-fields] :is(input:not([type=checkbox]), select, textarea) { font-size: 16px; min-height: 48px; }
  .checkout-page [data-checkout-fields] .ui-select-trigger { min-height: 48px; }
  .checkout-page .checkout-cart-item { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 12px; }
  .checkout-page .checkout-item-thumb { width: 52px; height: 72px; grid-row: 1; }
  .checkout-page .checkout-item-main h3 { font-size: 14px; }
  .checkout-page .checkout-quantity { grid-column: 1 / 3; }
  .checkout-page .checkout-quantity button { width: 44px; }
  .checkout-page .checkout-item-remove { min-height: 44px; font-size: 12px; }
  .checkout-page .checkout-item-price { align-self: center; }
  .checkout-page .checkout-coupon-entry { gap: 8px; }
  .checkout-page [data-apply-checkout-coupon] { min-height: 48px; padding-inline: 12px; }
}
.checkout-courier-name { display:block; padding:12px 14px; min-height:46px; border:1px solid var(--line); border-radius:var(--radius-control,12px); background:var(--field); color:var(--ink); font-weight:600; overflow-wrap:anywhere; }
.checkout-courier-name[hidden] { display:none; }
.checkout-page .checkout-summary .checkout-coupon{margin:0 0 18px;padding:0;border-bottom:1px solid var(--line)}
.checkout-page .checkout-coupon-entry > [data-checkout-fields]{min-width:0}
.checkout-page .checkout-coupon-entry input{min-width:0;width:100%}
.checkout-page .checkout-coupon-entry .field-caption .small{display:none}
.checkout-page [data-apply-checkout-coupon]{flex-shrink:0}
.checkout-page .summary-card{padding-bottom:28px}
.checkout-page .summary-card > h2{margin-bottom:16px}
.checkout-page .summary-card .summary-row{margin-block:10px}
.checkout-page .summary-card .summary-row.total{margin-block:16px;padding-top:16px}
.checkout-page .summary-card [data-checkout-summary] > p{font-size:13px;line-height:1.55;margin-block:12px}
.checkout-page .summary-card .checkout-payment{padding-block:14px;font-size:13px}
.checkout-page .summary-card .terms{margin-block:16px}
.checkout-page .summary-card .checkout-coupon-entry{padding-bottom:12px}
.checkout-page .summary-card .checkout-coupon{margin-bottom:12px}
.checkout-page .summary-card .form-error:empty{display:none}

/* Expanded inline checkout has one scroll owner: the surrounding product or drawer. */
html.inline-checkout-document{height:auto;min-height:0;overflow:hidden;scroll-snap-type:none;scroll-behavior:auto}
html.inline-checkout-document body.embedded-checkout{height:auto;min-height:0;overflow:visible;padding-bottom:0}
html.inline-checkout-document #main{height:auto;min-height:0}
html.inline-checkout-document .checkout-summary{position:static!important}
.inline-quick>iframe.is-content-sized{display:block;min-height:0;max-height:none;border:0;border-radius:0}
.product-page .inline-quick{scroll-margin-top:calc(var(--store-header-height,68px) + 16px);padding-bottom:16px}
