/**
 * Lumière Commerce (Diverse) - Checkout Stylesheet
 * Custom styles for Bootstrap 5 integration
 */

:root {
    --lumiere-bg: #faf9fb;
    --lumiere-surface: #ffffff;
    --lumiere-primary: #000000;
    --lumiere-secondary: #5d5e60;
    --lumiere-accent: var(--ring-color, #BD00FF); /* Dynamic Shop Accent Color */
    --lumiere-outline: #7e7576;
    --lumiere-outline-variant: #e5e5e7;
    --lumiere-container-low: #f5f3f5;
    --lumiere-container: #efedef;
    --lumiere-radius-card: 12px;
    --lumiere-radius-elem: 4px; /* 0.25rem per DESIGN.md */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--lumiere-bg);
    color: #1b1c1d;
    -webkit-font-smoothing: antialiased;
}

/* Minimalist Header */
.checkout-header {
    background-color: var(--lumiere-surface);
    border-bottom: 1px solid var(--lumiere-outline-variant);
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.checkout-header .brand-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--lumiere-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Steps Spacing and Card-Based Styling */
.checkout-step-container {
    display: flex;
    flex-direction: column;
    gap: 64px; /* 64px gap between major steps per DESIGN.md */
}

.checkout-card {
    background-color: var(--lumiere-surface);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--lumiere-radius-card);
    padding: 2.25rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease;
}

.checkout-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -6px rgba(0, 0, 0, 0.03);
}

/* Empty Cart State Card - Completely flat and static */
.checkout-card.empty-cart-card,
.checkout-card.empty-cart-card:hover {
    box-shadow: none !important;
    transition: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Edge-to-Edge Mobile Layout (below 768px md breakpoint) */
@media (max-width: 767.98px) {
    .checkout-card, .summary-card, .card {
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding: 1.75rem 1rem !important; /* Seamless flush padding on mobile */
        box-shadow: none !important;
    }
}

/* Step Header & Numbers */
.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--lumiere-outline-variant);
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--lumiere-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.85rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.015em;
    color: var(--lumiere-primary);
}

/* Step 1: Products */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    padding: 1.25rem;
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
    background-color: var(--lumiere-surface);
    transition: border-color 0.2s ease;
}

.cart-item:hover {
    border-color: var(--lumiere-primary);
}

/* Mobile Product Image width matching the stepper (110px) */
.cart-item-image-wrapper {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--lumiere-outline-variant);
    background-color: #fafafa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom responsive sizing utilities for product image */
.w-mobile-110 {
    width: 110px !important;
    height: 110px !important;
}

@media (min-width: 576px) {
    .w-sm-80 {
        width: 80px !important;
        height: 80px !important;
    }
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lumiere-primary);
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
    background-color: #ffffff;
    width: 110px; /* Fix stepper width to match mobile product image */
}

.qty-btn {
    border: none !important;
    background-color: transparent !important;
    color: var(--lumiere-primary) !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: var(--lumiere-container-low) !important;
}

.qty-value {
    flex-grow: 1;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    border-left: 1px solid var(--lumiere-outline-variant);
    border-right: 1px solid var(--lumiere-outline-variant);
    line-height: 30px;
    height: 32px;
}

.cart-item-price-info {
    text-align: right;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lumiere-primary);
}

.cart-item-old-price {
    font-size: 0.8rem;
    color: var(--lumiere-secondary);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.cart-item-delete {
    color: var(--lumiere-secondary);
    background: none;
    border: none;
    padding: 0.5rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.cart-item-delete:hover {
    color: var(--lumiere-primary);
}

/* Step 2: Interactive Tiles */
.tiles-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
    row-gap: 1rem;
}

.tile-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

@media (min-width: 576px) {
    .tile-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Konfigurowalna liczba kolumn grida metod dostawy/płatności (panel: checkout-settings) */
@media (min-width: 576px) {
    .tiles-row.cols-1 .tile-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .tiles-row.cols-3 .tile-col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
    .tiles-row.cols-4 .tile-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* PayU (zaawansowany) - kafelek zajmuje pełną szerokość wiersza niezależnie od liczby kolumn */
.tile-col.checkout-tile-full-width {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* PayU (zaawansowany) - panel "OPCJE PŁATNOŚCI" (widget wyboru banku/portfela). Renderowany
   jako element .tiles-row (flex, wrap) tuż po kafelku PayU - flex: 0 0 100% wymusza złamanie
   wiersza, dzięki czemu panel pojawia się bezpośrednio pod kafelkiem PayU, a nie po WSZYSTKICH
   kafelkach metod płatności. */
.tiles-row > .payu-advanced-panel {
    flex: 0 0 100%;
    max-width: 100%;
}
.payu-advanced-panel {
    width: 100%;
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background-color: var(--lumiere-container-low, #f5f3f5);
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
}

.payu-advanced-panel-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
    color: var(--lumiere-secondary);
}

.payu-advanced-method-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.payu-advanced-method-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 92px;
    padding: 1rem 0.75rem;
    background-color: var(--lumiere-surface, #fff);
    border: 1.5px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem, 10px);
    font-size: 0.85rem;
    color: var(--lumiere-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.25;
    text-align: center;
}

.payu-advanced-method-chip:hover {
    border-color: var(--lumiere-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.payu-advanced-method-chip.active {
    border: 2px solid #000000;
    background-color: #f8f9fa;
    font-weight: 700;
}

.payu-advanced-method-chip .payu-chip-check {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
    color: #000000;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.payu-advanced-method-chip.active .payu-chip-check {
    opacity: 1;
}

.payu-advanced-method-chip .payu-chip-icon.material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
}

.payu-advanced-method-chip img.payu-chip-icon {
    height: 26px;
    width: auto;
    max-width: 64px;
    object-fit: contain;
}

.payu-advanced-method-chip .payu-chip-name {
    font-size: 0.8rem;
}

.checkout-tile-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkout-tile-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 140px;
    padding: 1.5rem;
    background-color: var(--lumiere-surface);
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem); /* 4px per DESIGN.md */
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-tile-label:hover {
    border-color: var(--lumiere-primary);
}

/* Checked/Active Tile (Thick 2px solid black border and clean neutral background) */
.checkout-tile-input:checked + .checkout-tile-label,
.checkout-tile-label.active {
    border: 2px solid #000000 !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Solid Checkmark Badge in Top Right Corner */
.tile-checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background-color: var(--lumiere-accent, #000000); /* Dynamic primary accent */
    color: #ffffff !important; /* White checkmark */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.checkout-tile-input:checked + .checkout-tile-label .tile-checkmark,
.checkout-tile-label.active .tile-checkmark {
    opacity: 1;
    transform: scale(1);
}

/* Strict Active Visual State controlled ONLY by .active class on payment card */
.payment-method-card .tile-checkmark,
.payment-method-tile .tile-checkmark {
    opacity: 0 !important;
    transform: scale(0.6) !important;
}
.payment-method-card.active .tile-checkmark,
.payment-method-tile.active .tile-checkmark,
.payment-method-card.active .checkout-tile-label .tile-checkmark,
.payment-method-tile.active .checkout-tile-label .tile-checkmark {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Remove box-shadow/glow from quantity inputs (+/-) */
input[type="number"], .qty-input { 
    box-shadow: none !important; 
    outline: none !important; 
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
}

/* Tile Layout Content */
.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.tile-icon {
    height: 28px;
    display: flex;
    align-items: center;
}

.tile-icon img, .tile-icon svg {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
}

.tile-body {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

.tile-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--lumiere-primary);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.tile-info {
    font-size: 0.8rem;
    color: var(--lumiere-secondary);
    margin-bottom: 0.5rem;
}

.tile-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--lumiere-primary);
}

/* Map Section Overhaul */
.map-container {
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stacks points list above map on mobile */
    height: auto;
    min-height: 450px;
}

@media (min-width: 768px) {
    .map-container {
        flex-direction: row; /* Horizontal split on desktop */
        height: 400px;
    }
}

.map-sidebar {
    width: 100%;
    background-color: var(--lumiere-surface);
    border-bottom: 1px solid var(--lumiere-outline-variant);
    padding: 1.25rem;
    max-height: 250px; /* Safe stacking limit for mobile */
    overflow-y: auto;
}

@media (min-width: 768px) {
    .map-sidebar {
        width: 33.333%;
        max-height: none;
        border-bottom: none;
        border-right: 1px solid var(--lumiere-outline-variant);
    }
}

/* Map Search Bar Redesign */
.map-search-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
    background-color: #ffffff;
    padding: 0.25rem 0.5rem;
    transition: border-color 0.2s ease;
}

.map-search-wrapper:focus-within {
    border-color: var(--lumiere-primary) !important;
}

.map-search-icon-left {
    color: var(--lumiere-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    padding-left: 0.25rem;
}

.map-search-input {
    border: none !important;
    background-color: transparent !important;
    font-size: 0.875rem;
    color: var(--lumiere-primary);
    padding: 0.5rem;
    flex-grow: 1;
    outline: none !important;
    box-shadow: none !important;
}

.map-search-input::placeholder {
    color: var(--lumiere-secondary);
    opacity: 0.65;
}

.map-search-btn-right {
    border: none;
    background: transparent;
    color: var(--lumiere-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.map-search-btn-right:hover {
    color: var(--lumiere-primary);
}

/* Pickup Point List Item */
.point-item {
    padding: 1rem;
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--lumiere-surface);
}

.point-item:hover {
    background-color: var(--lumiere-container-low);
}

/* Active pickup point (2px border and clean neutral background) */
.point-item.active {
    border: 2px solid #000000 !important;
    background-color: #f8f9fa !important;
}

/* Bold typography for point ID */
.point-item-name {
    font-size: 0.8rem;
    font-weight: 700; /* Bold typography */
    color: var(--lumiere-primary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.point-item-address {
    font-size: 0.75rem;
    color: var(--lumiere-secondary);
    margin-bottom: 0;
}

.map-view-canvas {
    position: relative;
    background-color: #e5e3df;
    width: 100%;
    height: 250px; /* Fixed map size on mobile */
    overflow: hidden;
}

@media (min-width: 768px) {
    .map-view-canvas {
        width: 66.666%;
        height: 100%;
    }
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.5;
}

/* Inactive Map Marker: Simple Black Circle */
.map-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #000000; /* Inactive Black Circle */
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
}

/* Selected Active Map Marker: Glowing Purple Circle */
.map-marker.active {
    width: 20px;
    height: 20px;
    background-color: var(--lumiere-accent); /* Active Purple Circle */
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 12px var(--lumiere-accent); /* Glowing effect */
    z-index: 10;
    animation: markerPulse 2s infinite ease-in-out;
}

@keyframes markerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Step 3: Input Fields Styling */
.checkout-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.checkout-input-label {
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lumiere-secondary);
}

.checkout-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--lumiere-container-low); /* #F5F5F7 */
    border: none;
    border-bottom: 1px solid var(--lumiere-outline);
    border-radius: var(--lumiere-radius-elem) var(--lumiere-radius-elem) 0 0;
    color: #1b1c1d;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
}

.checkout-input:focus {
    border-bottom-color: var(--lumiere-primary);
    background-color: var(--lumiere-surface);
}

.invoice-collapse-box {
    background-color: var(--lumiere-container-low);
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Toggle Switch Overrides for Bootstrap */
.form-switch .form-check-input {
    background-color: var(--lumiere-outline-variant);
    border-color: transparent;
    height: 1.5rem;
    width: 2.75rem;
    cursor: pointer;
    border-radius: 2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-color: var(--lumiere-accent);
    border-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.form-check-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1b1c1d;
    padding-left: 0.5rem;
    cursor: pointer;
    user-select: none;
}

/* Sidebar Order Summary */
.summary-wrapper {
    position: sticky;
    top: 2rem;
    z-index: 10;
}

.summary-card {
    background-color: var(--lumiere-surface);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--lumiere-radius-card);
    padding: 2.25rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--lumiere-outline-variant);
    color: var(--lumiere-primary);
}

.free-delivery-badge {
    background-color: var(--lumiere-container-low);
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #1b1c1d;
}

.free-delivery-badge i {
    font-size: 1.2rem;
    color: var(--lumiere-accent);
}

.free-delivery-badge strong {
    color: var(--lumiere-accent);
    font-weight: 700;
}

/* Promo Code Input Group */
.promo-input-group {
    display: flex;
    border: 1px solid var(--lumiere-outline-variant);
    border-radius: var(--lumiere-radius-elem);
    overflow: hidden;
    background-color: var(--lumiere-surface);
    transition: border-color 0.2s ease;
}

.promo-input-group:focus-within {
    border-color: var(--lumiere-primary);
}

.promo-input {
    flex-grow: 1;
    border: none;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    outline: none;
    background-color: transparent;
}

.promo-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    color: var(--lumiere-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.promo-btn:hover {
    background-color: var(--lumiere-container-low);
}

/* Breakdown Prices */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.summary-row .label-txt {
    color: var(--lumiere-secondary);
}

.summary-row .val-txt {
    font-weight: 600;
    color: #1b1c1d;
}

.summary-row.total-row {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--lumiere-outline-variant);
}

.summary-row.total-row .label-txt {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lumiere-primary);
}

.summary-row.total-row .val-txt {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lumiere-accent); /* Electric Purple accent for final total price */
}

/* Legal consents in sidebar */
.consent-checkbox {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.consent-checkbox .form-check-input {
    border-color: var(--lumiere-outline);
    border-radius: 2px; /* 2px radius for checkboxes per DESIGN.md */
    margin-top: 0.2rem;
    cursor: pointer;
}

.consent-checkbox .form-check-input:checked {
    background-color: var(--lumiere-primary);
    border-color: var(--lumiere-primary);
}

.consent-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
    border-color: var(--lumiere-primary);
}

.consent-label {
    font-size: 0.775rem;
    color: var(--lumiere-secondary);
    line-height: 1.4;
    padding-left: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.consent-label a {
    color: var(--lumiere-primary);
    text-decoration: underline;
    font-weight: 600;
}

.consent-label a:hover {
    color: var(--lumiere-accent);
}

/* Main Call to Action Button */
.btn-lumiere-submit {
    background-color: var(--lumiere-primary);
    color: #ffffff;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1.15rem;
    border-radius: var(--lumiere-radius-elem);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-lumiere-submit:hover {
    background-color: var(--lumiere-secondary);
    color: #ffffff;
}

.btn-lumiere-submit:active {
    background-color: #1b1b1b;
}

/* Trust Badges - Below Submit inside Summary Card */
.summary-trust-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lumiere-outline-variant);
}

.trust-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--lumiere-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

.trust-badges-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--lumiere-secondary);
}

.trust-item i {
    font-size: 1rem;
    color: #198754; /* Success Green */
}

/* Footer styling */
.checkout-footer {
    background-color: var(--lumiere-container-low);
    border-top: 1px solid var(--lumiere-outline-variant);
    padding: 2.5rem 0;
    margin-top: 5rem;
}

.checkout-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .checkout-footer-content {
        flex-direction: row;
        gap: 0;
    }
}

.footer-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lumiere-primary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lumiere-primary);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--lumiere-secondary);
}

.footer-copy .wellserwis-link {
    color: var(--lumiere-primary, #111);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-copy .wellserwis-link:hover {
    color: var(--ring-color, var(--lumiere-primary, #000));
    text-decoration: underline;
}

/* Responsive Custom Adjustments */
@media (max-width: 991.98px) {
    .summary-wrapper {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    .checkout-card {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .checkout-card, .summary-card, .card {
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding: 1.75rem 1rem !important;
        box-shadow: none !important;
    }
}

@media (max-width: 575.98px) {
    .cart-item {
        padding: 1rem;
    }
}

/* Custom Discount Input Wrapper Focus Overrides */
#discountWrapper input.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
}

/* --- STORE PICKUP MODAL STYLES (REQUIRED FOR CHECKOUT.PHP) --- */
.modal-service-wrapper {
    background: rgba(0, 0, 0, 0.6);
    height: 100%;
    left: 0;
    opacity: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    transition: all 0.3s;
    visibility: hidden;
    width: 100%;
    z-index: -1;
}
.modal-service-wrapper.active {
    opacity: 1;
    visibility: visible;
    z-index: 100000;
}

.custom-pickup-modal {
    position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 95%; max-width: 1000px; height: 85vh; max-height: 800px;
    background: #fff; z-index: 100001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
}

.cpm-header {
    padding: 25px 40px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}
.cpm-title { margin: 0; font-size: 24px; font-weight: 700; color: #000; }
.cpm-close { background: none; border: none; font-size: 32px; cursor: pointer; color: #000; line-height: 1; }

.cpm-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px 60px;
    background: #fff;
}

.cpm-search {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 30px;
    font-size: 16px;
    background-color: #f9f9f9;
}

.cpm-group-header {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.cpm-item {
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.cpm-item:hover {
    border-color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cpm-item.selected {
    border: 2px solid #ffc107;
    background-color: #fff9e6;
}
.cpm-city { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: #000; }
.cpm-address { font-size: 14px; color: #555; }

.cpm-tabs-container {
    position: relative;
    margin-bottom: 25px;
}
.cpm-tabs-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}
.cpm-tabs-wrapper::-webkit-scrollbar { display: none; }
.cpm-tab {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}
.cpm-tab:hover { background: #f8f9fa; border-color: #000; color: #000; }
.cpm-tab.active { background: #000; color: #fff; border-color: #000; }
.cpm-item.hidden-by-group { display: none !important; }

.dates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}
.date-tile {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 120px;
    height: 110px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}
.date-tile:hover { border-color: #999; }
.date-tile.active { border: 2px solid #ffc107; background-color: #fff9e6; }
.date-tile.disabled { background-color: #f9f9f9; border-color: #eee; opacity: 0.5; cursor: not-allowed; }
.dt-day { font-size: 11px; text-transform: uppercase; color: #666; margin-bottom: 5px; font-weight: 600; }
.dt-num { font-size: 30px; font-weight: 800; color: #333; line-height: 1; margin-bottom: 8px; }
.dt-status { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; }
.st-green { background: #d4edda; color: #155724; }
.st-red { background: #f8d7da; color: #721c24; }
.st-gray { color: #aaa; }
.btn-back-link {
    background: none; border: none; padding: 0; font-weight: 700; font-size: 14px; color: #000;
    display: flex; align-items: center; margin-bottom: 25px; cursor: pointer; text-transform: uppercase;
}

@media (max-width: 768px) {
    .custom-pickup-modal { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
    .cpm-body { padding: 20px; }
}

/* Confirm button styling inside store pickup modal */
.custom-pickup-modal button[id^="btn-save-pickup-"],
.custom-pickup-modal .btn-fill {
    background-color: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-pickup-modal button[id^="btn-save-pickup-"]:disabled,
.custom-pickup-modal .btn-fill:disabled {
    background-color: #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

.custom-pickup-modal button[id^="btn-save-pickup-"]:not(:disabled):hover,
.custom-pickup-modal .btn-fill:not(:disabled):hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Saved Address Tiles & Branding Styles
   ========================================================================== */

/* Custom Brand Color Utility */
.text-brand {
    color: var(--lumiere-accent, #BD00FF) !important;
}

/* Base styles for saved and add-new address tiles */
.saved-address-tile,
.add-new-address-tile {
    position: relative;
    border: 1px solid var(--lumiere-outline-variant, #e5e5e7);
    border-radius: var(--lumiere-radius-card, 12px);
    background-color: var(--lumiere-surface, #ffffff);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 100%;
    min-width: 280px;
    max-width: 320px;
    width: 100%;
}

/* Hide scrollbar for address selection container */
.saved-addresses-scroll,
.saved-addresses-container .overflow-auto {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
.saved-addresses-scroll::-webkit-scrollbar,
.saved-addresses-container .overflow-auto::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.saved-address-tile:hover,
.add-new-address-tile:hover {
    border-color: #000000 !important;
    box-shadow: inset 0 0 0 1px #000000 !important;
    transform: none !important;
}

/* Active State for Address Tiles (No dimension shift, uses inset shadow) */
.saved-address-tile.active-address-tile,
.add-new-address-tile.active-address-tile,
.saved-address-tile.active-tile,
.add-new-address-tile.active-tile,
.saved-address-tile.active,
.add-new-address-tile.active,
.saved-address-tile.selected,
.add-new-address-tile.selected {
    border-color: #000000 !important;
    box-shadow: 0 0 0 1px #000000 inset !important;
    background-color: #f8f9fa !important;
}

/* Trash Icon inside Saved Address Tiles - Increased Touch Target */
/* Premium Save Address Button (Minimalistic/Premium Theme) */
#btn-save-address,
.btn-lumiere-save {
    background-color: var(--lumiere-primary, #000000);
    color: #ffffff !important;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: var(--lumiere-radius-elem, 6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    cursor: pointer;
    box-shadow: none;
}

#btn-save-address:hover,
.btn-lumiere-save:hover {
    background-color: var(--lumiere-secondary, #333333);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#btn-save-address:active,
.btn-lumiere-save:active {
    background-color: #1b1b1b;
}

#btn-save-address:disabled,
.btn-lumiere-save:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

/* Custom Toast Notification System */
.custom-toast {
    background-color: #1e1e24;
    color: #ffffff;
    border-left: 4px solid #6c757d;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.custom-toast-error {
    background-color: #2b1d1d;
    border-left-color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-left-width: 4px;
}
.custom-toast-success {
    background-color: #1a291f;
    border-left-color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.3);
    border-left-width: 4px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
    }
}

/* WCAG 2.1 / 2.2 AA Keyboard Navigation Visual Focus Indicators */
:focus-visible,
.saved-address-tile:focus-visible,
.add-new-address-tile:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="radio"]:focus-visible,
[role="switch"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--lumiere-accent, #BD00FF) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure focus indicator is never obscured by sticky/fixed elements (WCAG 2.4.11) */
:focus,
:focus-visible {
    scroll-margin-top: 100px;
    scroll-margin-bottom: 80px;
}

