.store-checkout {
    --checkout-ink: #202020;
    --checkout-muted: #71665b;
    --checkout-gold: #826449;
    --checkout-border: #e8e1d7;
    --checkout-surface: #faf8f5;
    color: var(--checkout-ink);
    padding-block: 28px 48px;
}
.store-checkout [hidden] { display: none; }
.store-checkout .page-heading-title { margin-block-end: 26px; }
.store-checkout .page-heading-title h2 { margin-block-end: 10px; font-size: clamp(26px, 3vw, 36px); }
.store-checkout .checkout-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: start; }
.store-checkout .checkout-heading-copy { min-width: 0; flex: 1 1 auto; }
.store-checkout .checkout-return-cart { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--checkout-border); border-radius: 8px; background: #fffdfa; color: #60472f; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: border-color .18s ease, background-color .18s ease, color .18s ease; }
.store-checkout .checkout-return-cart:hover { border-color: var(--checkout-gold); background: #f4eee6; color: #3f2e20; }
.store-checkout .checkout-return-cart i { font-size: 15px; }
.checkout-intro { color: var(--checkout-muted); font-size: 15px; margin: 0; line-height: 1.7; }
.checkout-confirmation-email { display: flex; gap: 6px 12px; align-items: baseline; flex-wrap: wrap; font-size: 13px; line-height: 1.8; margin-block: 0 20px; color: var(--checkout-muted); overflow-wrap: anywhere; }
.checkout-confirmation-email strong { color: var(--checkout-ink); font-weight: 500; }
.checkout-confirmation-email a { color: #60472f; text-decoration: underline; text-underline-offset: 3px; }
.store-checkout .checkout-area .checkout-module { width: 100%; min-width: 0; padding: 24px; border: 1px solid var(--checkout-border); border-radius: 12px; background: #fff; }
.store-checkout .checkoutd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--checkout-border); }
.store-checkout .checkout-area .checkout-module .checkoutd-nav .nav-item { width: auto; min-width: 0; margin: 0; }
.store-checkout .checkout-area .checkout-module .checkoutd-nav .nav-item .nav-link { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 10px; border: 1px solid var(--checkout-border); background: var(--checkout-surface); color: var(--checkout-muted); border-radius: 8px; padding: 12px; min-height: 50px; text-align: start; font: inherit; font-size: 14px; line-height: 1.5; white-space: normal; cursor: pointer; }
.store-checkout .checkout-area .checkout-module .checkoutd-nav .nav-item .nav-link.active { color: var(--checkout-ink); border-color: var(--checkout-gold); background: #f4eee6; font-weight: 600; }
.checkout-step-number { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.checkout-address-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-block-end: 18px; }
.store-checkout h3 { font-size: 19px; line-height: 1.4; margin: 0; }
.store-checkout h4 { font-size: 18px; }
.checkout-text-button { border: 0; padding: 8px 0; background: transparent; color: #60472f; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.checkout-address-book { margin-block-end: 16px; }
.checkout-address-book summary { min-height: 36px; padding-block: 6px; color: #60472f; font-size: 14px; cursor: pointer; }
.checkout-saved-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 12px 16px; max-height: 380px; overflow-y: auto; padding: 4px; }
.checkout-saved-addresses:empty { display: none; }
.checkout-address-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--checkout-border); border-radius: 8px; background: #fff; cursor: pointer; margin: 0; min-width: 0; }
.checkout-address-card[data-selected=true] { border-color: var(--checkout-gold); background: var(--checkout-surface); }
.checkout-address-card input { width: 18px; height: 18px; flex: 0 0 18px; margin-block-start: 3px; accent-color: var(--checkout-gold); }
.checkout-address-card strong { display: block; font-size: 13px; margin-block-end: 8px; color: #60472f; }
.checkout-address-card span span { display: block; white-space: pre-line; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.checkout-selected-address { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 18px; border-inline-start: 3px solid var(--checkout-gold); background: var(--checkout-surface); margin-block-end: 18px; border-radius: 6px; }
.checkout-selected-address p, .checkout-review-delivery p { margin: 0; white-space: pre-line; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.store-checkout fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.store-checkout legend:not(.sr-only) { font-size: 18px; margin-block: 8px 18px; }
.checkout-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.checkout-field { min-width: 0; position: relative; float: none; clear: none; overflow: visible; }
.checkout-field-wide { grid-column: 1 / -1; }
.checkout-field label { display: block; margin-block-end: 7px; color: var(--checkout-ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.checkout-optional { color: var(--checkout-muted); font-size: 12px; font-weight: 400; }
.checkout-optional.checkout-required { color: #60472f; font-weight: 600; }
.store-checkout .form-control { min-height: 48px; border: 1px solid #d8d2ca; border-radius: 6px; padding: 10px 12px; background: #fff; color: var(--checkout-ink); font-size: 16px; line-height: 1.5; width: 100%; }
.store-checkout select.form-control { position: relative; z-index: 1; pointer-events: auto; touch-action: manipulation; }
.store-checkout textarea.form-control { min-height: 88px; }
.store-checkout .form-control:focus { outline: none; border-color: var(--checkout-gold); box-shadow: 0 0 0 3px #82644926; }
.store-checkout .form-control.is-invalid { border-color: #a32820; }
.store-checkout .form-control:disabled { background: var(--checkout-surface); color: var(--checkout-muted); }
.store-checkout .invalid-feedback { color: #a32820; font-size: 13px; line-height: 1.6; }
.store-checkout .is-invalid ~ .invalid-feedback { display: block; }
.checkout-field small { display: block; font-size: 12px; line-height: 1.6; margin-block-start: 6px; color: var(--checkout-muted); }
.checkout-extra-fields { border-block: 1px solid var(--checkout-border); margin-block: 20px; padding-block: 14px; }
.checkout-extra-fields summary { color: #60472f; font-size: 14px; cursor: pointer; min-height: 32px; }
.checkout-extra-fields[open] .checkout-field-grid { margin-block-start: 14px; }
.checkout-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; cursor: pointer; margin: 18px 0; }
.checkout-check input { width: 18px; height: 18px; margin-block-start: 3px; flex: 0 0 18px; accent-color: var(--checkout-gold); }
.checkout-billing-choice { border-block-start: 1px solid var(--checkout-border); margin-block-start: 22px; padding-block: 2px 14px; }
.checkout-actions { display: flex; gap: 12px; margin-block-start: 12px; }
.store-checkout .btn { min-height: 46px; border-radius: 6px; padding: 12px 18px; font-size: 14px; line-height: 1.5; white-space: normal; cursor: pointer; }
.store-checkout .btn-secondary { border-color: #202020; background: #202020; color: #fff; }
.store-checkout .btn-secondary:hover { border-color: #60472f; background: #60472f; }
.store-checkout .btn-light { border: 1px solid #d8d2ca; background: #fff; color: #444; }
.store-checkout .btn:disabled { opacity: .55; cursor: wait; }
.checkout-status { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; margin: 0 0 16px; color: var(--checkout-muted); }
.checkout-status:empty { margin: 0; }
.checkout-status[data-state=error] { color: #a32820; }
.checkout-review-delivery { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-block-end: 22px; padding: 18px; background: var(--checkout-surface); border-radius: 8px; }
.checkout-review-delivery h3 { font-size: 16px; margin-block-end: 8px; }
.checkout-review-delivery small { display: block; margin-block-start: 10px; color: var(--checkout-muted); font-size: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.store-checkout .right-table { background: var(--checkout-surface); border: 1px solid var(--checkout-border); font-size: 14px; line-height: 1.7; }
.store-checkout .right-table th, .store-checkout .right-table td { padding: 14px 12px; }
.store-checkout .right-table thead th { font-size: 17px; color: var(--checkout-ink); }
.store-checkout .right-table .item-price { font-weight: 600; }
.checkout-coupon { padding: 16px; margin-block: 0 16px; border: 1px solid var(--checkout-border); border-radius: 8px; background: var(--checkout-surface); min-width: 0; }
.checkout-coupon label { display: block; font-size: 14px; font-weight: 600; margin-block-end: 8px; }
.checkout-coupon-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.checkout-coupon-controls .form-control { min-width: 0; }
.checkout-coupon-controls .btn { padding-inline: 12px; }
.checkout-coupon-status { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--checkout-muted); overflow-wrap: anywhere; }
.checkout-coupon-status:empty { margin: 0; }
.checkout-coupon-status[data-state=error] { color: #a32820; }
.checkout-coupon-status[data-state=success] { color: #23613a; }
.checkout-coupon .checkout-text-button { text-align: start; white-space: normal; overflow-wrap: anywhere; }
.checkout-coupon button:disabled { cursor: not-allowed; }
.store-checkout .cartItem-name { font-size: 16px; }
.store-checkout .item-price, .store-checkout .item-total { color: var(--checkout-ink); font-size: 16px; }
.store-checkout .checkout-area .tab-content .top-table tbody { border-bottom: 0; }
.store-checkout .checkout-area .tab-content .top-table tbody tr td.item-detail-left, .store-checkout .checkout-area .tab-content .top-table tbody tr td .item-detail { text-align: start; }
.store-checkout .cartItem-image { max-height: 100px; object-fit: contain; }
.store-checkout .cartItem-qty { min-height: 36px; padding: 4px; text-align: center; font-size: 14px; }
.store-checkout #cartItem-product-show { width: 100%; table-layout: fixed; }
.store-checkout .checkout-area .tab-content .tab-pane .top-table tbody tr.cartItem-row { display: grid; grid-template-columns: minmax(56px, .8fr) minmax(0, 2fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 10px; margin: 0; padding-block: 16px; border-bottom: 1px solid var(--checkout-border); }
.store-checkout .checkout-area .tab-content .tab-pane .top-table tbody tr.cartItem-row > td { display: flex; flex-direction: column; align-items: stretch; justify-content: center; width: auto; max-width: none; min-width: 0; padding: 6px 0; border: 0; text-align: start; overflow-wrap: anywhere; }
.store-checkout .cartItem-row td[data-label]::before { content: attr(data-label); display: block; margin-block-end: 6px; color: var(--checkout-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.store-checkout .cartItem-row .item-quantity { width: 100%; max-width: 72px; margin: 0; }
.store-checkout .cartItem-row .cartItem-image { width: 100%; height: 90px; }
.store-checkout .cartItem-row .cartItem-name { margin-block: 4px; line-height: 1.5; }
.store-checkout .checkout-free-shipping-row[hidden] { display: none; }
.checkout-free-shipping { padding: 12px; border: 1px solid var(--checkout-border); border-radius: 8px; background: #fff; text-align: start; }
.checkout-free-shipping p { margin: 0; color: #60472f; font-size: 14px; font-weight: 600; line-height: 1.7; }
.checkout-free-shipping small { display: block; margin-block-start: 4px; color: var(--checkout-muted); font-size: 12px; line-height: 1.7; }
.checkout-free-shipping.is-qualified { border-color: #b9d4c3; background: #f3f9f5; }
.checkout-free-shipping.is-qualified p { color: #23613a; }
.store-checkout button:focus-visible, .store-checkout a:focus-visible, .store-checkout summary:focus-visible { outline: 2px solid var(--checkout-gold); outline-offset: 3px; }
.checkout-address-card:focus-within { outline: 2px solid var(--checkout-gold); outline-offset: 3px; }
.store-checkout #paymentForm { padding: 0; }
.store-checkout #pills-order > .col-12:last-of-type .row { gap: 12px; }
@media (max-width: 767px) {
    .store-checkout { padding-block-start: 18px; }
    .store-checkout .checkout-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px 12px; }
    .store-checkout .checkout-return-cart { min-height: 42px; padding: 8px 12px; font-size: 13px; }
    .store-checkout .checkout-area .checkout-module { padding: 18px 14px; }
    .store-checkout .checkoutd-nav { gap: 8px; }
    .store-checkout .checkout-area .checkout-module .checkoutd-nav .nav-item .nav-link { font-size: 13px; padding: 10px 8px; gap: 7px; }
    .checkout-step-number { width: 22px; height: 22px; flex-basis: 22px; }
    .checkout-field-grid, .checkout-saved-addresses { grid-template-columns: minmax(0, 1fr); }
    .checkout-field-grid { gap: 16px; }
    .checkout-field { display: block; position: relative; float: none; clear: both; width: 100%; min-height: 0; margin: 0; overflow: visible; }
    .store-checkout select.form-control { display: block; position: relative; z-index: 1; pointer-events: auto; touch-action: manipulation; }
    .checkout-address-heading { gap: 12px; align-items: flex-start; }
    .checkout-address-heading h3 { padding-block-start: 10px; font-size: 18px; }
    .checkout-selected-address, .checkout-review-delivery { padding: 14px; gap: 12px; }
    .checkout-text-button { flex-shrink: 0; font-size: 13px; }
    .checkout-actions .btn { width: 100%; }
    .store-checkout .right-table { margin-block-start: 22px; }
    .store-checkout .checkout-area .tab-content .tab-pane .top-table tbody tr.cartItem-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
    .store-checkout .cartItem-row .checkout-item-image-cell { grid-column: 1; }
    .store-checkout .cartItem-row .item-detail-left { grid-column: 2 / -1; }
    .store-checkout .cartItem-row .item-price, .store-checkout .cartItem-row .item-total { font-size: 14px; }
    .store-checkout .cartItem-row .cartItem-name { font-size: 15px; }
}
