/* =========================================================
   LordsWorld Srl Custom Modular Drawer Container
   Production Specification Matrix - Isolated Theme Protection
========================================================= */

#lw-cart-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(10, 34, 51, 0.45) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease-in-out;
    z-index: 9998 !important;
}

#lw-cart-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 420px !important;
    max-width: 82vw !important; 
    height: 100vh !important;
    background: #ffffff !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: -8px 0 30px rgba(10, 34, 51, 0.18) !important;
}

body.cart-open {
    overflow: hidden !important;
}

body.cart-open #lw-cart-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.cart-open #lw-cart-drawer {
    transform: translateX(0) !important;
}

.lw-cart-header {
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 24px !important;
    border-bottom: 1px solid #eeeeee !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
}

.lw-cart-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0a2233 !important; 
    margin: 0 !important;
}

#lw-cart-close {
    border: 0 !important;
    background: none !important;
    font-size: 30px !important;
    color: #0a2233 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

#lw-cart-close:hover {
    color: #ba2525 !important;
}

#lw-cart-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0 24px !important;
    display: block !important;
}

/* =========================================================
   Product List Components & Columns Grid
========================================================= */
.lw-cart-items {
    display: block !important;
    width: 100% !important;
}

.lw-cart-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid #f2f2f2 !important;
    position: relative !important;
    background: #fff !important;
    text-align: left !important;
}

.lw-cart-item-image {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    align-self: flex-start !important;
}

.lw-cart-item-image a, 
.lw-cart-item-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.lw-cart-item-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.lw-cart-item-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
}

.lw-cart-item-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #0a2233 !important; 
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.lw-cart-item-title:hover {
    color: #00b2e2 !important; 
}

/* Attribute Formatting */
.lw-cart-item-attributes {
    font-size: 12px !important;
    color: #2d3748 !important;
    background: #f1f5f9 !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    margin: 2px 0 !important;
    display: block !important;
}

.lw-cart-item-attribute {
    margin-bottom: 2px !important;
    display: block !important;
}

.lw-cart-item-attribute .attr-title { 
    color: #4a5568 !important; 
}

/* Pricing Grid Layout Blocks */
.lw-cart-item-prices {
    margin: 2px 0 !important;
    display: block !important;
}

.lw-cart-price-block {
    font-size: 13px !important;
    color: #0a2233 !important;
}

.lw-cart-unit-price {
    font-weight: 700 !important;
    color: #0a2233 !important;
}

.lw-cart-unit-price-tax-exc {
    display: block !important;
    font-size: 11px !important;
    color: #4a5568 !important; 
    margin-top: 1px !important;
    font-weight: 500 !important;
}

.lw-cart-discount-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 2px !important;
}

.lw-cart-regular-price {
    text-decoration: line-through !important; 
    color: #a0aec0 !important;
    font-size: 12px !important;
}

.lw-cart-discount-badge {
    background: #e94b35 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
}

.lw-cart-line-totals-block {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px dashed #cbd5e1 !important;
    display: block !important;
}

.lw-cart-line-total {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0a2233 !important;
}

.lw-cart-line-total-tax-exc {
    font-size: 11px !important;
    color: #4a5568 !important;
    margin-top: 1px !important;
}

/* Inline Quantity Controls and Deletion Bin Mapping Row */
.lw-cart-item-controls-row {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 6px !important;
    width: 100% !important;
}

.lw-cart-item-qty {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #94a3b8 !important; 
    border-radius: 4px !important;
    width: fit-content !important;
    height: 28px !important;
    overflow: hidden !important;
}

.lw-cart-item-qty button {
    width: 28px !important;
    height: 100% !important;
    border: 0 !important;
    background: #f1f5f9 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #0a2233 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.lw-cart-item-qty button:hover {
    background: #cbd5e1 !important;
}

.lw-qty-value {
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 0 10px !important;
    color: #0a2233 !important;
    min-width: 24px !important;
    text-align: center !important;
    line-height: 28px !important;
    display: inline-block !important;
}

.lw-remove-item {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    font-size: 20px !important; /* Slightly padded view size rules */
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
}

.lw-remove-item:hover {
    color: #ba2525 !important;
}

/* =========================================================
   Fixed Footer Summary Section Spec Rules
========================================================= */
#lw-cart-summary-fixed-footer {
    background: #f8fafc !important;
    border-top: 1px solid #cbd5e1 !important;
    padding: 20px 24px !important;
    margin-top: auto !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05) !important;
    display: block !important;
}

.lw-drawer-summary-wrapper {
    display: block !important;
    width: 100% !important;
}

.lw-summary-vouchers {
    border-bottom: 1px dashed #cbd5e1 !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.lw-vouchers-heading {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #4a5568 !important;
    text-transform: uppercase !important;
}

.lw-voucher-line {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    color: #2e7d32 !important;
    margin-top: 3px !important;
}

.lw-summary-breakdown {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
}

.lw-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 14px !important;
    color: #0a2233 !important; 
    font-weight: 600 !important;
}

.lw-tax-row {
    font-size: 12px !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
}

.lw-summary-total-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 18px !important; 
    font-weight: 800 !important;
    color: #2e7d32 !important; 
    border-top: 1px dashed #94a3b8 !important;
    padding-top: 12px !important;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
}

.lw-summary-total-row small {
    font-weight: 500 !important;
    color: #4a5568 !important;
    font-size: 12px !important;
}

.lw-cart-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    clear: both !important;
}

a.lw-cart-button,
button.lw-cart-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

a.lw-cart-button.lw-btn-view-cart {
    border: 2px solid #0a2233 !important;
    color: #0a2233 !important;
    background: #ffffff !important;
}
a.lw-cart-button.lw-btn-view-cart:hover {
    background: #f1f5f9 !important;
}

a.lw-cart-button.lw-btn-checkout {
    background: #2e7d32 !important; 
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3) !important;
}
a.lw-cart-button.lw-btn-checkout:hover {
    background: #1b5e20 !important;
}

.lw-drawer-trust-badges {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px !important;
    border-radius: 4px !important;
    margin-top: 14px !important;
    font-size: 11px !important;
    color: #334155 !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.lw-drawer-trust-badges i {
    color: #0a2233 !important;
    font-size: 16px !important;
    margin-bottom: 2px !important;
    display: inline-block !important;
}

.badge-divider {
    border-left: 1px solid #cbd5e1 !important;
    height: 22px !important;
    display: block !important;
}

/* =========================================================
   Empty Cart State Animated Layout Rules
========================================================= */
.lw-cart-empty-state {
    padding: 80px 24px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.lw-empty-icon-animation {
    width: 72px !important;
    height: 72px !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 18px !important;
    animation: floatingCart 3s ease-in-out infinite !important;
}

.lw-empty-icon-animation i {
    font-size: 34px !important;
    color: #0a2233 !important;
}

.lw-cart-empty-state h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0a2233 !important;
    margin-bottom: 8px !important;
}

.lw-cart-empty-state p {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
}

#lw-cart-close-empty {
    max-width: 240px !important;
    cursor: pointer !important;
    border: 2px solid #0a2233 !important;
}

@keyframes floatingCart {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* =========================================================
   Top Navigation Header Customization Rules 
========================================================= */
#top-sliding-cart {
    display: inline-block !important;
    vertical-align: middle !important;
}

#top-sliding-cart button#lw-cart-trigger {
    background: transparent !important;
    border: none !important;
    position: relative !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    height: 32px !important;
    width: 32px !important;
    box-shadow: none !important;
    margin: 0 !important;
}

#top-sliding-cart button#lw-cart-trigger i.shopping-cart {
    font-size: 26px !important;
    color: #103047 !important; 
    line-height: 1 !important;
    font-family: 'Material Icons' !important;
}

#top-sliding-cart button#lw-cart-trigger .sccount {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    background: #00b2e2 !important; 
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: bold !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 2 !important;
    padding: 0 !important;
}

.header-nav #_desktop_cart {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 15px !important;
    margin-top: 2px !important;
    vertical-align: middle !important;
}

@media (max-width: 767px) {
    #lw-cart-drawer {
        width: 100% !important;
    }
}
#lw-cart-close-empty {
    pointer-events: auto !important;
    position: relative;
    z-index: 30;
    cursor: pointer;
}