/* =====================================================
   CART / CHECKOUT / VOUCHERS
   Dark burgundy cards on a white page - a distinct
   "commerce" treatment from the rest of the account pages.
===================================================== */

:root {
    --cart-card-bg: radial-gradient(1100px 260px at 85% -40%, rgba(217,164,65,0.18), transparent),
                     linear-gradient(135deg, #1c0707 0%, #300b0b 45%, #120404 100%);
    --cart-gold: #d9a441;
    --cart-gold-light: #e8c377;
    --cart-red: #d0001b;
}

body:has(.cart-page) {
    background: #fff;
}

.cart-page {
    max-width: 1400px;
    margin: 0 auto;
    /* min-height keeps a short page (few/no items) filling the viewport
       below the header, so the fixed .cart-bottom-bar's reserved padding
       always lands past the visible content instead of overlapping it. */
    min-height: calc(100vh - 130px);
    padding: 28px 24px 90px;
    box-sizing: border-box;
}

.cart-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.cart-page-head h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.cart-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid var(--cart-gold);
    color: #b8790a;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}

.cart-edit-btn:hover {
    background: var(--cart-gold);
    color: #1c0707;
}

/* -----------------------------------------------------
   LAYOUT
----------------------------------------------------- */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 22px;
    align-items: start;
}

@media (max-width: 980px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* Order Summary stays visible near the header on desktop (sticky within
   its column) and moves above the item list when stacked on mobile,
   rather than requiring a long scroll past every cart item to reach it. */
.cart-summary-aside {
    position: sticky;
    /* Below the pinned top bar + site header (home.css). */
    top: calc(var(--site-pinned-h, 0px) + 20px);
}

@media (max-width: 980px) {
    .cart-summary-aside {
        position: static;
        order: -1;
    }
}

.cart-items-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* -----------------------------------------------------
   EMPTY CART
----------------------------------------------------- */

.cart-empty-state {
    position: relative;
    background: var(--cart-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(20,0,0,0.22);
    color: #fff;
    max-width: 560px;
    margin: 10px auto 28px;
    padding: 56px 32px;
    text-align: center;
}

.cart-empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(217,164,65,0.12);
    border: 1px solid rgba(217,164,65,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--cart-gold-light);
}

.cart-empty-state h2 {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.cart-empty-state p {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 auto 26px;
    max-width: 380px;
}

.cart-empty-state .empty-cta {
    background: var(--cart-gold);
    color: #1c0707;
}

.cart-empty-state .empty-cta:hover {
    background: var(--cart-gold-light);
    color: #1c0707;
}

/* -----------------------------------------------------
   DARK CARD (shared base)
----------------------------------------------------- */

.cart-dark-card {
    position: relative;
    background: var(--cart-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(20,0,0,0.22);
    color: #fff;
}

.cart-dark-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, transparent 0 40%, rgba(217,164,65,0.08) 50%, transparent 60% 100%);
    pointer-events: none;
}

/* -----------------------------------------------------
   CUSTOM CHECKBOX (styled for dark backgrounds)
----------------------------------------------------- */

.cart-checkbox {
    position: relative;
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    cursor: pointer;
}

.cart-checkbox input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.cart-checkbox .box {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: .15s;
}

.cart-checkbox input:checked ~ .box {
    background: var(--cart-red);
    border-color: var(--cart-red);
    color: #fff;
}

.cart-checkbox.light .box {
    border-color: #ccc;
}

/* -----------------------------------------------------
   SHOP GROUP CARD
----------------------------------------------------- */

.cart-shop-card {
    padding: 0;
}

.cart-shop-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cart-shop-badge {
    background: var(--cart-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .3px;
}

.cart-shop-name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.cart-shop-name i {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.cart-shop-edit {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    color: var(--cart-gold-light);
}

.cart-shop-edit:hover {
    color: #fff;
}

.cart-shop-subtotal {
    font-size: 13px;
    font-weight: 700;
    color: var(--cart-gold-light);
    flex-shrink: 0;
    white-space: nowrap;
}

.shop-view-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--cart-gold-light);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: color .15s;
}

.shop-view-more-btn:hover {
    color: #fff;
}

/* -----------------------------------------------------
   ITEM ROW
----------------------------------------------------- */

.cart-item-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-item-row:last-of-type {
    border-bottom: none;
}

.cart-item-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 6px;
}

.cart-item-variant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 14px;
    margin-bottom: 8px;
}

.cart-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.cart-item-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid;
}

.cart-item-badge-preorder {
    color: #ff8a8a;
    border-color: rgba(255,138,138,0.5);
}

.cart-item-badge-promo {
    color: var(--cart-gold-light);
    border-color: rgba(217,164,65,0.5);
}

.cart-item-shipping {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.cart-item-shipping i {
    font-size: 10px;
    color: var(--cart-gold-light);
}

/* -----------------------------------------------------
   QUANTITY STEPPER
----------------------------------------------------- */

.cart-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-qty-stepper button {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
}

.cart-qty-stepper button:hover {
    background: rgba(255,255,255,0.1);
}

.cart-qty-stepper button:disabled {
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
}

.cart-qty-stepper input {
    width: 34px;
    height: 28px;
    background: none;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.25);
    border-right: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    text-align: center;
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: .15s;
}

.cart-item-remove:hover {
    color: var(--cart-red);
    background: rgba(255,255,255,0.08);
}

.cart-item-price {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: var(--cart-gold-light);
}

.cart-item-price .was {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}

.cart-item-row.removing {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: opacity .2s, max-height .25s, padding .25s;
}

/* -----------------------------------------------------
   NOT-YET-ADDED ITEM ROW (browse -> Add to Cart)
----------------------------------------------------- */

.cart-item-row-addable {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: .6;
}

.cart-item-row-addable:hover {
    opacity: .85;
}

.cart-item-row-addable .cart-item-thumb {
    filter: grayscale(40%);
}

.cart-item-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid var(--cart-gold);
    color: var(--cart-gold-light);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: .15s;
}

.cart-item-add-btn:hover {
    background: var(--cart-gold);
    color: #1c0707;
}

/* -----------------------------------------------------
   SHOP VOUCHER ROW
----------------------------------------------------- */

.cart-shop-voucher-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 12.5px;
    color: var(--cart-gold-light);
    cursor: pointer;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cart-shop-voucher-row i:first-child {
    font-size: 13px;
}

.cart-shop-voucher-row i:last-child {
    margin-left: auto;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.cart-product-voucher-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 13px 56px;
    font-size: 12px;
    color: var(--cart-gold-light);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-product-voucher-row i {
    font-size: 12px;
    flex-shrink: 0;
}

.cart-product-voucher-select {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    max-width: 340px;
}

.cart-product-voucher-select option {
    background: #1a1a1a;
    color: #fff;
}

/* -----------------------------------------------------
   ORDER SUMMARY CARD
----------------------------------------------------- */

.cart-summary-card {
    position: sticky;
    top: calc(var(--site-pinned-h, 0px) + 20px);
    padding: 22px 22px 24px;
}

.cart-summary-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.cart-summary-card h3 i {
    color: var(--cart-gold-light);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
}

.cart-summary-row .free {
    color: #4ade80;
    font-weight: 700;
}

.cart-summary-row .discount {
    color: #ff8a8a;
    font-weight: 700;
}

.cart-summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 16px 0;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.cart-summary-total span:first-child {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.cart-summary-total span:last-child {
    font-size: 22px;
    font-weight: 700;
    color: var(--cart-gold-light);
}

.cart-voucher-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    font-weight: 600;
}

.cart-voucher-link .label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.cart-voucher-link .label i {
    color: var(--cart-gold-light);
}

.cart-voucher-link .cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.cart-voucher-form {
    display: flex;
    gap: 8px;
    margin: 8px 0 18px;
}

.cart-voucher-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
}

.cart-voucher-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.cart-voucher-form input:focus {
    border-color: var(--cart-gold);
}

.cart-voucher-form button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
}

.cart-voucher-form button:hover {
    background: var(--cart-gold);
    color: #1c0707;
}

.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 26px;
    background: linear-gradient(90deg, var(--cart-gold), #f0c766);
    color: #1c0707;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: .15s;
}

.cart-checkout-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.cart-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

/* -----------------------------------------------------
   BOTTOM STICKY BAR
----------------------------------------------------- */

.cart-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #120404;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 14px 28px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}

.cart-bottom-bar .cart-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cart-bottom-bar .selected-note {
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
}

.cart-bottom-bar .spacer {
    flex: 1;
}

.cart-bottom-bar .bottom-total {
    text-align: right;
    color: #fff;
    font-size: 13px;
}

.cart-bottom-bar .bottom-total strong {
    font-size: 19px;
    color: var(--cart-gold-light);
    margin-left: 6px;
}

.cart-bottom-bar .cart-checkout-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 24px;
    background: var(--cart-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: .15s;
}

.cart-bottom-bar .cart-checkout-btn-sm:hover {
    background: #a80016;
}

@media (max-width: 700px) {
    .cart-bottom-bar {
        padding: 12px 16px;
        gap: 12px;
    }

    .cart-bottom-bar .selected-note {
        display: none;
    }
}

/* -----------------------------------------------------
   CHECKOUT PAGE
----------------------------------------------------- */

.checkout-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 760px;
    margin: 4px auto 28px;
}

.checkout-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
}

.checkout-progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: #e4e4e4;
}

.checkout-progress-step.done:not(:last-child)::after {
    background: var(--cart-gold);
}

.checkout-progress-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    z-index: 1;
}

.checkout-progress-step.done .checkout-progress-circle {
    background: var(--cart-gold);
    border-color: var(--cart-gold);
    color: #1c0707;
}

.checkout-progress-label {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    white-space: nowrap;
}

.checkout-progress-step.done .checkout-progress-label {
    color: #b8790a;
    font-weight: 700;
}

.checkout-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--cart-gold);
    color: var(--cart-gold-light);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.checkout-section {
    padding: 20px 22px;
    margin-bottom: 18px;
}

.checkout-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

/* One order gets placed per shop group — see OrderController::store() —
   so each group carries its own subtotal/shipping/total, matching what
   its own order will actually contain. */
.checkout-shop-group:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 4px;
}

.checkout-shop-summary {
    padding: 4px 22px 18px;
}

.checkout-section-head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 700;
}

.checkout-section-head h3 i {
    color: var(--cart-gold-light);
}

.checkout-section-head a {
    font-size: 12px;
    font-weight: 700;
    color: var(--cart-gold-light);
}

.checkout-section-head a:hover {
    color: #fff;
}

.checkout-address-name {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.checkout-address-name span {
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-left: 8px;
}

.checkout-address-text {
    font-size: 12.5px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.checkout-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    cursor: pointer;
    transition: .15s;
}

.checkout-option:hover {
    border-color: rgba(217,164,65,0.5);
}

.checkout-option.selected {
    border-color: var(--cart-gold);
    background: rgba(217,164,65,0.08);
}

.checkout-option input {
    accent-color: var(--cart-gold);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkout-option-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--cart-gold-light);
    flex-shrink: 0;
}

.checkout-option-body {
    flex: 1;
    min-width: 0;
}

.checkout-option-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.checkout-option-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}

.checkout-option-price {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cart-gold-light);
    flex-shrink: 0;
}

.checkout-summary-items {
    padding-bottom: 6px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.checkout-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.checkout-mini-item:last-child {
    border-bottom: none;
}

.checkout-mini-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.checkout-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-mini-name {
    flex: 1;
    font-size: 12.5px;
    color: rgba(255,255,255,0.85);
}

.checkout-mini-qty {
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.checkout-mini-price {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cart-gold-light);
    flex-shrink: 0;
    width: 80px;
    text-align: right;
}

/* -----------------------------------------------------
   CHECKOUT — ADDRESS EMPTY STATE
----------------------------------------------------- */

.checkout-address-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px dashed rgba(255,255,255,0.25);
    border-radius: 10px;
}

.checkout-address-empty p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.6);
}

.checkout-add-address-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 20px;
    border: none;
    background: var(--cart-gold);
    color: #1c0707;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: .15s;
}

.checkout-add-address-btn:hover {
    filter: brightness(1.06);
}

/* -----------------------------------------------------
   CHECKOUT — FLAT ORDER ITEMS
----------------------------------------------------- */

.checkout-item-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.checkout-item-row:last-child {
    border-bottom: none;
}

.checkout-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-item-body {
    flex: 1;
    min-width: 0;
}

.checkout-item-mall {
    display: inline-block;
    background: var(--cart-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    letter-spacing: .3px;
}

.checkout-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.checkout-item-variant {
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 3px;
}

.checkout-item-row .cart-qty-stepper {
    flex-shrink: 0;
}

.checkout-item-price {
    width: 90px;
    flex-shrink: 0;
    text-align: right;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cart-gold-light);
}

/* -----------------------------------------------------
   CHECKOUT — APPLIED VOUCHERS (connected to voucher.blade.php;
   selection happens there, this just reflects/removes it)
----------------------------------------------------- */

.checkout-voucher-empty {
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
}

.checkout-voucher-empty a {
    color: var(--cart-gold-light);
    font-weight: 700;
}

.checkout-voucher-empty a:hover {
    color: #fff;
}

.checkout-applied-voucher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1.5px solid var(--cart-gold);
    background: rgba(217,164,65,0.08);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}

.checkout-applied-voucher i:first-child {
    color: var(--cart-gold-light);
}

.checkout-applied-voucher span {
    flex: 1;
}

.checkout-applied-voucher button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkout-applied-voucher button:hover {
    color: var(--cart-red);
}

/* -----------------------------------------------------
   CHECKOUT — ORDER NOTES
----------------------------------------------------- */

.checkout-notes-textarea {
    width: 100%;
    min-height: 76px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 12.5px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.checkout-notes-textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.checkout-notes-textarea:focus {
    border-color: var(--cart-gold);
}

.checkout-notes-counter {
    text-align: right;
    font-size: 10.5px;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
}

/* -----------------------------------------------------
   CHECKOUT — PLACE ORDER BUTTON
----------------------------------------------------- */

.checkout-place-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #a80016, #6b000e);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: .15s;
}

.checkout-place-order-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.checkout-terms-note {
    font-size: 10.5px;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}

.checkout-terms-note a {
    color: var(--cart-gold-light);
    text-decoration: underline;
}

/* -----------------------------------------------------
   ORDER DETAILS PAGE
----------------------------------------------------- */

.order-status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 22px;
    color: #fff;
    box-shadow: 0 12px 28px rgba(20,0,0,0.14);
}

.order-status-banner .order-status-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.order-status-banner h2 {
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.order-status-banner p {
    font-size: 12.5px;
    opacity: .88;
    line-height: 1.5;
}

.order-status-banner.status-pending { background: linear-gradient(135deg, #8a5a06, #b8790a); }
/* Clean burgundy — the red/gold blend read muddy in the middle, so gold
   is now just an accent (icon circle + chevron) instead of mixed into
   the gradient itself. */
.order-status-banner.status-progress { background: linear-gradient(135deg, #2a0810 0%, #4a0d1a 45%, #6b0f1f 100%); }
.order-status-banner.status-progress .order-status-icon { background: rgba(217,164,65,0.22); color: #e8c377; }
.order-status-banner.status-progress .order-status-chevron { color: #e8c377; }
.order-status-banner.status-delivered { background: linear-gradient(135deg, #14532d, #1f9254); }
.order-status-banner.status-completed { background: linear-gradient(135deg, #14532d, #1f9254); }
.order-status-banner.status-cancelled { background: linear-gradient(135deg, #6b000e, #a80016); }
.order-status-banner.status-refund { background: linear-gradient(135deg, #7a3e00, #d9601a); }
.order-status-banner.status-refunded { background: linear-gradient(135deg, #14532d, #1f9254); }
.order-status-banner.status-rejected { background: linear-gradient(135deg, #6b000e, #a80016); }

.order-details-number {
    font-size: 12.5px;
    color: #999;
    margin-bottom: 4px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.order-detail-row strong {
    color: #fff;
    font-weight: 600;
}

.order-reason-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.order-reason-box .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--cart-gold-light);
    margin-bottom: 4px;
    font-weight: 700;
}

.order-action-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.order-action-row .cart-checkout-btn,
.order-action-row .checkout-place-order-btn {
    flex: 1;
    min-width: 160px;
}

.order-action-btn-outline {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 26px;
    background: none;
    border: 1.5px solid var(--cart-gold);
    color: var(--cart-gold-light);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}

.order-action-btn-outline:hover {
    background: rgba(217,164,65,0.1);
}

/* -----------------------------------------------------
   ORDER STATUS BANNER — CLICKABLE (LINKS TO LIVE TRACKER)
----------------------------------------------------- */

.order-status-banner-link {
    display: block;
    text-decoration: none;
    transition: transform .15s;
}

.order-status-banner-link:hover {
    transform: translateY(-2px);
}

.order-status-banner-link .order-status-banner {
    cursor: pointer;
}

.order-status-chevron {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-left: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: .9;
    flex-shrink: 0;
}

/* -----------------------------------------------------
   LIVE TRACKER — ROUTE VISUAL
----------------------------------------------------- */

.tracking-map-real {
    height: 520px;
    width: 100%;
    border-radius: 12px;
    background: rgba(0,0,0,0.16);
    margin-top: 4px;
}

.tracking-map-real .leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.tracking-map {
    background-color: rgba(0,0,0,0.16);
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 14px 14px;
    border-radius: 12px;
    padding: 34px 20px 24px;
    margin-top: 4px;
}

.tracking-route {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracking-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 84px;
    text-align: center;
}

.tracking-pin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid var(--cart-gold);
    color: var(--cart-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.tracking-pin-destination .tracking-pin-icon {
    border-color: #1f9254;
    color: #6fe3a3;
}

.tracking-pin-label {
    font-size: 10.5px;
    color: rgba(255,255,255,0.65);
    line-height: 1.35;
}

.tracking-route-line {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin: 0 4px;
}

.tracking-route-progress {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, var(--cart-gold), var(--cart-red));
    border-radius: 4px;
    transition: width .3s;
}

.tracking-route-marker {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d0001b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 0 0 5px rgba(208,0,27,0.22);
    transition: left .3s;
}

.tracking-map-note {
    margin-top: 22px;
    font-size: 11.5px;
    color: rgba(255,255,255,.6);
    text-align: center;
}

.tracking-map-note i {
    color: var(--cart-gold-light);
    margin-right: 4px;
}

/* -----------------------------------------------------
   TRACKING HISTORY — VERTICAL TIMELINE
----------------------------------------------------- */

.tracking-timeline {
    display: flex;
    flex-direction: column;
}

.tracking-step {
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
    position: relative;
}

.tracking-step:last-child {
    padding-bottom: 4px;
}

.tracking-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.12);
}

.tracking-step.done:not(:last-child)::before {
    background: var(--cart-gold);
}

.tracking-step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    z-index: 1;
}

.tracking-step.done .tracking-step-marker {
    background: var(--cart-gold);
    color: #1c0707;
}

.tracking-step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
}

.tracking-step.done .tracking-step-title {
    color: #fff;
}

.tracking-step-desc {
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
    line-height: 1.5;
}

.tracking-step.done .tracking-step-desc {
    color: rgba(255,255,255,0.65);
}

.tracking-step-time {
    font-size: 11px;
    color: var(--cart-gold-light);
    margin-top: 4px;
    font-weight: 600;
}

/* -----------------------------------------------------
   PROOF OF DELIVERY MODAL (light — inside .rate-modal-box)
----------------------------------------------------- */

.pod-check-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e6f7ec;
    color: #1f9254;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 4px auto 14px;
}

.pod-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 12.5px;
    color: #777;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pod-detail-row:last-child {
    border-bottom: none;
}

.pod-detail-row strong {
    color: #111;
    font-weight: 600;
    text-align: right;
}

/* -----------------------------------------------------
   REFUND MODAL — REASON SELECT, EVIDENCE UPLOAD
----------------------------------------------------- */

.refund-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 18px;
}

.refund-product-card img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
    flex-shrink: 0;
}

.refund-product-card .name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.refund-product-card .meta {
    font-size: 11.5px;
    color: #888;
    margin-top: 2px;
}

.refund-form-group {
    margin-bottom: 16px;
}

.refund-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 7px;
}

.refund-form-group select,
.refund-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.refund-form-group select:focus,
.refund-form-group textarea:focus {
    border-color: #d9a441;
}

.refund-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.refund-upload-btn {
    width: 76px;
    height: 76px;
    border: 1.5px dashed #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #999;
    font-size: 10px;
    cursor: pointer;
    background: #fafafa;
    text-align: center;
}

.refund-upload-btn:hover {
    border-color: #d9a441;
    color: #b8790a;
}

.refund-evidence-thumb {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.refund-evidence-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.refund-evidence-thumb .remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: #fff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.refund-amount-box {
    background: #fdf3e3;
    border: 1px solid rgba(217,164,65,0.4);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.refund-amount-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #6b4a0a;
    margin-bottom: 6px;
}

.refund-amount-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(217,164,65,0.3);
    font-weight: 700;
    font-size: 13.5px;
    color: #111;
}

.refund-method-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.refund-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: #333;
}

.refund-method-option.selected {
    border-color: #d9a441;
    background: #fdf8f0;
}

.refund-confirm-note {
    font-size: 11px;
    color: #999;
    line-height: 1.6;
    margin: 10px 0 18px;
}

/* -----------------------------------------------------
   SELECT VOUCHER PAGE
----------------------------------------------------- */

.voucher-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #777;
    margin-bottom: 16px;
}

.voucher-back-link:hover {
    color: var(--cart-red);
}

.voucher-select-subtitle {
    font-size: 13px;
    color: #777;
    margin: 8px 0 20px;
}

.voucher-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fdf3e3;
    border: 1px solid rgba(217,164,65,0.4);
    color: #8a5a06;
    font-size: 12.5px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 22px;
}

.voucher-info-banner i {
    color: var(--cart-gold);
    font-size: 14px;
}

.voucher-info-banner-link {
    margin-left: auto;
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
}

.voucher-info-banner.blocked {
    background: #fdeaea;
    border-color: rgba(208,0,27,0.35);
    color: #a3001a;
}

.voucher-info-banner.blocked i {
    color: var(--cart-red);
}

.voucher-select-col {
    min-width: 0;
}

.voucher-section-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.voucher-list-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(20,0,0,0.06);
    max-height: 320px;
    overflow-y: auto;
    transition: max-height .25s ease;
}

.voucher-list-card.expanded {
    max-height: 900px;
}

.voucher-list-card::-webkit-scrollbar {
    width: 7px;
}

.voucher-list-card::-webkit-scrollbar-track {
    background: transparent;
}

.voucher-list-card::-webkit-scrollbar-thumb {
    background: rgba(208,0,27,0.25);
    border-radius: 10px;
}

.voucher-list-card::-webkit-scrollbar-thumb:hover {
    background: rgba(208,0,27,0.4);
}

.voucher-list-card .voucher-row:first-child .voucher-row-stub {
    border-top-left-radius: 13px;
}

.voucher-list-card .voucher-row:last-child .voucher-row-stub {
    border-bottom-left-radius: 13px;
}

.voucher-view-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: none;
    border: 1px dashed #ddd;
    border-radius: 10px;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}

.voucher-view-more-btn:hover {
    border-color: var(--cart-gold);
    color: #b8790a;
}

.voucher-row {
    position: relative;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background .15s;
}

.voucher-row:last-child {
    border-bottom: none;
}

.voucher-row:hover {
    background: #fdf8f2;
}

.voucher-row.selected {
    background: rgba(217,164,65,0.1);
}

.voucher-row.disabled {
    cursor: not-allowed;
    opacity: .55;
}

.voucher-row.disabled:hover {
    background: none;
}

.voucher-row-stub {
    width: 92px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 12px 8px;
    color: #fff;
    background: var(--cart-card-bg);
}

.voucher-row-stub i {
    font-size: 15px;
    color: var(--cart-gold-light);
}

.voucher-row-stub .stub-value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.voucher-row-stub .stub-unit {
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: rgba(255,255,255,0.65);
}

.voucher-row-body {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.voucher-row-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.voucher-row-sub {
    font-size: 11.5px;
    color: #888;
}

.voucher-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.voucher-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #a0710f;
    background: #fdf3e3;
    border: 1px solid rgba(217,164,65,0.35);
    padding: 3px 8px;
    border-radius: 10px;
}

.voucher-row-save {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    padding: 0 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--cart-red);
}

.voucher-row-locked {
    font-size: 10.5px;
    font-weight: 600;
    color: #999;
}

.voucher-row-radio {
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.voucher-row-radio-visual {
    flex-shrink: 0;
    align-self: center;
    width: 19px;
    height: 19px;
    margin: 0 16px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    position: relative;
    transition: .15s;
}

.voucher-row-radio:checked ~ .voucher-row-radio-visual {
    border-color: var(--cart-red);
}

.voucher-row-radio:checked ~ .voucher-row-radio-visual::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--cart-red);
}

.voucher-row-radio:disabled ~ .voucher-row-radio-visual {
    border-color: #ddd;
}

.voucher-savings-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(74,222,128,0.12);
    border: 1px solid rgba(74,222,128,0.35);
    color: #4ade80;
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.voucher-savings-banner strong {
    font-size: 14px;
}

@media (max-width: 640px) {
    .voucher-row-stub {
        width: 74px;
        padding: 10px 4px;
    }

    .voucher-row-save {
        width: 80px;
        font-size: 11px;
    }

    .voucher-row-radio-visual {
        margin: 0 10px;
    }
}

/* Delivery code (OTP) the buyer gives the rider at handover */
.od-otp { display: flex; align-items: center; gap: 14px; margin: -6px 0 18px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 2px dashed #d0001b; }
.od-otp > i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #fff1f2; color: #d0001b; font-size: 17px; }
.od-otp span { display: block; font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.od-otp strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: .3em; color: #111827; font-variant-numeric: tabular-nums; }
.od-otp small { font-size: 12px; color: #6b7280; }

.cart-item-row.is-unavailable { opacity: .6; }
.cart-item-row.is-unavailable .cart-item-price { text-decoration: line-through; }
.cart-item-unavailable { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: #fef2f2; color: #b91c1c; font-size: 12px; font-weight: 700; }

/* Store Voucher (seller's product voucher, claimed on the product page) */
.cpv-tag { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 2px 8px; border-radius: 6px; background: #fff1f2; color: #d0001b; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.cpv-tag i { color: #d0001b; }
.cart-product-voucher-row { gap: 8px; }
.cart-product-voucher-row.is-short::after { content: "Add more of this item to reach the voucher's min. spend"; flex-basis: 100%; font-size: 11.5px; color: #b45309; }
.cart-product-voucher-row.is-short { flex-wrap: wrap; }
.checkout-store-voucher { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cart-item-unavailable[hidden] { display: none !important; }
.checkout-applied-voucher.checkout-store-voucher { justify-content: flex-start; }

/* Cart: shop logo next to the shop name */
.cart-shop-name { gap: 10px; text-decoration: none; }
.cart-shop-logo { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #fff1f2; border: 1px solid #fde2e4; color: #d0001b; font-size: 13px; }
.cart-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.cart-shop-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-shop-name .cart-shop-chevron { font-size: 11px; }
.cart-shop-name:hover .cart-shop-title { color: #d0001b; }

/* Cart: Store Voucher picker */
.cart-product-voucher-row.svp { position: relative; flex-wrap: wrap; }
.svp-chip { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; height: 34px; padding: 0 6px 0 12px; border: 1px dashed #f3a6ad; border-radius: 8px; background: #fff; color: #6b7280; font-family: inherit; font-size: 12.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.svp-chip:hover { border-color: #d0001b; }
.svp.is-applied .svp-chip { border-style: solid; border-color: #fecdd3; background: #fff5f5; color: #111827; }
.svp-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.svp-chip-save { padding: 2px 8px; border-radius: 999px; background: #d0001b; color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.svp-chip-change { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 4px 8px; border-radius: 6px; color: #d0001b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.svp-chip-change i { font-size: 10px; }
.svp-menu { position: absolute; z-index: 30; top: calc(100% - 6px); left: 56px; width: min(380px, calc(100% - 72px)); padding: 6px; border-radius: 12px; background: #fff; border: 1px solid #eef0f3; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); }
.svp-menu[hidden] { display: none; }
.svp-menu-head { padding: 6px 8px 8px; font-size: 11.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .3px; }
.svp-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.svp-opt:hover { background: #f9fafb; }
.svp-opt.is-selected { border-color: #fecdd3; background: #fff5f5; }
.svp-opt-stub { flex: 0 0 52px; height: 42px; display: grid; place-items: center; align-content: center; border-radius: 8px; background: linear-gradient(160deg, #d0001b, #ff4d2e); color: #fff; font-size: 13px; font-weight: 900; line-height: 1; }
.svp-opt-stub small { font-size: 8px; letter-spacing: 1px; margin-top: 2px; }
.svp-opt-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.svp-opt-body strong { font-size: 13px; color: #111827; }
.svp-opt-body em { font-style: normal; font-size: 11.5px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svp-opt-body em b { color: #d0001b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.svp-opt-check { color: #e5e7eb; font-size: 16px; }
.svp-opt.is-selected .svp-opt-check { color: #d0001b; }
.svp-opt-none { margin-top: 4px; border-top: 1px solid #f3f4f6; border-radius: 0 0 10px 10px; }
.svp-opt-none .svp-opt-body strong { font-weight: 600; color: #6b7280; }
@media (max-width: 600px) { .svp-menu { left: 12px; width: calc(100% - 24px); } .svp-chip { width: 100%; } }
/* Let the Store Voucher list open past the shop card edge. */
.cart-shop-card { overflow: visible; }
.cart-shop-card .cart-shop-head { border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Cart: the item's photo and name open its product page */
a.cart-item-link { text-decoration: none; color: inherit; }
a.cart-item-thumb.cart-item-link { transition: box-shadow .15s, transform .15s; }
a.cart-item-thumb.cart-item-link:hover { box-shadow: 0 0 0 2px #d0001b; }
a.cart-item-name.cart-item-link { display: inline-block; }
a.cart-item-name.cart-item-link:hover { color: #d0001b; text-decoration: underline; text-underline-offset: 2px; }
#cartPage a.cart-item-name.cart-item-link:hover { color: #d0001b; }

/* Live tracking: map pins and the "where it is now" line (App\Support\LiveTracking). */
.ot-pin { border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; position: relative; }
.ot-pin.is-live::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(208, 0, 27, .45); animation: otPulse 1.6s ease-out infinite; }
@keyframes otPulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.tracking-now { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: #fff5f5; border: 1px solid #fbd5d8; }
.tracking-now b { display: block; font-size: 14px; color: #101828; }
.tracking-now small { font-size: 12px; color: #667085; }
.tracking-now-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #98a2b3; }
.tracking-now-dot.is-live { background: #d0001b; box-shadow: 0 0 0 4px rgba(208, 0, 27, .18); animation: otPulse2 1.4s ease-in-out infinite; }
@keyframes otPulse2 { 50% { box-shadow: 0 0 0 8px rgba(208, 0, 27, .06); } }
