:root {
    --primary-color: #0c8346; --primary-light: #e0f5f0; --text-dark: #212529;
    --text-light: #6c757d; --background-color: #f8f9fa; --card-background: #ffffff;
    --border-color: #dee2e6; --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body.woocommerce-cart { background-color: var(--background-color); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.rahi-cart-page-wrapper { max-width: 1200px; margin: 20px auto; padding: 0 15px 200px 15px; display: flex; flex-direction: column; gap: 20px; }
.rahi-cart-card { background-color: var(--card-background); border-radius: 12px; box-shadow: var(--box-shadow); padding: 20px; }
.rahi-cart-main { flex: 2; display: flex; flex-direction: column; gap: 20px; }
.savings-card { background-color: var(--primary-light); border: 1px solid var(--primary-color); color: var(--primary-color); display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.savings-card strong, .savings-card .saved-amount { font-weight: 600; }
.items-card .rahi-cart-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.items-card .rahi-cart-item:last-child { border-bottom: none; }
.rahi-cart-empty-container { padding: 20px; text-align: center; }
.product-thumbnail img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; }
.product-details { flex-grow: 1; }
.product-details .product-name { margin: 0 0 5px 0; font-weight: 600; font-size: 1rem; color: var(--text-dark); }
.product-details .product-price { font-size: 0.9rem; color: var(--text-light); }
.quantity-selector { display: flex; align-items: center; justify-content: space-between; background: var(--primary-color); border-radius: 20px; color: white; min-width: 100px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.quantity-selector .qty-btn { background-color: transparent; border: none; color: white; font-size: 1.2rem; font-weight: bold; cursor: pointer; width: 35px; height: 35px; transition: transform 0.1s; }
.quantity-selector .qty-btn:active { transform: scale(0.9); }
.quantity-selector .qty-btn.disabled { cursor: not-allowed; opacity: 0.5; }
.quantity-selector .qty-display { font-weight: 600; font-size: 1rem; }
.rahi-cart-sidebar { flex: 1; position: sticky; top: 20px; }
.bill-details-card h4 { margin-top: 0; font-size: 1.2rem; color: var(--text-dark); margin-bottom: 20px; }
.bill-details-card .bill-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem; color: var(--text-dark); }
.bill-details-card hr { border: none; border-top: 1px solid var(--border-color); margin: 10px 0; }
.bill-details-card .grand-total { font-size: 1.1rem; font-weight: 700; }
/* FINAL FOOTER STYLES */
.rahi-cart-footer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-background); box-shadow: 0 -4px 12px rgba(0,0,0,0.1); z-index: 1000; padding: 10px 15px; }
.delivery-address-footer-card { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed var(--border-color); margin-bottom: 10px; }
.address-display { flex-grow: 1; }
.address-display strong { font-size: 0.9rem; }
.address-display p { margin: 0; font-size: 0.8rem; color: var(--text-light); }
.button-secondary { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.8rem; text-decoration: none; }
.total-section { display: flex; justify-content: space-between; align-items: center; }
.total-amount-display .amount { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.checkout-button { background-color: var(--primary-color) !important; color: white !important; border-radius: 8px !important; padding: 12px 25px !important; font-size: 1rem !important; font-weight: 600 !important; text-transform: none !important; border:none; cursor:pointer; text-decoration: none; }
.rahi-cart-loader-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); z-index: 99999; justify-content: center; align-items: center; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.rahi-cart-spinner { border: 5px solid var(--primary-light); border-top: 5px solid var(--primary-color); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
@media (min-width: 768px) { .rahi-cart-page-wrapper { flex-direction: row; align-items: flex-start; } .rahi-cart-footer { display: none; } }