/* ==========================================================================
Storefront Transactional Cart Ledger Module Stylesheet Definitions
========================================================================== */

.store-cart-wrapper {
    margin-top: 2rem !important;
    padding-bottom: 6rem !important;
}

.cart-main-title {
    font-weight: 800 !important;
    color: #111111 !important;
    margin-bottom: 1.5rem !important;
}

.cart-container {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-items-list {
    margin: 0 !important;
}

/* Product Item Row Layout */
.cart-item-row {
    padding: 0.85rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-img-box {
    background: #ffffff !important;
    padding: 0.25rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cart-item-thumb {
    object-fit: contain !important;
    max-height: 100% !important;
    max-width: 100% !important;
}

.cart-item-body {
    flex-grow: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.cart-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-product-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}

.uom-text-pill {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

/* Scheme Discounts Bar */
.cart-scheme-compact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}

.cart-scheme-badge {
    color: #16a34a;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* Bottom Actions & Price Alignment */
.cart-item-bottom-bar {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.qty-badge-box {
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
}

.qty-count-pill {
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
}

.price-summary-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.item-subtotal-text {
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
}

.item-unit-rate {
    color: #64748b;
    font-size: 0.72rem;
}

.cart-remove-link {
    color: #ef4444 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 3px 8px;
    border-radius: 4px;
    background: #fef2f2;
    transition: background 0.15s ease !important;
}

.cart-remove-link:hover {
    color: #b91c1c !important;
    background: #fee2e2 !important;
}

.catalog-return-box {
    margin-top: 1.2rem !important;
}

.catalog-back-link {
    color: #0284c7 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
}

/* Right Column Order Summary Styles */
.order-summary-accent {
    border-top: 4px solid #f0c14b !important;
}

.summary-box-title {
    font-weight: 800 !important;
    margin-top: 0 !important;
    color: #111111 !important;
}

.alert-box-padding {
    padding: 0.6rem 1rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    margin-bottom: 1rem !important;
}

.cost-row-item {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.95rem !important;
}

.cost-label-text {
    color: #475569;
}

.cost-value-dark {
    color: #0f172a;
}

.coupon-active-label {
    color: #e67e22;
    font-weight: 600;
}

.coupon-kill-trigger {
    color: #ef4444;
    font-size: 0.75rem;
    margin-left: 0.3rem;
    text-decoration: none;
}

.coupon-deduction-val {
    color: #db2828;
}

.shipping-free-tag {
    color: #16a34a;
    font-weight: 700;
}

.grand-total-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 1.2rem !important;
    font-size: 1.2rem !important;
}

.grand-total-label {
    font-weight: 800;
    color: #111111;
}

.grand-total-value {
    color: #b12704;
    font-weight: 800;
}

.coupon-form-spacing {
    margin-bottom: 1.5rem !important;
}

.coupon-code-input {
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-family: monospace !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px 0 0 4px !important;
}

.coupon-apply-btn {
    font-weight: 700 !important;
    border-radius: 0 4px 4px 0 !important;
}

.form-section-heading {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    margin-top: 1.2rem !important;
}

.address-icon-accent {
    color: #f0c14b !important;
}

.form-field-spacing {
    margin-bottom: 0.75rem !important;
}

.checkout-input-label {
    font-size: 0.8rem !important;
    color: #475569 !important;
}

.state-select-field-spacing {
    margin-bottom: 1rem !important;
}

.state-native-select {
    height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.88rem !important;
}

.logistics-radio-group {
    margin-bottom: 1.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
}

.logistics-label {
    font-weight: 600 !important;
    color: #334155 !important;
}

.shipping-free-tag-alt {
    color: #16a34a;
    margin-left: 0.3rem;
}

.shipping-premium-tag {
    color: #e67e22;
    margin-left: 0.3rem;
}

.purchase-submit-btn {
    background-color: #f0c14b !important;
    color: #111111 !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
}

.purchase-submit-btn:hover {
    background-color: #ddb13b !important;
}

.guest-lockout-box {
    border-radius: 4px !important;
    padding: 1.2rem !important;
}

.lockout-heading {
    margin: 0.3rem 0 !important;
    font-weight: 700 !important;
}

.lockout-text {
    font-size: 0.85rem !important;
    color: #444444 !important;
    margin-bottom: 1rem !important;
}

.empty-cart-segment {
    padding: 4rem 1.5rem !important;
}

.empty-cart-icon {
    opacity: 0.3 !important;
    margin-bottom: 1rem !important;
}

.empty-cart-title {
    color: #475569 !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.empty-cart-text {
    color: #94a3b8 !important;
    margin-top: 0.4rem !important;
}

.empty-btn-spacing {
    margin-top: 1.2rem !important;
}

.font-bold { font-weight: 700 !important; }
.monospace-input { font-family: monospace !important; }

/* ==========================================================================
MOBILE RESPONSIVE OVERRIDES FOR CART VIEW (< 768px)
========================================================================== */

@media only screen and (max-width: 767.98px) {

    .store-cart-wrapper {
        margin-top: 0.75rem !important;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
        padding-bottom: 3rem !important;
    }

    .cart-main-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Tighten Outer Container Padding */
    .cart-container {
        padding: 0.65rem 0.75rem !important;
        border-radius: 6px !important;
    }

    /* Ultra-Compact Mobile Horizontal Cart Item Row */
    .cart-item-row {
        padding: 0.5rem 0 !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }

    .cart-img-box {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        padding: 2px !important;
        border-radius: 4px !important;
    }

    .cart-product-title {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .uom-text-pill {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
    }

    .cart-scheme-badge {
        font-size: 0.7rem !important;
    }

    /* Streamlined Bottom Row */
    .cart-item-bottom-bar {
        margin-top: 0.25rem !important;
        gap: 4px !important;
    }

    .qty-badge-box {
        font-size: 0.72rem !important;
    }

    .qty-count-pill {
        padding: 1px 5px !important;
        font-size: 0.72rem !important;
    }

    .item-subtotal-text {
        font-size: 0.88rem !important;
    }

    .item-unit-rate {
        font-size: 0.65rem !important;
    }

    /* Hide text 'Remove' on mobile to present icon button */
    .remove-text-desktop {
        display: none !important;
    }

    .cart-remove-link {
        padding: 2px 5px !important;
        font-size: 0.8rem !important;
        line-height: 1 !important;
    }

    .catalog-return-box {
        margin-top: 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }

    .catalog-back-link {
        font-size: 0.8rem !important;
    }
}