/* ───────────────────────────────────────────────────────────────────────────
   Commerce + account extras for the commerce theme.

   Everything else on the cart, checkout and account pages uses the demo's own
   Crafto classes (style.css + the demo skin). This file covers only what the
   demo pack never drew: the account side nav and tiles, order status chips,
   the added-to-cart toast, the checkout's shipping picker / soft-check list,
   and the confirmation badge. Hand-written; nothing builds it, and gulp's
   clean:dist does not touch dist/static.
   ─────────────────────────────────────────────────────────────────────────── */

/* Account shell */
.account-page { padding-top: 90px; padding-bottom: 110px; }
@media (max-width: 991px) { .account-page { padding-top: 60px; padding-bottom: 80px; } }
.account-avatar { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 46px; }
.account-nav li a { display: flex; align-items: center; padding: 9px 0; font-size: 15px; transition: color .2s; }
.account-nav li a:hover, .account-nav li a.active { color: var(--dark-gray, #232323); }
.account-nav li + li { border-top: 1px solid var(--extra-medium-gray, #e4e4e4); }
.account-tile { transition: border-color .2s, box-shadow .2s; }
.account-tile:hover { border-color: var(--dark-gray, #232323) !important; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.account-orders th, .account-orders td { padding: 15px 10px; border-color: var(--extra-medium-gray, #e4e4e4); vertical-align: middle; }
.account-status { display: inline-block; padding: 3px 12px; border-radius: 30px; font-size: 13px; line-height: 20px; font-weight: 500; background: var(--very-light-gray, #f7f7f7); color: var(--dark-gray, #232323); border: 1px solid var(--extra-medium-gray, #e4e4e4); }
.account-status--paid, .account-status--complete, .account-status--completed { background: #e8f5ec; border-color: #bfe3cb; color: #1e6b3a; }
.account-status--pending, .account-status--partially-paid { background: #fff7e6; border-color: #f5dca6; color: #8a5a00; }
.account-status--refunded, .account-status--cancelled, .account-status--voided, .account-status--failed { background: #fdecec; border-color: #f3c4c4; color: #9b1c1c; }
/* Refunds: the orders list, each order line, the totals and the Refunds section (components/commerce/order-refunds.html) */
.account-status--partially-refunded { background: #fff7e6; border-color: #f5dca6; color: #8a5a00; }
.account-refunded { display: block; font-size: 13px; font-weight: 400; color: var(--medium-gray, #717580); white-space: nowrap; }
.order-line-refund { display: block; width: fit-content; margin-top: 6px; padding: 2px 10px; border-radius: 30px; font-size: 12px; line-height: 20px; font-weight: 500; background: #fff7e6; border: 1px solid #f5dca6; color: #8a5a00; }
.order-totals .order-refunded td { color: #9b1c1c; }
.order-totals .order-refunded > *, .order-totals .order-net > * { padding-top: 10px; }
.order-refunds { margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.order-refunds-title { display: block; font-size: 20px; font-weight: 500; color: var(--dark-gray, #232323); }
.order-refund { border: 1px solid var(--extra-medium-gray, #e4e4e4); border-radius: 8px; padding: 20px 22px; }
.order-refund.is-pending { border-style: dashed; }
.order-refund.is-pending .order-refund-kind { color: #8a5a00; }
.order-refund-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--extra-medium-gray, #e4e4e4); }
.order-refund-kind { display: block; font-weight: 600; color: var(--dark-gray, #232323); }
.order-refund-date { display: block; font-size: 14px; }
.order-refund-amount, .order-refund-value { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--dark-gray, #232323); }
.order-refund-amount { font-weight: 600; }
.order-refund-lines { list-style: none; margin: 0; padding: 0; }
.order-refund-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--extra-medium-gray, #e4e4e4); }
.order-refund-line.is-charge { grid-template-columns: minmax(0, 1fr) auto; }
.order-refund-thumb { display: block; width: 56px; height: 56px; border-radius: 4px; overflow: hidden; background: var(--very-light-gray, #f7f7f7); }
.order-refund-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.order-refund-name { min-width: 0; }
.order-refund-qty, .order-refund-note { display: block; font-size: 14px; }
.order-refund-qty.is-part { font-weight: 600; color: var(--dark-gray, #232323); }
.order-refund-note { font-size: 13px; }
.order-refund-to { margin: 12px 0 0; font-size: 14px; }
.mw-500px { max-width: 500px; }
.mt-minus-10px { margin-top: -10px; }

/* Added-to-cart toast */
.cart-toast { position: fixed; left: 50%; bottom: 30px; z-index: 9999; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--dark-gray, #232323); color: #fff; padding: 14px 24px; border-radius: 6px; box-shadow: 0 15px 40px rgba(0,0,0,.2); font-size: 15px; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast--error { background: #9b1c1c; }
.add-to-cart.loading, [data-cart-add].loading { opacity: .6; pointer-events: none; }
[data-wishlist-add].active i { color: #d62d2d; }

/* Mini-cart: the demo's dropdown, filled live */
.header-cart .cart-item-list form.d-inline { display: inline-block; }
.header-cart .cart-count.d-none { display: none !important; }

/* Cart page */
.cart-products .qty-text { pointer-events: none; }
.cart-products .product-remove a { color: var(--dark-gray, #232323); }
.cart-empty-state { padding: 60px 0; }
[data-cart-page], .your-order-box, .order-totals { --cart-good: #2f7d5b; --cart-good-soft: #e6f2ec; --cart-good-line: #b9dcc9; --cart-panel: var(--surface, #f7f7f7); --cart-line: var(--extra-medium-gray, #e4e4e4); --cart-ink: var(--dark-gray, #232323); }
/* The money columns never wrap ("$119." over "95"); the name takes the rest */
.cart-products .product-price, .cart-products .product-subtotal { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Cart and checkout totals: one money column at the right edge, so every
   amount lines up from the first line to Total, and a dark rule over Total.
   A row's amount is its last cell when that cell is not its only one. */
[data-cart-page] .total-price-table > tbody > tr > td:last-child:not(:first-child),
.your-order-table > tbody > tr > td:last-child:not(:first-child),
.order-totals > tbody > tr > td:last-child:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
[data-cart-page] .total-price-table > tbody > tr:has(+ .total-amount) > *,
.your-order-table > tbody > tr:has(+ .total-amount) > *,
.order-totals > tbody > tr:has(+ .total-amount) > * { border-bottom: 2px solid var(--cart-ink); }
/* The chosen shipping option's price, on the Shipping heading, in the money column */
.cart-shipping-cost { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-shipping-cost.is-free { color: var(--cart-good); }
.cart-shipping-cost[hidden] { display: none; }

/* Free shipping bar, above the cart table */
.cart-free-shipping { border: 1px solid transparent; border-radius: 8px; padding: 16px 20px; background: var(--cart-panel); }
.cart-free-shipping[hidden] { display: none; }
.cart-free-shipping-label { display: flex; align-items: center; gap: 10px; color: var(--cart-ink); font-weight: 500; line-height: 1.4; }
.cart-free-shipping-label i { font-size: 20px; flex: none; color: var(--base-color, var(--cart-ink)); }
.cart-free-shipping-label strong { font-weight: 600; }
.cart-free-shipping-note { font-size: 14px; line-height: 1.5; margin: 2px 0 0 30px; }
/* The empty part is white, so the dark fill shows how much is left */
.cart-free-shipping-track { height: 8px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); margin-top: 12px; overflow: hidden; }
.cart-free-shipping-fill { height: 100%; border-radius: 6px; background: var(--cart-ink); transition: width .4s ease; }
.cart-free-shipping.is-unlocked { border-color: var(--cart-good-line); background: var(--cart-good-soft); }
.cart-free-shipping.is-unlocked .cart-free-shipping-label, .cart-free-shipping.is-unlocked .cart-free-shipping-label i { color: var(--cart-good); }
.cart-free-shipping.is-unlocked .cart-free-shipping-fill { background: var(--cart-good); }

/* Cart messages: the platform's info message is its confirmation ("Item has been added"), so green with a tick */
[data-cart-page] .alert { display: flex; align-items: center; gap: 10px; border-radius: 8px; }
[data-cart-page] .alert-info { background: var(--cart-good-soft); border-color: var(--cart-good-line); color: #1f5f43; }
[data-cart-page] .alert-info::before { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d5b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-cart-page] .alert-warning { background: #fff4e0; border-color: #f1d29a; color: #7a4b00; }
[data-cart-page] .alert-danger { background: #fdecec; border-color: #f3c2c0; color: #b3261e; }

/* Cart totals: discounts, automatic apart from coupons */
.cart-discount-amount { color: var(--cart-good); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-discount-group { margin-top: 14px; font-weight: 400; }
.cart-discount-group + .cart-discount-group { padding-top: 14px; border-top: 1px dashed var(--cart-line); }
.cart-discount-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: var(--medium-gray, #717580); }
.cart-discount-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; line-height: 1.4; }
.cart-discount-line + .cart-discount-line { margin-top: 10px; }
.cart-discount-name { display: block; color: var(--cart-ink); font-weight: 500; }
.cart-discount-rule { display: block; font-size: 14px; font-weight: 400; color: var(--medium-gray, #717580); }
.cart-coupon-chip { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; padding: 0 2px 0 8px; border: 1px solid var(--cart-ink); border-radius: 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--cart-ink); }
.cart-coupon-chip button { border: 0; background: none; padding: 0 5px; font-size: 16px; line-height: 1.4; color: inherit; cursor: pointer; }

/* Cart totals: shipping options as a list of radio rows under "Shipping" */
.cart-shipping-for, .cart-shipping-hint { display: block; font-size: 14px; font-weight: 400; line-height: 1.5; }
.cart-shipping-for[hidden], .cart-shipping-hint[hidden], .cart-rates[hidden] { display: none; }
.cart-rates { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.cart-rate { position: relative; display: block; margin: 0; cursor: pointer; }
.cart-rate input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.cart-rate-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--cart-line); border-radius: 6px; color: var(--cart-ink); font-size: 16px; font-weight: 500; line-height: 1.3; transition: border-color .15s, box-shadow .15s; }
.cart-rate-dot { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid #aab6b9; border-radius: 50%; transition: border-color .15s; }
.cart-rate-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cart-ink); transform: scale(0); transition: transform .15s; }
.cart-rate-price { margin-left: auto; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-rate-price.is-free { color: var(--cart-good); }
.cart-rate:hover .cart-rate-body { border-color: #aab6b9; }
.cart-rate input:checked + .cart-rate-body { border-color: var(--cart-ink); box-shadow: 0 0 0 1px var(--cart-ink); }
.cart-rate input:checked + .cart-rate-body .cart-rate-dot { border-color: var(--cart-ink); }
.cart-rate input:checked + .cart-rate-body .cart-rate-dot::after { transform: scale(1); }
.cart-rate input:focus-visible + .cart-rate-body { outline: 2px solid var(--cart-ink); outline-offset: 2px; }
/* Payment rows: Theme Settings > Payments logos at the end of the row, and the Test word of a method in test mode */
.cart-rate-logos { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cart-rate-logos img { display: block; height: 22px; width: auto; max-width: 96px; object-fit: contain; }
.cart-rate-test { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 3px; font-size: 11px; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; }
@media (max-width: 400px) { .cart-rate-logos img { height: 18px; } }
@media (prefers-reduced-motion: reduce) { .cart-free-shipping-fill, .cart-rate-body, .cart-rate-dot, .cart-rate-dot::after { transition: none; } }

/* Checkout */
.checkout-shipping-rates li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.checkout-shipping-rates li + li { border-top: 1px dashed var(--extra-medium-gray, #e4e4e4); }
.checkout-shipping-rates label { display: flex; align-items: center; margin: 0; cursor: pointer; }
.checkout-shipping-rates input[type=radio] { width: auto; margin: 0 10px 0 0; }
.checkout-soft-checks { list-style: none; padding: 15px 20px; margin: 0 0 25px; border-radius: 6px; background: #fff7e6; border: 1px solid #f5dca6; color: #8a5a00; font-size: 15px; }
.checkout-soft-checks li + li { margin-top: 5px; }
.checkout-error { padding: 12px 18px; border-radius: 6px; background: #fdecec; border: 1px solid #f3c4c4; color: #9b1c1c; font-size: 15px; }
.checkout-billing-same { display: flex; align-items: center; cursor: pointer; }
.checkout-billing-same input { width: auto; margin: 0 10px 0 0; }
.checkout-payment-mount { min-height: 40px; }
.your-order-table .product-thumb { width: 60px; border-radius: 4px; margin-right: 12px; }
.checkout-step-label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--medium-gray, #717171); }

/* Confirmation */
.confirmation-badge { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e8f5ec; color: #1e6b3a; }
.checkout-shipping-rates label { width: 100%; }
.checkout-payment-option { cursor: pointer; }
.checkout-payment-option input[type=radio] { width: auto; margin: 0 10px 0 0; }
.checkout-spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--extra-medium-gray, #e4e4e4); border-top-color: var(--dark-gray, #232323); animation: checkout-spin 1s linear infinite; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
[data-shipping-hint].text-red { color: #9b1c1c; }
/* Checkout: an empty processor mount (Mock Pay) takes no space; the reCAPTCHA badge sits in the order box, not over the form. */
.checkout-payment-mount:empty { display: none; }
[data-payment-mount]:empty { display: none; }
#recaptcha { margin-bottom: 20px; }
#recaptcha .grecaptcha-badge { box-shadow: none !important; }

/* Product options (Product option > Display as), product page and quick shop
   only; the shop sidebar's size filter keeps its circles.
   Boxes fit their label: a short value ("M") stays a 40px circle, a longer one
   ("18k Yellow gold") a rounded pill, and a long row wraps. The chosen value
   takes Theme Settings' Surface colour with a dark edge (bg-white is !important).
   The option and extra dropdowns match the boxes, and their right padding
   clears the arrow so the longest choice shows in full (select-small's 15px
   put text under it). */
[data-option-group], .d-flex:has(> select[data-product-extra]) { flex-wrap: wrap; row-gap: 8px; }
[data-option-group] .shop-size { flex-wrap: wrap; gap: 8px; min-width: 0; }
[data-option-group] .shop-size li { margin-right: 0; }
[data-option-group] .shop-size li > input[type=radio] + label span { width: auto; height: 40px; min-width: 40px; padding: 0 14px; border-radius: 40px; border-color: var(--border, #e4e4e4); font-family: var(--alt-font); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .2s, background-color .2s; }
[data-option-group] .shop-size li > input[type=radio] + label:hover span { border-color: var(--dark-gray, #232323); }
[data-option-group] .shop-size li input[type=radio]:checked + label span { background-color: var(--surface, #f7f7f7) !important; border-color: var(--dark-gray, #232323); }
[data-option-group] .shop-size li input[type=radio]:checked + label span:after { content: none; }
[data-option-group] .shop-size label.is-sold-out::after { border-radius: 40px; }
[data-option-group] select.form-select, select.form-select[data-product-extra] { width: auto; max-width: 100%; min-width: 0; height: 40px; padding: 0 44px 0 16px; background-position: right 16px center; border-color: var(--border, #e4e4e4); border-radius: 40px; font-family: var(--alt-font); font-size: 14px; font-weight: 500; color: var(--dark-gray, #232323); cursor: pointer; }
[data-option-group] select.form-select:hover, select.form-select[data-product-extra]:hover { border-color: var(--dark-gray, #232323); }
/* The Add to cart label stays on one line ("Select options", "Out of stock"):
   the button grows a little instead, and still fits its row from 390px up. */
[data-product-add] [data-add-label] { white-space: nowrap; }

/* ── Quick shop popup (features/quick-shop.js) ──────────────────────────────
   The product's own summary column, beside its first photo. The pack has no
   quick-view design, so this borrows the product page's: its typography and
   buttons come along with the copied markup. */
.cdna-quickshop { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cdna-quickshop-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .6); }
.cdna-quickshop-box { position: relative; width: min(880px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.cdna-quickshop-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--dark-gray, #232323); font-size: 18px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.cdna-quickshop-body { min-height: 200px; padding: 0; }
.cdna-quickshop-body:not(:has(.cdna-quickshop-grid)) { display: flex; align-items: center; justify-content: center; padding: 60px; }
.cdna-quickshop-grid { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); align-items: center; }
.cdna-quickshop-media { align-self: stretch; background: var(--very-light-gray, #f7f7f7); display: flex; align-items: center; justify-content: center; }
.cdna-quickshop-media img { display: block; width: 100%; height: 100%; max-height: calc(100vh - 40px); object-fit: contain; }
/* The product page's summary at a quick-view scale: the dialog is about half
   the page's width, so the page's sizes wrapped every row (2026-10-01). */
.cdna-quickshop-info { min-width: 0; padding: 34px 32px 30px; font-size: 15px; line-height: 1.6; }
.cdna-quickshop-info > span:first-child { font-size: 14px; margin-bottom: 2px; }
.cdna-quickshop-info h1 { font-size: 24px; line-height: 1.25; margin: 0 40px 8px 0; letter-spacing: -.3px; }
.cdna-quickshop-info > .d-block.d-sm-flex { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 12px !important; font-size: 14px; }
.cdna-quickshop-info > .d-block.d-sm-flex > * { margin: 0 !important; white-space: nowrap; }
.cdna-quickshop-info > .d-block.d-sm-flex i { font-size: 13px; }
.cdna-quickshop-info .product-price { margin-bottom: 8px !important; }
.cdna-quickshop-info [data-product-price] { font-size: 22px !important; letter-spacing: 0 !important; }
.cdna-quickshop-info .last-paragraph-no-margin { margin-bottom: 16px !important; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cdna-quickshop-info [data-option-group] { margin-bottom: 14px !important; flex-wrap: wrap; row-gap: 6px; }
.cdna-quickshop-info [data-option-group] > label { font-size: 14px; min-width: 48px; margin-right: 10px !important; }
.cdna-quickshop-info .cdna-quickshop-buy { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; align-items: stretch; gap: 10px; margin: 20px 0 0 !important; }
/* An option with no stock: the buy row hides (stock-alert.js adds d-none) and the Notify me panel shows. The rule above outranked Bootstrap's d-none. */
.cdna-quickshop-info .cdna-quickshop-buy.d-none { display: none !important; }
.cdna-quickshop-info .cdna-stock-alert { margin: 20px 0 0 !important; }
.cdna-quickshop-info .cdna-quickshop-buy > * { margin: 0 !important; order: 0 !important; }
.cdna-quickshop-info .cdna-quickshop-buy .quantity { flex: 0 0 auto; width: 104px; height: 48px; }
.cdna-quickshop-info .cdna-quickshop-buy .quantity .qty-text { height: 48px; font-size: 14px; }
.cdna-quickshop-info .cdna-quickshop-buy .btn { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 18px !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 13px !important; line-height: 1.2 !important; white-space: nowrap; }
.cdna-quickshop-info .cdna-quickshop-buy .btn > span { display: inline-flex; align-items: center; }
.cdna-quickshop-info .cdna-quickshop-buy .btn i { font-size: 15px; }
/* The product page pins its wishlist button to a corner on a phone. */
.cdna-quickshop-info .cdna-quickshop-buy .wishlist { position: static !important; flex: 0 0 48px; width: 48px; height: 48px; }
.cdna-quickshop-more { font-size: 14px; margin-top: 16px !important; }
html.cdna-quickshop-open { overflow: hidden; }
@media (min-width: 768px) and (max-width: 991px) {
  .cdna-quickshop-grid { grid-template-columns: minmax(0, 40%) minmax(0, 60%); }
  .cdna-quickshop-info { padding: 30px 24px 26px; }
  .cdna-quickshop-info .cdna-quickshop-buy .quantity { width: 92px; }
  .cdna-quickshop-info .cdna-quickshop-buy .btn { padding: 0 12px !important; }
}
@media (max-width: 767px) {
  .cdna-quickshop { padding: 0; align-items: stretch; }
  .cdna-quickshop-box { max-height: 100vh; border-radius: 0; }
  .cdna-quickshop-grid { grid-template-columns: minmax(0, 1fr); }
  .cdna-quickshop-media img { max-height: 42vh; }
  .cdna-quickshop-info { padding: 22px 18px 26px; }
  .cdna-quickshop-info h1 { font-size: 21px; }
  .cdna-quickshop-info .cdna-quickshop-buy .quantity { width: 92px; }
}

/* Header account link. style.css colours it with the cart and language links,
   but responsive.css's phone rule that darkens those for the white bar a
   transparent header becomes leaves it out: white on white. A dark bar keeps
   it white, as it keeps the cart. */
@media (max-width: 991px) {
  .header-icon .icon .header-account > a { color: var(--dark-gray, #232323); }
  .navbar.header-dark .header-icon .icon .header-account > a { color: var(--white, #fff); }
}

/* Stock (Theme Settings > Stock): the product page's stock line and Notify me
   panel, sold-out option values and the card badges. templates/includes/frontend/_stock.html,
   features/stock-alert.js. */
.cdna-stock{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--text,inherit)}
.cdna-stock-dot{width:8px;height:8px;border-radius:50%;background:#1e6b46;flex:none}
.cdna-stock--low .cdna-stock-dot{background:var(--accent,#c9a227)}
.cdna-stock--out .cdna-stock-dot{background:#b3261e}
.cdna-stock-alert{border:1px solid var(--border,#e4e4e4);background:var(--surface,#f4f4f4);border-radius:6px;padding:20px}
.cdna-stock-alert-title{font-size:18px;line-height:26px}
.cdna-stock-alert-note,.cdna-stock-alert-fine{font-size:14px;line-height:22px;color:var(--muted,#6b6b6b)}
.cdna-stock-alert-fine{font-size:13px}
.cdna-stock-alert input[type=email]{font-size:16px;min-height:48px;background:var(--bg,#fff)}
.cdna-stock-alert button[type=submit]{min-height:48px}
.cdna-stock-alert-error{font-size:14px;color:#b3261e}
.cdna-stock-alert-done{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:22px}
.cdna-stock-alert-done svg{flex:none;color:#1e6b46;margin-top:1px}
[data-option-group] label.is-sold-out{opacity:.55;position:relative}
[data-option-group] label.is-sold-out::after{content:"";position:absolute;inset:0;background:linear-gradient(to top right,transparent calc(50% - .5px),currentColor calc(50% - .5px),currentColor calc(50% + .5px),transparent calc(50% + .5px));pointer-events:none;opacity:.6}
/* A value not made with the other picks (a colour not made in the picked metal): greyed and struck through, still pickable. */
[data-option-group] label.is-unavailable{opacity:.35;position:relative}
[data-option-group] label.is-unavailable::after{content:"";position:absolute;inset:0;background:linear-gradient(to top right,transparent calc(50% - .5px),currentColor calc(50% - .5px),currentColor calc(50% + .5px),transparent calc(50% + .5px));pointer-events:none;opacity:.8}
[data-option-group] .shop-size label.is-unavailable::after{border-radius:40px}
.cdna-stock-badge{position:absolute;left:12px;top:12px;z-index:2;font-size:11px;line-height:1;letter-spacing:.08em;text-transform:uppercase;padding:6px 9px;border-radius:3px;background:var(--bg,#fff);color:var(--text,#232323);border:1px solid var(--border,#e4e4e4)}
.cdna-stock-badge--low{border-color:var(--accent,#c9a227)}
.cdna-sold-out img{opacity:.62}
/* A sold-out card's buy button (catalog/product-card.html): "Out of stock", greyed; it opens the product page. Quick shop beside it still opens, with the Notify me panel. The hover that shows the demo's button still shows it. */
.cdna-out-of-stock{box-shadow:none!important;background-color:var(--surface,#f4f4f4)!important;border-color:var(--border,#e4e4e4)!important;color:var(--muted,#6b6b6b)!important}
/* Delivery status: order page, orders list (CORE-92263) */
/* The pills (components/commerce/delivery-status.html): Preparing and Packed keep the neutral pill, Cancelled the red one */
.account-status--shipped { background: #e7f4f3; border-color: #b6dcd8; color: #145e57; background: color-mix(in srgb, var(--base-color, #1f8a80) 12%, #fff); border-color: color-mix(in srgb, var(--base-color, #1f8a80) 35%, #fff); color: color-mix(in srgb, var(--base-color, #1f8a80) 65%, #000); }
.account-status--delivered { background: #e8f5ec; border-color: #bfe3cb; color: #1e6b3a; }
/* Order page cards (orders/orders/show.html): Delivery, Items, Payment, one topic each.
   Each is a <section>, which the theme pads by 70-130px, so every card sets its own padding. */
.order-card, .order-deliveries { margin: 0 0 24px; padding: 20px 22px; border: 1px solid var(--extra-medium-gray, #e4e4e4); border-radius: 8px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--extra-medium-gray, #e4e4e4); }
.order-card-title { display: block; font-size: 20px; font-weight: 500; color: var(--dark-gray, #232323); }
/* The Items card's list (components/commerce/order-item.html): photo | name, options, quantity | line total */
.order-items { list-style: none; margin: 0; padding: 0; }
.order-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--extra-medium-gray, #e4e4e4); }
.order-item:first-child { padding-top: 0; }
.order-item:last-child { padding-bottom: 0; border-bottom: 0; }
.order-item-photo { display: block; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--very-light-gray, #f7f7f7); }
.order-item-photo a { display: block; height: 100%; }
.order-item-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.order-item-name { display: block; color: var(--dark-gray, #232323); font-weight: 500; line-height: 1.35; text-decoration: none; }
a.order-item-name:hover, a.order-item-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.order-item-option { display: block; font-size: 14px; }
.order-item-qty { display: block; margin-top: 2px; font-size: 13px; }
.order-item-amount { text-align: right; white-space: nowrap; font-weight: 500; color: var(--dark-gray, #232323); font-variant-numeric: tabular-nums; }
.order-item-amount s { font-weight: 400; color: var(--medium-gray, #717580); }
/* The Delivery card: each fulfilment, then where it goes (.order-delivery-to) */
.order-delivery-to { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--extra-medium-gray, #e4e4e4); }
.order-delivery-head + .order-delivery-to { margin-top: 0; border-top: 0; }
/* The order details (order-details.html) print a plain <p>: match the address beside them */
.order-delivery-to .col p { font-size: 15px; line-height: 26px; }
.order-delivery-head { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--extra-medium-gray, #e4e4e4); }
.order-delivery-title { display: block; font-size: 20px; font-weight: 500; color: var(--dark-gray, #232323); }
.order-delivery-method { display: block; font-size: 14px; }
/* Four steps; the line into a step is its ::before, drawn from the previous step's dot */
.order-delivery-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-delivery-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; font-size: 13px; line-height: 18px; color: var(--medium-gray, #717580); }
.order-delivery-step::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--extra-medium-gray, #e4e4e4); }
.order-delivery-step:first-child::before { display: none; }
.order-delivery-step.is-done::before, .order-delivery-step.is-current::before { background: var(--base-color, #1f8a80); }
.order-delivery-dot { position: relative; z-index: 1; flex: none; width: 16px; height: 16px; margin-bottom: 8px; border-radius: 50%; background: var(--white, #fff); border: 2px solid var(--extra-medium-gray, #e4e4e4); }
.order-delivery-step.is-done .order-delivery-dot, .order-delivery-step.is-current .order-delivery-dot { background: var(--base-color, #1f8a80); border-color: var(--base-color, #1f8a80); }
.order-delivery-step.is-current .order-delivery-dot { box-shadow: 0 0 0 4px #d3ebe8; box-shadow: 0 0 0 4px color-mix(in srgb, var(--base-color, #1f8a80) 25%, #fff); }
.order-delivery-step.is-done, .order-delivery-step.is-current { color: var(--dark-gray, #232323); }
.order-delivery-step.is-current .order-delivery-label { font-weight: 600; }
.order-delivery-date { display: block; margin-top: 2px; font-size: 12px; color: var(--medium-gray, #717580); font-variant-numeric: tabular-nums; }
/* Tracking: the number, Copy and the carrier link together in one tinted strip */
.order-delivery-tracking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; padding: 14px 16px; background: var(--light-medium-gray, #f4f2ee); border: 1px solid var(--extra-medium-gray, #e4e4e4); border-radius: 6px; }
.order-delivery-tracking + .order-delivery-tracking { margin-top: 10px; }
.order-delivery-key { display: block; font-size: 13px; }
.order-delivery-code-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.order-delivery-copy { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--base-color, #1f8a80); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.order-delivery-copy[hidden] { display: none; }
.order-delivery-code { display: inline; font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 15px; letter-spacing: .02em; color: var(--dark-gray, #232323); overflow-wrap: anywhere; }
.order-delivery-note { margin: 16px 0 0; font-size: 14px; }
.order-delivery-steps + .order-delivery-note { margin-top: 22px; }
/* Several deliveries: accordion rows (<details>), open while in progress */
details.order-delivery { margin-top: 10px; border: 1px solid var(--extra-medium-gray, #e4e4e4); border-radius: 6px; }
.order-delivery-head + details.order-delivery { margin-top: 16px; }
.order-delivery-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 4px 12px; padding: 14px 16px; list-style: none; cursor: pointer; }
.order-delivery-summary::-webkit-details-marker { display: none; }
.order-delivery-summary::marker { content: ""; }
.order-delivery-summary:focus-visible { outline: 2px solid var(--base-color, #1f8a80); outline-offset: 2px; border-radius: 6px; }
.order-delivery-summary .order-delivery-title { font-size: 16px; }
.order-delivery-summary .order-delivery-method { font-size: 13px; }
.order-delivery-chevron { justify-self: center; width: 10px; height: 10px; margin-top: -4px; border-right: 2px solid var(--dark-gray, #232323); border-bottom: 2px solid var(--dark-gray, #232323); transform: rotate(45deg); transition: transform .15s; }
details.order-delivery[open] > .order-delivery-summary .order-delivery-chevron { margin-top: 4px; transform: rotate(-135deg); }
.order-delivery-body { padding: 0 16px 16px; border-top: 1px solid var(--extra-medium-gray, #e4e4e4); }
.order-delivery-body > .order-delivery-note:first-child, .order-delivery-body > .order-delivery-contents:first-child { margin-top: 14px; }
.order-delivery-contents { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; }
.order-delivery-contents li { padding: 2px 0; }
.order-delivery-contents-name { font-weight: 500; color: var(--dark-gray, #232323); }
.order-delivery-contents-option { display: inline; }
.order-delivery-contents-option::before { content: " \00b7  "; }
@media (prefers-reduced-motion: reduce) { .order-delivery-chevron { transition: none; } }
@media (max-width: 575px) {
	.order-card, .order-deliveries { padding: 16px; }
	.order-delivery-step { padding: 0 2px; font-size: 12px; line-height: 16px; }
	.order-delivery-tracking .btn { width: 100%; }
	.order-delivery-summary { padding: 12px; }
	.order-delivery-body { padding: 0 12px 12px; }
	.order-item { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; }
	.order-item-photo { width: 60px; height: 60px; }
}

/* Stock warnings: cart lines, cart alert, checkout (CORE-92263) */
/* A cart line's own message (components/commerce/line-messages.html), in the
   amber / red pill of .order-line-refund and .account-status */
.cart-line-note { display: block; width: fit-content; max-width: 100%; margin-top: 6px; padding: 2px 10px; border-radius: 30px; font-size: 12px; line-height: 20px; font-weight: 500; white-space: normal; }
.cart-line-note--warning { background: #fff7e6; border: 1px solid #f5dca6; color: #8a5a00; }
.cart-line-note--error { background: #fdecec; border: 1px solid #f3c4c4; color: #9b1c1c; }
/* The checkout's notice by Pay (lib/stock-refusal.js), on the Bootstrap alert */
.cdna-stock-notice { margin: 20px 0 0; font-size: 14px; line-height: 22px; }
.cdna-stock-notice p:last-child { margin-bottom: 0; }
.cdna-stock-notice__list { margin: 0 0 10px; padding-left: 18px; }
.cdna-stock-notice__link { font-weight: 500; color: inherit; text-decoration: underline; }
/* The product page's quantity cap (features/stock-alert.js), under the buy row */
.cdna-qty-cap { margin: -10px 0 20px; font-size: 14px; line-height: 20px; color: #8a5a00; }
/* All of the option's stock in the cart: the stock line's link to it, and a refused add's
   answer under the buy row (features/stock-alert.js, features/cart.js) */
.cdna-stock-cart-link { margin-left: 8px; font-weight: 500; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cdna-add-refused { margin: -10px 0 20px; font-size: 14px; line-height: 20px; color: #9b1c1c; }
/* Cart line stock (line-messages.html, features/cart-stock.js): the SKU under
   the name, the stock note under the quantity, a quiet sold-out line, the
   guest's Notify me field, the note by Checkout and the notice with Undo.
   One-page colours first (--opc-* on /cart, --d-* in the drawer), then fixed ones. */
.cart-line-sku { display: block; margin-top: 2px; font-size: 12px; line-height: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--opc-muted, var(--d-muted, #5f7479)); font-variant-numeric: tabular-nums; }
.cart-line-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
/* The platform keeps a box that holds only whitespace (its Twig |trim does not drop it) */
.cart-line-stock:not(:has(*)) { display: none; }
/* A line at its most (features/cart-stock.js): its + is off */
[data-cart-line] [data-qty-step]:disabled, [data-cart-line] [data-qty-increment]:disabled, [data-cart-line] .qty-plus:disabled { opacity: .35; cursor: not-allowed; }
.cart-line-stock .cart-line-note { margin-top: 0; }
.opc-cart-row .opc-cart-qty { flex-wrap: wrap; }
/* Desktop: the stepper and its bin stay on one row, the note runs under both */
@media (min-width: 768px) {
  .opc-cart-row .opc-cart-qty { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 8px 12px; }
  .opc-cart-qty > .cart-line-stock { grid-column: 1 / -1; }
  .opc-cart-qty .cart-line-note { white-space: nowrap; }
}
.opc-cart-qty > .cart-line-stock { flex-basis: 100%; }
.product-quantity .cart-line-stock, .product-detail .cart-line-stock { margin-top: 8px; }
/* A sold-out line has no quantity: its note takes that place, beside the bin */
.opc-cart-row.is-soldout .opc-cart-qty > .cart-line-stock { order: -1; flex: 1 1 auto; grid-column: auto; }
/* Drawer: the note goes under the stepper and the bin, on one line */
.opc-drawer__qtyrow { flex-wrap: wrap; row-gap: 8px; }
.opc-drawer__qtyrow > .cart-line-stock { order: 3; flex: 0 0 100%; }
.opc-drawer__qtyrow .cart-line-note { white-space: nowrap; }
.opc-drawer__line.is-soldout .opc-drawer__qtyrow > .cart-line-stock { order: 0; flex: 1 1 auto; }
.cart-line-stock-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cart-line-notify { font: inherit; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--opc-text, var(--d-ink, inherit)); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.is-soldout .opc-cart-img, .is-soldout .opc-drawer__img, .is-soldout .product-thumbnail img, .is-soldout .product-image img { opacity: .5; }
.is-soldout .opc-cart-name, .is-soldout .opc-cart-unit, .is-soldout .opc-cart-total, .is-soldout .opc-drawer__name, .is-soldout .opc-drawer__price,
.is-soldout .product-name > a, .is-soldout .product-price, .is-soldout .product-subtotal { color: var(--opc-muted, var(--d-muted, #5f7479)); }
.cart-notify { grid-column: 1 / -1; display: grid; gap: 6px; max-width: 440px; margin: 6px 0 0; }
@media (min-width: 768px) { .opc-cart-row > .cart-notify { margin-left: 112px; } }
.cart-notify label { font-size: 13px; line-height: 19px; color: var(--opc-muted, var(--d-muted, #5f7479)); }
.cart-notify__in { display: flex; gap: 6px; }
.cart-notify__field { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--opc-line, var(--d-line, #dbe4e6)); border-radius: 6px; background: var(--opc-field, #fff); color: inherit; font: inherit; font-size: 14px; }
.cart-notify__go { height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--opc-accent, var(--d-accent, #14222a)); color: var(--opc-on-accent, #fff); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.cart-notify__go[disabled] { opacity: .6; cursor: progress; }
.cart-notify__err { font-size: 12px; line-height: 18px; color: var(--opc-error, #9b1c1c); }
/* What Checkout leaves out, as a box the shopper reads before the button */
.cart-left-out { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; padding: 10px 12px; background: var(--opc-bg, var(--d-bg, #fff)); border: 1px solid var(--opc-line, var(--d-line, #dbe4e6)); border-radius: 6px; font-size: 13.5px; line-height: 20px; font-weight: 500; color: var(--opc-ink, var(--d-ink, #14222a)); }
.cart-left-out svg { flex: 0 0 16px; color: #b26b00; }
.cart-stock-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: 6px; border: 1px solid var(--opc-good-line, #cfe5da); background: var(--opc-good-soft, #e9f4ee); color: var(--opc-good, #1f5a3f); font-size: 14px; line-height: 21px; }
.cart-stock-notice svg { flex: 0 0 18px; margin-top: 2px; }
.cart-stock-notice--info { border-color: var(--opc-line, var(--d-line, #dbe4e6)); background: var(--opc-panel, #f4f8f9); color: var(--opc-text, var(--d-ink, #14222a)); }
.cart-stock-notice__text { flex: 1; min-width: 0; }
.cart-stock-notice__undo { flex: none; font: inherit; font-weight: 500; color: inherit; background: none; border: 0; padding: 0; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* In the drawer: inside its 24px side margin, 12px under the free shipping box,
   a quiet white row with a green tick (two green bars read as one message) */
.opc-drawer__body > .cart-stock-notice { margin: 12px 24px 0; padding: 10px 14px; font-size: 13px; line-height: 19px; align-items: center; background: var(--d-bg, #fff); border-color: var(--d-line, #dbe4e6); color: var(--d-ink, #14222a); }
.opc-drawer__body > .cart-stock-notice svg { margin-top: 0; color: #2f7d5b; }
.cart-stock-notice--column { margin: 0 0 12px; align-items: center; }
.cart-stock-notice--column svg { margin-top: 0; }
.cart-line-notify:focus-visible, .cart-notify__go:focus-visible, .cart-notify__field:focus-visible, .cart-stock-notice__undo:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
