/* Cart Promotions Styles — compact sidebar version */

/* Prevent CSS display rules from overriding the HTML hidden attribute */
.cart-payment-restriction[hidden],
.cart-points-preview[hidden],
.cart-promotions-applied[hidden],
.cart-progress-section[hidden] {
    display: none;
}

.cart-payment-restriction {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cart-payment-restriction svg {
    color: #f57f17;
    flex-shrink: 0;
    margin-top: 1px;
    width: 16px;
    height: 16px;
}

.cart-payment-restriction p {
    margin: 0;
    color: #6d4c00;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
}

.cart-promotions-applied {
    background: #f0faf3;
    border: 1px solid #b7e0c3;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.cart-promotions-applied h3 {
    margin: 0 0 8px 0;
    color: #1a5e35;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.promotion-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #d0ead8;
    font-family: 'Roboto', sans-serif;
}

.promotion-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.promotion-name {
    color: #1a5e35;
    font-size: 12px;
    font-weight: 500;
}

.promotion-discount {
    color: #1a5e35;
    font-size: 12px;
    font-weight: 700;
}

.cart-coupon-section {
    margin-bottom: 12px;
}

#coupon-form {
    display: flex;
    gap: 6px;
}

.coupon-input {
    flex: 1;
    padding: 8px 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.2s;
    min-width: 0;
}

.coupon-input:focus {
    outline: none;
    border-color: #ff6315;
    background: #fff;
}

.coupon-input::placeholder {
    color: #bbb;
    font-size: 12px;
}

.coupon-apply-btn {
    padding: 8px 14px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.coupon-apply-btn:hover {
    background: #ff6315;
}

.coupon-feedback {
    margin: 6px 0 0;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: #555;
    padding: 6px 10px;
    border-radius: 6px;
    animation: msg-in 0.3s ease;
}

.coupon-feedback--ok {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.coupon-feedback--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.coupon-feedback[hidden] {
    display: none;
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-progress-section {
    margin-bottom: 12px;
}

.progress-bar-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #eee;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: #666;
}

.progress-labels strong {
    color: #1a1a1a;
}

.progress-bar {
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #43a047, #66bb6a);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.cart-points-preview {
    background: #f0f4ff;
    border: 1px solid #c5d0f5;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-points-preview svg {
    color: #3949ab;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.cart-points-preview p {
    margin: 0;
    color: #3949ab;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.cart-savings {
    text-align: center;
    color: #2e7d32;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    margin: 8px 0;
    font-size: 13px;
}

/* Savings banner (catalog + promo combined) */
.cart-savings-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 13px;
    color: #065f46;
}
.cart-savings-banner[hidden] { display: none; }
.cart-savings-banner svg { flex-shrink: 0; color: #059669; }
.cart-savings-banner strong { font-size: 15px; }

/* Crossed-out original price in cart items */
.cart_item_price_orig {
    color: #9ca3af;
    font-size: 12px;
    margin-right: 4px;
}
