
/* Checkout extends the storefront layout and uses its shared typography and brand color. */
.checkout-page {
  --checkout-ink: #222222;
  --checkout-muted: #777777;
  --checkout-line: #dfdfdf;
  --checkout-green: var(--primary-color);
  color: var(--checkout-ink);
  background: #fff;
}
.checkout-page-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.checkout-page .checkout-back { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-color); font-size: 14px; font-weight: 500; }
.checkout-page .checkout-section-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.checkout-page .checkout-section.payment-container { border: 0; border-bottom: 1px solid var(--checkout-line); border-radius: 0; margin: 0; }
.checkout-page .checkout-receipt-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.checkout-page .checkout-receipt-heading h2 img { width: 24px; height: 24px; }
.checkout-page .checkout-order-action { position: static; }
.checkout-address-modal { --checkout-line: #dfdfdf; --checkout-green: var(--primary-color); }
.checkout-page button, .checkout-page input, .checkout-page select { font: inherit; }
.checkout-page button, .checkout-page summary { -webkit-tap-highlight-color: transparent; }
.checkout-page [hidden] { display: none !important; }
.checkout-page :is(button, a, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--checkout-green); outline-offset: 3px; }
.checkout-page .checkout-text-button:hover { color: var(--checkout-green); }
.checkout-page .checkout-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.checkout-page .checkout-form-panel { min-width: 0; background: #fff; border: 1px solid var(--checkout-line); border-radius: 20px; }
.checkout-page .checkout-section { display: block; grid-template-columns: 112px minmax(0, 1fr); gap: 23px; padding: 27px; border-bottom: 1px solid var(--checkout-line); }
.checkout-page .checkout-section-title h2 { margin: 1px 0 4px; font-size: 20px; line-height: 1.4; font-weight: 500; }
.checkout-page .checkout-section-title > small { color: var(--checkout-muted); font-size: 12px; }
.checkout-page .checkout-section-body { min-width: 0; }
.checkout-page .checkout-address { position: relative; padding-right: 54px; }
.checkout-page .checkout-address-top { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 7px; }
.checkout-page .checkout-address-top strong { font-weight: 700; font-size: 15px; }
.checkout-page #address-type { padding: 1px 6px; border: 1px solid #dfe4dc; border-radius: 3px; color: #626d63; font-size: 12px; font-weight: 500; }
.checkout-page .checkout-address p { margin: 0; font-size: 14px; color: #606961; line-height: 1.65; overflow-wrap: anywhere; }
.checkout-page #address-phone { margin-top: 7px; color: #313b32; }
.checkout-page .checkout-text-button { padding: 0; border: 0; background: transparent; color: var(--checkout-green); font-size: 14px; font-weight: 700; cursor: pointer; text-underline-offset: 3px; }
.checkout-page .checkout-text-button:hover { text-decoration: underline; }
.checkout-page .checkout-change-address { position: absolute; top: 1px; right: 0; }
.checkout-page .checkout-add-address { margin-top: 15px; }
.checkout-page .checkout-add-address > summary { width: fit-content; color: var(--checkout-green); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.checkout-page summary::-webkit-details-marker { display: none; }
.checkout-page .checkout-add-address[open] > summary { margin-bottom: 16px; }
.checkout-page .form-note { margin: 0 0 14px; color: var(--checkout-muted); font-size: 14px; }
.checkout-page .checkout-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.checkout-page .checkout-field { min-width: 0; }
.checkout-page .checkout-field > label, .checkout-page .substitution-field-label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 500; color: #424d44; }
.checkout-page .checkout-field label > small { color: var(--checkout-muted); font-size: 12px; font-weight: 400; }
.checkout-page .checkout-field label > span { color: #777f79; }
.checkout-page .checkout-field :is(input:not([type=hidden]), select), .checkout-page .form-control, .checkout-page .form-select {
  width: 100%; min-height: 42px; padding: 8px 10px; background-color: #fff; border: 1px solid #d0d7cf; border-radius: 5px; color: var(--checkout-ink); font-size: 14px;
}
.checkout-page .checkout-field [aria-invalid=true] { border-color: #b4362a; }
.checkout-page .field-error { display: block; margin-top: 4px; color: #a92f27; font-size: 12px; }
.checkout-page .checkout-phone { display: flex; align-items: center; }
.checkout-page .checkout-phone > span { display: grid; align-items: center; align-self: stretch; padding: 0 8px; border: 1px solid #d0d7cf; border-right: 0; border-radius: 4px 0 0 4px; background: #f7f8f6; font-size: 14px; }
.checkout-page .checkout-field .checkout-phone input:not([type=hidden]) { min-width: 0; border-radius: 0 4px 4px 0; }
.checkout-page .checkout-address-type { margin: 20px 0 10px; padding: 0; border: 0; }
.checkout-page .checkout-address-type legend { margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.checkout-page .checkout-address-type label { margin-right: 18px; font-size: 14px; }
.checkout-page .checkout-default-address { font-size: 14px; color: #566057; }
.checkout-page input:is([type=radio], [type=checkbox]) { accent-color: var(--checkout-green); width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; margin-right: 5px; cursor: pointer; }
.checkout-page .checkout-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 18px; }
.checkout-page .checkout-save-address { min-height: 42px; padding: 8px 15px; border: 0; border-radius: 4px; color: #fff; background: var(--checkout-green); font-size: 14px !important; font-weight: 700 !important; }
.checkout-page .checkout-delivery-modes { display: flex; border: 1px solid #d8dfd6; border-radius: 5px; overflow: hidden; }
.checkout-page .checkout-delivery-modes label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px; padding: 8px; cursor: pointer; font-size: 14px; font-weight: 500; }
.checkout-page .checkout-delivery-modes label + label { border-left: 1px solid #d8dfd6; }
.checkout-page .checkout-delivery-modes label:has(input:checked) { background: rgba(17, 167, 86, .08); color: var(--checkout-green); }
.checkout-page .checkout-delivery-modes label:has(input:disabled) { color: #969d96; background: #f9faf8; cursor: not-allowed; }
.checkout-page .checkout-delivery-modes input { width: 14px !important; height: 14px !important; margin: 0 !important; }
.checkout-page .checkout-delivery-hint { margin: 11px 0 0; color: var(--checkout-muted); font-size: 14px; }
.checkout-page .checkout-date-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 21px; }
.checkout-page .checkout-date-heading > label, .checkout-page .checkout-slot-heading { font-size: 14px; font-weight: 500; color: #4a554b; }
.checkout-page #delivery-date { max-width: 142px; min-width: 0; height: 32px; padding: 3px 6px; border: 1px solid #d8dfd6; border-radius: 4px; background: #fff; font-size: 12px; color: #4a554b; }
.checkout-page .checkout-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 11px 0 19px; }
.checkout-page .checkout-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 64px; padding: 6px 0; border: 1px solid #e0e5dd; border-radius: 4px; background: #fff; color: #535d54; }
.checkout-page .checkout-day small { font-size: 12px; }
.checkout-page .checkout-day strong { font-size: 18px; line-height: 1.2; font-weight: 700; }
.checkout-page .checkout-day:hover { border-color: #355e3f; }
.checkout-page .checkout-day[aria-pressed=true] { border-color: var(--checkout-green); background: var(--checkout-green); color: #fff; }
.checkout-page .checkout-slot-heading { margin-bottom: 8px; }
.checkout-page #delivery-slot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.checkout-page .checkout-slot { display: flex; align-items: center; gap: 6px; padding: 9px; border: 1px solid #dbe2d8; border-radius: 4px; cursor: pointer; }
.checkout-page .checkout-slot strong { display: block; font-weight: 500; font-size: 12px; }
.checkout-page .checkout-slot small { display: block; margin-top: 1px; color: #727b71; font-size: 12px; }
.checkout-page .checkout-slot:has(input:checked) { border-color: var(--checkout-green); background: rgba(17, 167, 86, .05); }
.checkout-page .checkout-slot:has(input:disabled) { background: #f8f9f6; color: #969e94; cursor: not-allowed; }
.checkout-page .checkout-slot:has(input:disabled) strong { text-decoration: line-through; }
.checkout-page .checkout-slot input { width: 13px !important; height: 13px !important; margin-right: 1px !important; }
.checkout-page #delivery-slot-message { margin: 10px 0 0; color: #777; font-size: 12px; }
.checkout-page #delivery-slot-list[aria-busy=true] { min-height: 50px; border-top: 1px solid #e8ece5; }
.checkout-page .checkout-payment-option { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 12px; border: 1px solid #dce2d8; border-radius: 4px; cursor: pointer; }
.checkout-page .checkout-payment-option + .checkout-payment-option { margin-top: 9px; }
.checkout-page .checkout-payment-option:has(input:checked) { border-color: var(--checkout-green); background: rgba(17, 167, 86, .04); }
.checkout-page .checkout-payment-icon { flex-shrink: 0; color: #5b695b; }
.checkout-page .checkout-payment-option > span { flex: 1; }
.checkout-page .checkout-payment-option strong { display: block; font-size: 14px; font-weight: 500; }
.checkout-page .checkout-payment-option small { display: block; margin-top: 2px; color: #777; font-size: 12px; line-height: 1.5; }
.checkout-page .checkout-payment-option input { margin: 0 !important; }
.checkout-page .checkout-substitutions { padding: 20px 27px; }
.checkout-page .checkout-substitutions > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.checkout-page .checkout-substitutions > summary strong { display: block; font-size: 14px; font-weight: 500; }
.checkout-page .checkout-substitutions > summary small { display: block; margin-top: 3px; color: var(--checkout-muted); font-size: 12px; }
.checkout-page .checkout-disclosure { font-size: 22px; font-weight: 400; color: #667361; }
.checkout-page .checkout-substitutions[open] .checkout-disclosure { transform: rotate(45deg); }
.checkout-page .checkout-substitutions > .form-note { margin-top: 18px; }
.checkout-page .substitution-choice { border-top: 1px solid var(--checkout-line); padding-top: 14px; margin-top: 14px; }
.checkout-page .substitution-choice__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 10px; }
.checkout-page .substitution-choice__head strong { font-size: 14px; font-weight: 500; }
.checkout-page .substitution-choice__head small { color: var(--checkout-muted); white-space: nowrap; font-size: 12px; }
.checkout-page .substitution-helper, .checkout-page .substitution-search-status { margin: 7px 0 0; color: var(--checkout-muted); font-size: 12px; }
.checkout-page .substitution-selected { padding-top: 14px; }
.checkout-page .substitution-selected .substitution-field-label { margin-top: 8px; }
.checkout-page .substitution-error { margin-top: 7px; color: #a32e24; font-size: 14px; }
.checkout-page .substitution-choice.is-invalid { border-color: #b4362a; }
.checkout-page .checkout-receipt { position: sticky; top: 24px; padding: 22px; background: #fff; border: 1px solid var(--checkout-line); border-radius: 20px; min-width: 0; }
.checkout-page .checkout-receipt-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.checkout-page .checkout-receipt-heading h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.checkout-page .checkout-receipt-heading h2 span { color: #777; font-size: 14px; font-weight: 400; }
.checkout-page .checkout-receipt-heading a { color: var(--checkout-green); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.checkout-page .checkout-order-items { max-height: 288px; overflow-y: auto; scrollbar-width: thin; }
.checkout-page .checkout-order-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; }
.checkout-page .checkout-order-item + .checkout-order-item { border-top: 1px solid #f0f2ed; }
.checkout-page .checkout-product-image { position: relative; display: grid; place-items: center; width: 50px; height: 55px; flex: 0 0 50px; background: #f7f8f4; border-radius: 3px; overflow: hidden; color: #85917f; font-size: 20px; }
.checkout-page .checkout-product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.checkout-page .checkout-product-info { min-width: 0; flex: 1; }
.checkout-page .checkout-product-info strong { display: block; font-size: 14px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.checkout-page .checkout-product-info small { display: block; margin-top: 4px; color: #777; font-size: 12px; }
.checkout-page .checkout-product-price { max-width: 86px; text-align: right; font-size: 14px; line-height: 1.5; font-weight: 500; font-variant-numeric: tabular-nums; }
.checkout-page .checkout-totals { margin: 17px 0 0; padding-top: 17px; border-top: 1px solid var(--checkout-line); }
.checkout-page .checkout-totals > div { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.checkout-page .checkout-totals dt { font-size: 14px; font-weight: 400; color: #757f70; }
.checkout-page .checkout-totals dd { margin: 0; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.checkout-page .checkout-totals .checkout-discount :is(dt, dd) { color: var(--checkout-green); }
.checkout-page .checkout-totals .checkout-total { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--checkout-line); }
.checkout-page .checkout-total dt { color: var(--checkout-ink); font-size: 16px; font-weight: 700; }
.checkout-page .checkout-total dd { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.checkout-page .checkout-delivery-summary { margin: 12px 0 0; color: #777; font-size: 12px; line-height: 1.5; }
.checkout-page .checkout-order-action { margin-top: 20px; }
.checkout-page .place-order { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; min-height: 49px; padding: 12px 16px; border: 0; border-radius: 5px; background: var(--checkout-green); color: #fff; font-size: 16px !important; font-weight: 700 !important; transition: background .15s; }
.checkout-page .place-order:hover { background: var(--checkout-green); }
.checkout-page .place-order:disabled { opacity: .6; cursor: wait; }
.checkout-page .place-order > span:last-child { font-size: 19px; font-weight: 400; }
.checkout-page .checkout-payment-note { margin: 10px 0 0; color: #777; text-align: center; font-size: 12px; line-height: 1.5; }
.checkout-page .checkout-mobile-total { display: none; }
.checkout-page .checkout-error { margin-top: 14px; padding: 10px 12px; background: #fff2ee; border-left: 2px solid #bd4632; color: #a03527; font-size: 14px; }
.checkout-address-modal .modal-content { border: 0; border-radius: 8px; }
.checkout-address-modal #address-modal-title { margin: 0; font-size: 19px; font-weight: 700; }
.checkout-address-modal .modal-header { padding: 22px; border-color: var(--checkout-line); }
.checkout-address-modal .modal-body { padding: 8px 22px 22px; }
.checkout-address-modal .select-address { display: block; width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--checkout-line); background: #fff; text-align: left; }
.checkout-address-modal .select-address > strong { display: block; font-size: 14px; font-weight: 700; }
.checkout-address-modal .select-address > strong small { margin-left: 8px; font-weight: 400; color: #84937a; font-size: 12px; }
.checkout-address-modal .select-address > span { display: block; margin-top: 5px; color: #72816b; font-size: 14px; }
.checkout-address-modal .select-address[aria-pressed=true] > strong, .checkout-address-modal .select-address:hover > strong { color: var(--checkout-green); }
@media (max-width: 1099px) {
  .checkout-page .checkout-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
  .checkout-page .checkout-section { display: block; padding: 24px; }
  .checkout-page .checkout-section-title { margin-bottom: 17px; display: flex; justify-content: space-between; align-items: baseline; }
  .checkout-page .checkout-substitutions { padding: 20px 24px; }
}
@media (max-width: 991px) {
  .checkout-page .checkout-grid { display: flex; flex-direction: column; gap: 18px; }
  .checkout-page .checkout-form-panel, .checkout-page .checkout-receipt { width: 100%; }
  .checkout-page .checkout-section { padding: 21px 19px; }
  .checkout-page .checkout-substitutions { padding: 19px; }
  .checkout-page .checkout-receipt { position: static; padding: 20px; }
  .checkout-page .checkout-order-items { max-height: none; }
  .checkout-page .place-order { flex: 1; }
  .checkout-page .checkout-error, .checkout-page .checkout-section, .checkout-page .substitution-choice { scroll-margin-block: 25px 110px; }
  .checkout-page .checkout-payment-note { text-align: left; }
}
@media (max-width: 360px) {
  .checkout-page .checkout-form-grid { grid-template-columns: 1fr; }
  .checkout-page #delivery-slot-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .checkout-page .place-order { transition: none; } }
.checkout-page #address-type { border: 0; border-radius: 50px; padding: 4px 10px; background: rgba(17, 167, 86, .08); color: var(--primary-color); font-size: 12px; }
.checkout-page .checkout-address-top strong { font-size: 16px; }
.checkout-page .checkout-section-title > small { color: #777; font-size: 12px; }
.checkout-page .checkout-slot { border-radius: 5px; padding: 12px; }
.checkout-page .checkout-payment-option { border-radius: 10px; }
.checkout-page .checkout-total dt { font-size: 18px; font-weight: 500; }
.checkout-page .place-order { margin-top: 0; }
.checkout-page .checkout-order-item img[hidden] { display: none; }
@media (max-width: 575px) {
  .checkout-page-heading { display: block; }
  .checkout-page .checkout-back { margin-bottom: 22px; }
  .checkout-page .checkout-receipt-heading { align-items: flex-start; }
  .checkout-page .checkout-receipt-heading a { white-space: nowrap; }
  .checkout-page .checkout-receipt-heading h2 { font-size: 18px; }
}
