/* Coastal Calm — cart-checkout styles. Loaded after coastal.css.
   Scopes: .c-cartpage (cart page, inside master layout)
           body.c-checkout-page (standalone checkout view)
           body.c-thanks-page (standalone thank-you view) */

/* =====================================================================
   CART PAGE
   ===================================================================== */
.c-cartpage { background: var(--c-shell); color: var(--c-ink); }
.c-cartpage .c-cart__crumbs { background: transparent !important; }
.c-cartpage .c-cart__crumbs nav { background: transparent !important; }
.c-cartpage .breadcrumb {
    background: transparent !important; padding: 22px 0 0 !important; margin: 0 !important;
    font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.c-cartpage .breadcrumb-item { text-transform: none !important; font-size: 14px !important; }
.c-cartpage .breadcrumb-item + .breadcrumb-item { padding-left: 0 !important; }
.c-cartpage .breadcrumb-item + .breadcrumb-item::before,
.c-cartpage nav[aria-label=breadcrumb] .breadcrumb .active::before {
    content: '/' !important; font-family: var(--c-sans) !important; color: #b6aa96 !important;
    padding-right: 6px !important; float: none !important;
}
.c-cartpage .breadcrumb-item a { color: var(--c-ocean) !important; font-weight: 600; }
.c-cartpage .breadcrumb-item.active { color: var(--c-muted) !important; }

.c-cartpage .pro-content.c-cart { padding: 0 0 24px !important; margin: 0 !important; background: transparent !important; }
.c-cartpage .c-cart__head { display: flex; flex-direction: column; gap: 12px; padding: 26px 0 34px !important; margin: 0 !important; text-align: left !important; border: 0 !important; }
.c-cartpage .c-cart__head::before, .c-cartpage .c-cart__head::after { display: none !important; }
.c-cartpage .c-cart__head h2 { font-size: clamp(34px, 3.6vw, 48px) !important; line-height: 1.08; margin: 0 !important; padding: 0 !important; text-transform: none !important; }
.c-cartpage .c-cart__head h2::before, .c-cartpage .c-cart__head h2::after { display: none !important; }
.c-cartpage .cart-content { padding: 0 !important; margin: 0 !important; background: transparent !important; }

.c-cartpage .c-cart__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start;
    padding: 0 !important; margin: 0 !important;
}
.c-cartpage .c-cart__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Items list (the table is populated by cartItem() in master.blade.php) */
.c-cartpage .c-cart__items {
    background: #fff; border: 1px solid var(--c-sand-line); border-radius: 24px; padding: 8px 28px;
}
.c-cartpage #cartItem-product-show { display: block; width: 100%; margin: 0 !important; border: 0 !important; background: transparent !important; }
.c-cartpage #cartItem-product-show > tbody { display: block; border: 0 !important; }
.c-cartpage #cartItem-product-show > tbody + tbody { border-top: 1px solid var(--c-sand-line) !important; }
.c-cartpage #cartItem-product-show tr.cartItem-row {
    display: grid !important; grid-template-columns: 112px minmax(0, 1fr) 110px 128px 120px;
    grid-template-areas: "thumb info price qty total";
    gap: 22px; align-items: center; padding: 24px 0; margin: 0 !important; background: transparent !important;
    border: 0 !important; box-shadow: none !important;
}
.c-cartpage #cartItem-product-show tr.cartItem-row > td {
    flex: none !important; max-width: none !important; width: auto !important; padding: 0 !important;
    border: 0 !important; background: transparent !important; text-align: left !important; min-width: 0;
    display: block !important;
}
.c-cartpage #cartItem-product-show .c-ci__thumb { grid-area: thumb; }
.c-cartpage #cartItem-product-show .c-ci__info { grid-area: info; }
.c-cartpage #cartItem-product-show .cartItem-price { grid-area: price; }
.c-cartpage #cartItem-product-show .c-ci__qty { grid-area: qty; }
.c-cartpage #cartItem-product-show .cartItem-total { grid-area: total; }

.c-cartpage .cartItem-image {
    width: 112px !important; height: 112px !important; object-fit: cover; border-radius: 18px;
    background: var(--c-sand); display: block; border: 0 !important; max-width: none;
}
.c-cartpage .cartItem-image:not([src]), .c-cartpage .cartItem-image[src=""] { visibility: hidden; }
.c-cartpage .c-ci__thumb { background: var(--c-sand); border-radius: 18px !important; width: 112px !important; height: 112px; overflow: hidden; }

.c-cartpage .item-detail { display: flex !important; flex-direction: column; align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; gap: 6px; padding: 0 !important; }
.c-cartpage .cartItem-category-name {
    font-size: 12px !important; font-weight: 700 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ocean) !important;
}
.c-cartpage .cartItem-category-name:empty { display: none; }
.c-cartpage h4.cartItem-name {
    font-family: var(--c-sans) !important; font-size: 17px !important; font-weight: 600 !important; line-height: 1.35 !important;
    color: var(--c-ink) !important; margin: 0 !important; text-transform: none !important;
}
.c-cartpage .item-attributes:empty { display: none; }
.c-cartpage .item-controls { margin-top: 4px; padding: 0 !important; }
.c-cartpage .cartItem-remove {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600;
    color: var(--c-muted) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #cfc4b1;
}
.c-cartpage .cartItem-remove .fa-trash { color: currentColor !important; font-size: 12px; }
.c-cartpage .cartItem-remove:hover { color: var(--c-coral) !important; text-decoration-color: currentColor; }

.c-cartpage #cartItem-product-show .cartItem-price { font-size: 15px; color: var(--c-text) !important; font-weight: 500 !important; }
.c-cartpage #cartItem-product-show .cartItem-total {
    font-family: var(--c-serif) !important; font-size: 21px !important; color: var(--c-ink) !important;
    text-align: right !important; font-weight: 400 !important; white-space: nowrap;
}

/* Quantity stepper: [-] [qty] [+] */
.c-cartpage .item-quantity {
    display: inline-flex !important; flex-wrap: nowrap !important; align-items: center; width: auto !important;
    border: 1px solid var(--c-sand-line); border-radius: 999px; background: #fff; padding: 3px; height: 46px;
}
.c-cartpage .item-quantity .input-group-btn { display: contents; }
.c-cartpage .item-quantity .cartItem-qty {
    order: 1; width: 40px !important; flex: 0 0 40px !important; min-height: 0 !important; height: 38px;
    border: 0 !important; padding: 0 !important; text-align: center; font-weight: 700; font-size: 15px;
    background: transparent !important; color: var(--c-ink); border-radius: 0 !important;
}
.c-cartpage .item-quantity .btn {
    width: 38px; height: 38px; padding: 0 !important; border-radius: 999px !important; border: 0 !important;
    background: var(--c-shell) !important; color: var(--c-ink) !important; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: none !important; margin: 0 !important; font-size: 11px; transition: background .2s, color .2s;
}
.c-cartpage .item-quantity .btn:hover { background: var(--c-navy) !important; color: #fff !important; }
.c-cartpage .item-quantity .quantity-left-minus { order: 0; }
.c-cartpage .item-quantity .quantity-right-plus { order: 2; }
.c-cartpage .item-quantity .btn .fas { color: inherit !important; }

/* Loading placeholder (wiped by cartItem() on success) */
.c-cartpage .c-cart__loading, .c-cartpage .c-cart__loading tr, .c-cartpage .c-cart__loading td { display: block; border: 0 !important; padding: 0 !important; }
.c-cartpage .c-cart__loading td { display: grid; gap: 12px; padding: 24px 0 !important; }
.c-cartpage .c-cart__loading span { display: block; height: 16px; border-radius: 8px; background: var(--c-sand); animation: cPulse 1.4s ease-in-out infinite; }
.c-cartpage .c-cart__loading span:nth-child(1) { width: 55%; height: 20px; }
.c-cartpage .c-cart__loading span:nth-child(2) { width: 80%; }
.c-cartpage .c-cart__loading span:nth-child(3) { width: 35%; }

/* Empty state: shown once the item table has been emptied by the cart request */
.c-cartpage .c-cart__empty { display: none; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 56px 20px 60px; }
.c-cartpage #cartItem-product-show:empty { display: none; }
.c-cartpage #cartItem-product-show:empty + .c-cart__empty { display: flex; }
.c-cartpage .c-cart__empty-icon { width: 76px; height: 76px; border-radius: 999px; background: var(--c-seafoam); color: var(--c-ocean); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.c-cartpage .c-cart__empty h3 { font-size: 30px; margin: 0; }
.c-cartpage .c-cart__empty p { font-size: 16px; line-height: 1.6; color: var(--c-text); max-width: 380px; margin: 0 0 8px; }
.c-cartpage .c-cart__grid:has(#cartItem-product-show:empty) .c-cart__actions { display: none !important; }
.c-cartpage .c-cart__grid:has(#cartItem-product-show:empty) .c-cart__summary { opacity: .6; }
.c-cartpage .c-cart__grid:has(#cartItem-product-show:empty) .c-cart__checkout-link { pointer-events: none; }

/* Actions under items */
.c-cartpage .c-cart__actions { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 !important; }
.c-cartpage .c-cart__actions .c-btn { padding: 12px 22px; font-size: 15px; }
.c-cartpage .c-cart__continue { padding-left: 4px !important; }
.c-cartpage .c-cart__continue:hover { color: var(--c-ocean) !important; }

/* Summary card */
.c-cartpage .c-cart__summary {
    background: #fff; border: 1px solid var(--c-sand-line); border-radius: 24px; padding: 30px 28px;
    display: flex; flex-direction: column; gap: 18px; position: sticky; top: 150px; transition: opacity .2s;
}
.c-cartpage .c-cart__summary-title { font-size: 26px !important; margin: 0 !important; }
.c-cartpage #cartItem-grandtotal-product-show { display: block; width: 100%; margin: 0 !important; border: 0 !important; background: transparent !important; }
.c-cartpage #cartItem-grandtotal-product-show thead { display: none; }
.c-cartpage #cartItem-grandtotal-product-show tbody { display: flex; flex-direction: column; gap: 12px; }
.c-cartpage #cartItem-grandtotal-product-show tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: transparent !important; }
.c-cartpage #cartItem-grandtotal-product-show th,
.c-cartpage #cartItem-grandtotal-product-show td {
    border: 0 !important; padding: 0 !important; background: transparent !important; font-size: 15px;
    text-transform: none !important; letter-spacing: 0 !important;
}
.c-cartpage #cartItem-grandtotal-product-show th { font-weight: 500 !important; color: var(--c-text) !important; }
.c-cartpage #cartItem-grandtotal-product-show td { font-weight: 600; color: var(--c-ink) !important; text-align: right; }
.c-cartpage #cartItem-grandtotal-product-show .c-cart__discount:has(td:empty) { display: none; }
.c-cartpage #cartItem-grandtotal-product-show .caritem-discount-coupon { color: var(--c-coral) !important; }
.c-cartpage #cartItem-grandtotal-product-show .caritem-discount-coupon:not(:empty)::before { content: '\2212\00a0'; }
.c-cartpage #cartItem-grandtotal-product-show tr.item-price { border-top: 1px solid var(--c-sand-line); padding-top: 16px; margin-top: 4px; }
.c-cartpage #cartItem-grandtotal-product-show tr.item-price th { font-weight: 700 !important; color: var(--c-ink) !important; font-size: 16px; }
.c-cartpage #cartItem-grandtotal-product-show tr.item-price td { font-family: var(--c-sans) !important; font-weight: 700 !important; font-weight: 400 !important; font-size: 30px; line-height: 1; }
.c-cartpage #cartItem-grandtotal-product-show:empty { display: none; }
.c-cartpage .c-cart__note { font-size: 13.5px; color: var(--c-muted); margin: -4px 0 0; line-height: 1.5; }

.c-cartpage .c-cart__coupon { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--c-sand-line); }
.c-cartpage .c-cart__coupon label { font-size: 14px; font-weight: 600; color: var(--c-ink); margin: 0; }
.c-cartpage .c-cart__coupon .input-group {
    display: flex; flex-wrap: nowrap; align-items: center; background: #fff; border: 1px solid var(--c-sand-line); border-radius: 999px; padding: 4px 4px 4px 16px;
}
.c-cartpage .c-cart__coupon .input-group:focus-within { border-color: var(--c-ocean); box-shadow: 0 0 0 3px rgba(176, 38, 10, .12); }
.c-cartpage .c-cart__coupon .form-control { border: 0 !important; min-height: 40px; padding: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 15px; border-radius: 0 !important; }
.c-cartpage .c-cart__coupon .input-group-append { margin: 0; display: flex; }
.c-cartpage .c-cart__coupon #coupon-code {
    border-radius: 999px !important; padding: 10px 20px !important; font-size: 14px; background: var(--c-navy) !important; border: 0 !important; height: 40px; line-height: 1;
}
.c-cartpage .c-cart__coupon #coupon-code:hover { background: var(--c-ocean) !important; }
.c-cartpage .c-cart__coupon-remove {
    align-self: flex-start; background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--c-muted);
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #cfc4b1; cursor: pointer;
}
.c-cartpage .c-cart__coupon-remove:hover { color: var(--c-coral); }

.c-cartpage .c-cart__checkout-link { display: block; text-decoration: none !important; }
.c-cartpage .c-cart__checkout {
    width: 100%; max-width: none !important; flex: none !important; padding: 18px 28px !important; font-size: 16px !important;
    background: var(--c-navy) !important; border: 0 !important; color: #fff !important; text-transform: none !important; letter-spacing: 0 !important;
}
.c-cartpage .c-cart__checkout:hover { background: var(--c-ocean) !important; }

.c-cartpage .c-cart__perks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--c-sand-line); display: flex; flex-direction: column; gap: 10px; }
.c-cartpage .c-cart__perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-text); }
.c-cartpage .c-cart__perks svg { color: var(--c-ocean); flex-shrink: 0; }

@media (max-width: 1199px) {
    .c-cartpage .c-cart__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
    .c-cartpage #cartItem-product-show tr.cartItem-row {
        grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb price total" "thumb qty total";
        gap: 8px 20px;
    }
    .c-cartpage .c-ci__thumb, .c-cartpage .cartItem-image { width: 96px !important; height: 96px !important; }
    .c-cartpage #cartItem-product-show .c-ci__thumb { align-self: start; }
}
@media (max-width: 991px) {
    .c-cartpage .c-cart__grid { grid-template-columns: 1fr; }
    .c-cartpage .c-cart__summary { position: static; }
}
@media (max-width: 575px) {
    .c-cartpage .c-cart__head { padding: 18px 0 22px !important; }
    .c-cartpage .c-cart__items { padding: 4px 18px; border-radius: 20px; }
    .c-cartpage #cartItem-product-show tr.cartItem-row {
        grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb price price" "qty qty total"; gap: 8px 16px; padding: 20px 0;
    }
    .c-cartpage .c-ci__thumb, .c-cartpage .cartItem-image { width: 84px !important; height: 84px !important; border-radius: 14px !important; }
    .c-cartpage h4.cartItem-name { font-size: 15.5px !important; }
    .c-cartpage #cartItem-product-show .cartItem-total { align-self: center; }
    .c-cartpage .c-cart__summary { padding: 24px 20px; border-radius: 20px; }
    .c-cartpage .c-cart__actions .c-btn { flex: 1 1 auto; }
}

/* =====================================================================
   CHECKOUT (standalone view: resources/views/checkout.blade.php)
   ===================================================================== */
body.c-checkout-page {
    background: var(--c-shell) !important; color: var(--c-ink); font-family: var(--c-sans) !important;
    min-height: 100vh; display: flex; flex-direction: column; font-size: 15px;
}
body.c-checkout-page > section { flex: 1 0 auto; }

/* Functional visibility rules carried over from the old inline styles */
.c-checkout-page .nav-pills.checkout-nav-modern { display: none; }
.c-checkout-page #shippingRevealSection { display: none; }
.c-checkout-page #shippingRevealSection.revealed { display: block; animation: cRevealIn .45s cubic-bezier(.15, .85, .3, 1) both; }
@keyframes cRevealIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Header */
.c-co-header { background: var(--c-shell); border-bottom: 1px solid var(--c-sand-line); }
.c-co-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.c-co-header__logo img { height: 34px; width: auto; display: block; }
.c-co-header__secure { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--c-ocean); margin-left: 8px; padding-left: 24px; border-left: 1px solid var(--c-sand-line); }
.c-co-header__phone { margin-left: auto; font-size: 14px; color: var(--c-text) !important; text-decoration: none; }
.c-co-header__phone strong { color: var(--c-ink); font-weight: 700; }
.c-co-header__phone:hover strong { color: var(--c-ocean); }

.c-checkout-page .c-co-crumbs { padding: 0; }
.c-checkout-page .breadcrumb { padding: 26px 0 0 !important; font-size: 14px; margin: 0; }
.c-checkout-page .breadcrumb-item a { color: var(--c-ocean) !important; font-weight: 600; text-decoration: none; }
.c-checkout-page .breadcrumb-item.active { color: var(--c-muted) !important; }
.c-checkout-page .breadcrumb-item + .breadcrumb-item::before { content: '/'; color: #b6aa96; }
.c-checkout-page .c-co-title { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; margin: 12px 0 0; }

.c-checkout-page .checkout-modern { padding: 28px 0 72px; }
.c-checkout-page .checkout-modern > .container { max-width: 1280px; padding-left: 40px; padding-right: 40px; }

/* Step indicator */
.c-checkout-page .steps-progress {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; padding: 6px;
    background: #fff; border: 1px solid var(--c-sand-line); border-radius: 999px; width: fit-content;
}
.c-checkout-page .step-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 20px 9px 10px; border-radius: 999px;
    font-weight: 600; font-size: 14.5px; color: var(--c-muted); cursor: pointer; transition: background .2s, color .2s;
}
.c-checkout-page .step-item:hover { color: var(--c-ink); background: var(--c-shell); }
.c-checkout-page .step-number {
    width: 28px; height: 28px; border-radius: 999px; background: var(--c-sand); color: var(--c-ink);
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.c-checkout-page .step-item.active { background: var(--c-navy); color: #fff; }
.c-checkout-page .step-item.active .step-number { background: var(--c-gold); color: var(--c-ink); }
.c-checkout-page .step-item.completed { color: var(--c-ocean); }
.c-checkout-page .step-item.completed .step-number { background: var(--c-seafoam); color: var(--c-ocean); }

/* Main form card */
.c-checkout-page .card-step { background: #fff; border: 1px solid var(--c-sand-line); border-radius: 24px; overflow: hidden; }
.c-checkout-page .tab-pane { padding: 36px 36px 40px; }
.c-checkout-page .c-co-pane-title { display: flex; align-items: center; gap: 14px; font-family: var(--c-serif) !important; font-weight: 400; font-size: 28px; color: var(--c-ink); margin: 0 0 22px; }
.c-checkout-page .c-co-pane-num { width: 36px; height: 36px; border-radius: 999px; background: var(--c-seafoam); color: var(--c-ocean); font-family: var(--c-sans); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-checkout-page .c-co-sub {
    font-family: var(--c-sans) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .12em;
    text-transform: uppercase; color: var(--c-ocean); margin: 0 0 2px; display: flex; align-items: center; gap: 12px;
}
.c-checkout-page .c-co-sub::after { content: ''; flex: 1; height: 1px; background: var(--c-sand-line); }
.c-checkout-page .c-co-sub--spaced { margin-top: 14px; }

/* Fields */
.c-checkout-page .form-label { font-size: 14px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; letter-spacing: 0; text-transform: none; }
.c-checkout-page .form-control, .c-checkout-page .form-select {
    border: 1px solid var(--c-sand-line) !important; border-radius: var(--c-radius-sm) !important; min-height: 48px;
    padding: 11px 16px; font-size: 15px; color: var(--c-ink); background-color: #fff; box-shadow: none !important;
}
.c-checkout-page textarea.form-control { min-height: 84px; }
.c-checkout-page .form-control::placeholder { color: #8d9aa0; }
.c-checkout-page .form-control:focus, .c-checkout-page .form-select:focus {
    border-color: var(--c-ocean) !important; box-shadow: 0 0 0 3px rgba(176, 38, 10, .15) !important; background: #fff;
}
.c-checkout-page .is-invalid, .c-checkout-page .is-invalid + .select2 .select2-selection {
    border-color: var(--c-coral) !important; box-shadow: 0 0 0 3px rgba(184, 50, 42, .12) !important;
}
.c-checkout-page .form-check-input { width: 18px; height: 18px; border: 1.5px solid #bfb29c; margin-top: .15em; cursor: pointer; }
.c-checkout-page .form-check-input:checked { background-color: var(--c-navy); border-color: var(--c-navy); }
.c-checkout-page .form-check-input:focus { box-shadow: 0 0 0 3px rgba(176, 38, 10, .15); border-color: var(--c-ocean); }
.c-checkout-page .form-check-label { color: var(--c-ink); cursor: pointer; }
.c-checkout-page .form-check-label .fa-copy { color: var(--c-ocean); }
.c-checkout-page .input-group-text { background: var(--c-shell); border: 1px solid var(--c-sand-line); color: var(--c-muted); border-radius: 0 var(--c-radius-sm) var(--c-radius-sm) 0 !important; }
.c-checkout-page .input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }

/* Select2 (country / state / city) */
.c-checkout-page .select2-container--classic .select2-selection--single,
.c-checkout-page .select2-container--default .select2-selection--single {
    height: 48px; border: 1px solid var(--c-sand-line) !important; border-radius: var(--c-radius-sm) !important;
    background: #fff !important; background-image: none !important; display: flex; align-items: center; outline: 0;
}
.c-checkout-page .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 16px; padding-right: 40px; color: var(--c-ink); font-size: 15px; width: 100%; }
.c-checkout-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px !important; width: 38px !important; top: 1px !important; right: 1px !important;
    background: transparent !important; background-image: none !important; border: 0 !important; border-radius: 0 12px 12px 0 !important;
}
.c-checkout-page .select2-container .select2-selection--single .select2-selection__arrow b { border-color: var(--c-muted) transparent transparent transparent !important; }
.c-checkout-page .select2-container--open .select2-selection--single,
.c-checkout-page .select2-container--focus .select2-selection--single { border-color: var(--c-ocean) !important; box-shadow: 0 0 0 3px rgba(176, 38, 10, .15); }
.c-checkout-page .select2-dropdown { border: 1px solid var(--c-sand-line) !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(17, 17, 17, .35); }
.c-checkout-page .select2-results__option--highlighted[aria-selected] { background: var(--c-coral) !important; color: #fff !important; }
.c-checkout-page .select2-search--dropdown .select2-search__field { border: 1px solid var(--c-sand-line) !important; border-radius: 8px; padding: 6px 10px; }

/* Buttons */
.c-checkout-page .btn-primary-modern {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    background: var(--c-navy) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
    padding: 15px 30px; font-weight: 600 !important; font-size: 16px; box-shadow: none !important; transition: background .2s, transform .2s;
}
.c-checkout-page .btn-primary-modern:hover { background: var(--c-ocean) !important; color: #fff !important; transform: translateY(-1px); }
.c-checkout-page .btn-primary-modern:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.c-checkout-page .btn-outline-modern {
    display: inline-flex; align-items: center; justify-content: center; background: transparent !important;
    border: 1.5px solid var(--c-navy) !important; color: var(--c-navy) !important; border-radius: 999px !important;
    padding: 14px 26px; font-weight: 600 !important; font-size: 15px;
}
.c-checkout-page .btn-outline-modern:hover { background: var(--c-navy) !important; color: #fff !important; }
.c-checkout-page #placeOrderBtn { font-size: 17px; }

/* Coupon field (payment step) */
.c-checkout-page #orderPane .input-group:has(#coupon_code) {
    flex-wrap: nowrap; background: #fff; border: 1px solid var(--c-sand-line); border-radius: 999px; padding: 4px; align-items: center;
}
.c-checkout-page #orderPane .input-group:has(#coupon_code):focus-within { border-color: var(--c-ocean); box-shadow: 0 0 0 3px rgba(176, 38, 10, .12); }
.c-checkout-page #orderPane .input-group #coupon_code { border: 0 !important; min-height: 40px; background: transparent; padding-left: 14px; border-radius: 999px !important; box-shadow: none !important; }
.c-checkout-page #orderPane .input-group:has(#coupon_code) .btn {
    border-radius: 999px !important; margin-left: 4px !important; padding: 9px 18px; font-size: 14px; white-space: nowrap; z-index: 0;
}
.c-checkout-page #orderPane .input-group .btn-outline-secondary { background: var(--c-navy) !important; border: 0 !important; color: #fff !important; }
.c-checkout-page #orderPane .input-group .btn-outline-secondary:hover { background: var(--c-ocean) !important; }
.c-checkout-page #orderPane .input-group .btn-outline-danger { background: transparent !important; border: 0 !important; color: var(--c-muted) !important; text-decoration: underline; text-underline-offset: 3px; }
.c-checkout-page #orderPane .input-group .btn-outline-danger:hover { color: var(--c-coral) !important; }

/* Order items list (payment step) */
.c-checkout-page #cart-summary-list { background: var(--c-shell); border: 1px solid var(--c-sand-line); border-radius: 20px; padding: 6px 20px; margin-top: 12px; }
.c-checkout-page #cart-summary-list > .d-flex { padding: 16px 0 !important; margin: 0 !important; border-color: var(--c-sand-line) !important; align-items: center; }
.c-checkout-page #cart-summary-list > .d-flex:last-child { border-bottom: 0 !important; }
.c-checkout-page #cart-summary-list img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px !important; background: var(--c-sand); box-shadow: none !important; flex-shrink: 0; }
.c-checkout-page #cart-summary-list strong { color: var(--c-ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; display: block; }
.c-checkout-page #cart-summary-list .text-muted { color: var(--c-muted) !important; }
.c-checkout-page #cart-summary-list .text-primary { color: var(--c-ink) !important; font-family: var(--c-serif) !important; font-weight: 400 !important; font-size: 19px; }
.c-checkout-page #cart-summary-list .fa-shopping-cart { color: var(--c-ocean) !important; }

/* Shipping badges and notices (markup generated by the checkout script) */
.c-checkout-page .item-ship-free, .c-checkout-page .item-ship-cost, .c-checkout-page .shipping-free-badge {
    display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: none; border: 0; vertical-align: middle;
}
.c-checkout-page .item-ship-free, .c-checkout-page .shipping-free-badge { background: var(--c-seafoam); color: var(--c-ocean); }
.c-checkout-page .item-ship-cost { background: var(--c-sand); color: var(--c-ink); }
.c-checkout-page .ship-tip-alert {
    display: flex; align-items: flex-start; gap: 12px; background: var(--c-sand); border: 0; border-radius: 16px; padding: 14px 18px; margin-top: 12px;
}
.c-checkout-page .ship-tip-alert .sta-icon { font-size: 0; width: 34px; height: 34px; border-radius: 999px; background: #fff; flex-shrink: 0; position: relative; }
.c-checkout-page .ship-tip-alert .sta-icon::before {
    content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; background: var(--c-ocean);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h14v12H1zM15 9h4l3 3v4h-7'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h14v12H1zM15 9h4l3 3v4h-7'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.c-checkout-page .ship-tip-alert .sta-text strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--c-ink); }
.c-checkout-page .ship-tip-alert .sta-text span { font-size: 13.5px; color: var(--c-text); }

.c-checkout-page .ship-confirm-card {
    display: flex; align-items: center; gap: 16px; border-radius: 18px; padding: 16px 20px; border: 1px solid var(--c-sand-line); background: #fff;
}
.c-checkout-page .ship-confirm-card.is-free { background: var(--c-seafoam); border-color: #cddfdf; }
.c-checkout-page .ship-confirm-card.is-paid { background: var(--c-shell); }
.c-checkout-page .scc-icon { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--c-ocean); font-size: 17px; flex-shrink: 0; }
.c-checkout-page .scc-body strong { display: block; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.c-checkout-page .scc-body span { font-size: 13.5px; color: var(--c-text); }
.c-checkout-page .scc-amount { margin-left: auto; font-family: var(--c-serif); font-size: 22px; color: var(--c-ink); }
.c-checkout-page .ship-confirm-card.is-free .scc-amount { color: var(--c-ocean); }

/* White glove add-on */
.c-checkout-page .white-glove-card {
    display: flex; align-items: center; gap: 16px; cursor: pointer; border-radius: 20px; padding: 18px 20px;
    background: var(--c-sand); border: 1.5px solid transparent; color: var(--c-ink); transition: border-color .2s, background .2s;
}
.c-checkout-page .white-glove-card:hover { border-color: #d6c8b1; }
.c-checkout-page .white-glove-card.wg-selected { border-color: var(--c-navy); background: #fff; }
.c-checkout-page .wg-icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--c-ocean); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-checkout-page .white-glove-card.wg-selected .wg-icon { background: var(--c-seafoam); }
.c-checkout-page .wg-body { flex: 1; min-width: 0; }
.c-checkout-page .wg-body strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--c-ink); }
.c-checkout-page .wg-body span { font-size: 13.5px; color: var(--c-text); line-height: 1.45; }
.c-checkout-page .wg-badge { background: #fff; color: var(--c-ink); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.c-checkout-page .wg-toggle { width: 46px; height: 26px; border-radius: 999px; background: #d9cdb9; position: relative; flex-shrink: 0; transition: background .25s; }
.c-checkout-page .wg-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: left .25s; box-shadow: 0 1px 3px rgba(17, 17, 17, .25); }
.c-checkout-page .white-glove-card.wg-selected .wg-toggle { background: var(--c-navy); }
.c-checkout-page .white-glove-card.wg-selected .wg-toggle::after { left: 23px; }

/* Payment method cards: the whole card is clickable through the label overlay */
.c-checkout-page #paymentMethodsList { display: flex; flex-direction: column; gap: 12px; margin-top: 12px !important; }
.c-checkout-page .payment-option {
    position: relative; display: block; margin: 0; padding: 18px 20px; background: #fff; cursor: pointer;
    border: 1.5px solid var(--c-sand-line); border-radius: 18px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.c-checkout-page .payment-option:hover { border-color: #c9c9c9; }
.c-checkout-page .payment-option.active-method { border-color: var(--c-navy); background: #f7fafa; box-shadow: 0 0 0 1px var(--c-navy); }
.c-checkout-page .payment-option .form-check { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; min-height: 0; }
.c-checkout-page .payment-option .form-check-input { float: none; margin: 0; flex-shrink: 0; width: 20px; height: 20px; }
.c-checkout-page .payment-option .form-check-label { position: static; flex: 1; gap: 8px !important; color: var(--c-ink); font-size: 15.5px; }
.c-checkout-page .payment-option .form-check-label::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.c-checkout-page .payment-option .form-check-label b { font-weight: 700; margin-right: auto; }
.c-checkout-page .payment-option .form-check-label ul { margin-left: 0 !important; }
.c-checkout-page .payment-option .form-check-label img { height: 22px; width: auto; }
.c-checkout-page .payment-option [class*="payment-dynamic-fields-"] { position: relative; z-index: 2; cursor: auto; margin-top: 16px !important; }
.c-checkout-page .payment-option [class*="payment-dynamic-fields-"] > .bg-light { background: var(--c-shell) !important; border: 1px solid var(--c-sand-line) !important; border-radius: 14px !important; padding: 18px !important; }
.c-checkout-page .payment-option h6 { color: var(--c-ink); font-weight: 700; }
.c-checkout-page .payment-option h6 .fas { color: var(--c-ocean); }
.c-checkout-page .alert-info, .c-checkout-page .alert-secondary {
    background: var(--c-seafoam) !important; border: 0 !important; color: var(--c-ink) !important; border-radius: 14px !important; font-size: 14px; line-height: 1.5;
}

/* Summary card */
.c-checkout-page .summary-card {
    background: #fff; border: 1px solid var(--c-sand-line); border-radius: 24px; padding: 30px 28px; position: sticky; top: 24px;
    display: flex; flex-direction: column; gap: 18px;
}
.c-checkout-page .summary-card > h5 { font-family: var(--c-serif) !important; font-weight: 400 !important; font-size: 26px; color: var(--c-ink); margin: 0 !important; }
.c-checkout-page #cart-grandtotal-view { font-size: 15px; color: var(--c-text); }
.c-checkout-page #cart-grandtotal-view:empty { display: grid; gap: 12px; }
.c-checkout-page #cart-grandtotal-view:empty::before, .c-checkout-page #cart-grandtotal-view:empty::after {
    content: ''; height: 16px; border-radius: 8px; background: var(--c-sand); animation: cPulse 1.4s ease-in-out infinite;
}
.c-checkout-page #cart-grandtotal-view:empty::after { width: 60%; }
.c-checkout-page #cart-grandtotal-view > .d-flex { margin-bottom: 12px !important; }
.c-checkout-page #cart-grandtotal-view > .d-flex > span:last-child { color: var(--c-ink); font-weight: 600; }
.c-checkout-page #cart-grandtotal-view .text-success, .c-checkout-page #cart-grandtotal-view .text-success > span:last-child { color: var(--c-coral) !important; }
.c-checkout-page #cart-grandtotal-view .text-primary { color: var(--c-ocean) !important; }
.c-checkout-page #cart-grandtotal-view hr { border: 0; border-top: 1px solid var(--c-sand-line); opacity: 1; margin: 16px 0; }
.c-checkout-page #cart-grandtotal-view .fs-5 { align-items: baseline; margin-bottom: 0 !important; }
.c-checkout-page #cart-grandtotal-view .fs-5 > span:first-child { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.c-checkout-page #cart-grandtotal-view .fs-5 #grandTotalSpan { font-family: var(--c-sans) !important; font-weight: 700 !important; font-weight: 400 !important; font-size: 30px; color: var(--c-ink); line-height: 1; }
.c-checkout-page .sidebar-ship-hint { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin-top: 14px !important; border: 0; }
.c-checkout-page .sidebar-ship-hint.is-free { background: var(--c-seafoam); color: var(--c-ocean); }
.c-checkout-page .sidebar-ship-hint.is-pending { background: var(--c-sand); color: var(--c-ink); }
.c-checkout-page .c-co-perks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--c-sand-line); display: flex; flex-direction: column; gap: 10px; }
.c-checkout-page .c-co-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-text); }
.c-checkout-page .c-co-perks svg { color: var(--c-ocean); flex-shrink: 0; }
.c-checkout-page .c-co-editcart { font-size: 14px; font-weight: 600; color: var(--c-ocean); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }

/* Footer */
.c-co-footer { background: var(--c-navy); color: #8ea4ad; font-size: 13.5px; margin-top: 24px; }
.c-co-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 26px; }
.c-co-footer a { color: #c9d4d8; text-decoration: none; }
.c-co-footer a:hover { color: #fff; }
.c-co-footer__links { display: flex; gap: 22px; }

@media (max-width: 991px) {
    .c-checkout-page .checkout-modern > .container { padding-left: 20px; padding-right: 20px; }
    .c-checkout-page .summary-card { position: static; }
    .c-co-header__phone { display: none; }
}
@media (max-width: 575px) {
    .c-checkout-page .checkout-modern { padding-top: 20px; }
    .c-checkout-page .checkout-modern > .container { padding-left: 16px; padding-right: 16px; }
    .c-co-header__inner { min-height: 64px; gap: 12px; justify-content: space-between; }
    .c-co-header__logo img { height: 28px; }
    .c-co-header__secure { padding-left: 0; border-left: 0; margin-left: 0; font-size: 13px; }
    .c-checkout-page .steps-progress { width: 100%; justify-content: space-between; gap: 2px; }
    .c-checkout-page .step-item { padding: 8px 12px 8px 8px; font-size: 13.5px; gap: 7px; }
    .c-checkout-page .tab-pane { padding: 24px 18px 28px; }
    .c-checkout-page .c-co-pane-title { font-size: 24px; }
    .c-checkout-page .card-step, .c-checkout-page .summary-card { border-radius: 20px; }
    .c-checkout-page .summary-card { padding: 24px 20px; }
    .c-checkout-page #billingPane .d-flex.justify-content-between, .c-checkout-page #orderPane .d-flex.gap-3.mt-4 { flex-direction: column-reverse; }
    .c-checkout-page #billingPane .btn, .c-checkout-page #orderPane .btn-outline-modern, .c-checkout-page #shippingPane .btn-primary-modern { width: 100%; }
    .c-checkout-page .white-glove-card { flex-wrap: wrap; }
    .c-checkout-page .wg-body { flex-basis: calc(100% - 64px); }
    .c-checkout-page .wg-badge { margin-left: 64px; }
    .c-checkout-page .wg-toggle { margin-left: auto; }
    .c-checkout-page #orderPane .input-group:has(#coupon_code) .btn { padding: 9px 12px; }
}

/* =====================================================================
   THANK YOU (standalone view: resources/views/thankyou.blade.php)
   ===================================================================== */
body.c-thanks-page {
    margin: 0; background: var(--c-shell) !important; color: var(--c-ink); font-family: var(--c-sans) !important;
    min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
body.c-thanks-page *, body.c-thanks-page *::before, body.c-thanks-page *::after { box-sizing: border-box; }
.c-thanks-page .c-co-header a { text-decoration: none; }
.c-thanks { flex: 1 0 auto; padding: 56px 20px 88px; display: flex; justify-content: center; }
.c-thanks-page .thankyou-container { width: 100%; max-width: 680px; margin: 0 auto; }
.c-thanks-page .thankyou-card { background: #fff; border: 1px solid var(--c-sand-line); border-radius: 28px; overflow: hidden; }

.c-thanks-page .success-header { background: var(--c-seafoam); padding: 48px 40px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.c-thanks-page .success-icon { width: 76px; height: 76px; border-radius: 999px; background: var(--c-navy); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.c-thanks-page .success-icon svg { width: 36px; height: 36px; fill: var(--c-gold); }
.c-thanks-page .success-header h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin: 0; }
.c-thanks-page .success-header p { font-size: 16.5px; line-height: 1.6; color: var(--c-text); margin: 0; max-width: 440px; }

.c-thanks-page .order-details { padding: 28px 40px 8px; background: #fff; }
.c-thanks-page .order-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.c-thanks-page .info-item { background: var(--c-shell); border: 1px solid var(--c-sand-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.c-thanks-page .info-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.c-thanks-page .info-value { font-size: 17px; font-weight: 600; color: var(--c-ink); }
.c-thanks-page .info-value--price { font-family: var(--c-sans) !important; font-weight: 700; font-size: 24px; line-height: 1.1; }
.c-thanks-page .info-value--status { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ocean); }
.c-thanks-page .info-value--status::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--c-ocean); }

.c-thanks-page .message-section { padding: 24px 40px 40px; text-align: center; display: flex; flex-direction: column; gap: 22px; }
.c-thanks-page .message-section > p { margin: 0; font-size: 15.5px; color: var(--c-text); }
.c-thanks-page .c-thanks__steps { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--c-sand-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.c-thanks-page .c-thanks__steps li { display: flex; flex-direction: column; gap: 10px; }
.c-thanks-page .c-thanks__steps li > span { width: 30px; height: 30px; border-radius: 999px; background: var(--c-sand); color: var(--c-ink); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.c-thanks-page .c-thanks__steps strong { display: block; font-size: 15px; color: var(--c-ink); margin-bottom: 2px; }
.c-thanks-page .c-thanks__steps small { display: block; font-size: 13.5px; line-height: 1.5; color: var(--c-text); }

.c-thanks-page .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.c-thanks-page .btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; font-size: 15.5px; text-decoration: none; line-height: 1.2; }
.c-thanks-page .btn-primary { background: var(--c-navy) !important; border: 1.5px solid var(--c-navy) !important; color: #fff !important; }
.c-thanks-page .btn-primary:hover { background: var(--c-ocean) !important; border-color: var(--c-ocean) !important; }
.c-thanks-page .btn-outline { border: 1.5px solid var(--c-navy); color: var(--c-navy) !important; background: transparent; }
.c-thanks-page .btn-outline:hover { background: var(--c-navy); color: #fff !important; }

.c-thanks-page .toast-notification {
    position: fixed; right: 20px; bottom: 20px; z-index: 1000; background: var(--c-navy) !important; color: #fff;
    padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
    box-shadow: var(--c-shadow);
}
.c-thanks-page .toast-notification.show { opacity: 1; transform: none; }
.c-thanks-page .c-co-footer { margin-top: 0; }

@media (max-width: 640px) {
    .c-thanks { padding: 28px 16px 56px; }
    .c-thanks-page .thankyou-card { border-radius: 22px; }
    .c-thanks-page .success-header { padding: 36px 22px 30px; }
    .c-thanks-page .order-details { padding: 22px 20px 4px; }
    .c-thanks-page .message-section { padding: 20px 20px 30px; }
    .c-thanks-page .c-thanks__steps { grid-template-columns: 1fr; }
    .c-thanks-page .c-thanks__steps li { flex-direction: row; align-items: flex-start; gap: 14px; }
    .c-thanks-page .c-thanks__steps li > span { flex-shrink: 0; }
    .c-thanks-page .btn-group { flex-direction: column; }
    .c-thanks-page .btn { width: 100%; }
}

/* Step indicator state derived from the visible pane (the script marks the
   payment step with the pane name "order", which never matches data-step="payment") */
.c-checkout-page .checkout-modern:has(#billingPane.active) .step-item[data-step="shipping"],
.c-checkout-page .checkout-modern:has(#orderPane.active) .step-item[data-step="shipping"],
.c-checkout-page .checkout-modern:has(#orderPane.active) .step-item[data-step="billing"] { background: transparent; color: var(--c-ocean); }
.c-checkout-page .checkout-modern:has(#billingPane.active) .step-item[data-step="shipping"] .step-number,
.c-checkout-page .checkout-modern:has(#orderPane.active) .step-item[data-step="shipping"] .step-number,
.c-checkout-page .checkout-modern:has(#orderPane.active) .step-item[data-step="billing"] .step-number { background: var(--c-seafoam); color: var(--c-ocean); }
.c-checkout-page .checkout-modern:has(#orderPane.active) .step-item[data-step="payment"] { background: var(--c-navy); color: #fff; }
.c-checkout-page .checkout-modern:has(#orderPane.active) .step-item[data-step="payment"] .step-number { background: var(--c-gold); color: var(--c-ink); }
.c-checkout-page .tab-pane.fade { transition: none; }
