/* Cart Page Specific Styles */

/* Toast Animation Keyframes */
@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Toast Styling */
.toast {
    backdrop-filter: blur(10px);
    border-radius: 12px !important;
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease-out;
}

.toast-progress {
    animation: toastProgress 4s linear;
}

/* Modern Promo Code Section Styling */
.promo-code-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.promo-code-section:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.promo-code-input-group {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.form-control-modern {
    border: 2px solid #dee2e6;
    border-right: none;
    padding: 12px 16px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: #ffffff;
}

.btn-modern {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-modern:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.promo-code-header h6 {
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Input group modern styling */
.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Success state for applied coupon */
.promo-code-section.applied {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.promo-code-section.applied .promo-code-header h6 {
    color: #155724;
}

.promo-code-section.applied .form-control-modern {
    border-color: #28a745;
    background: #f8fff9;
}

.promo-code-section.applied .btn-modern {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Loading state */
.promo-code-section.loading {
    opacity: 0.8;
    pointer-events: none;
}

.promo-code-section.loading .form-control-modern {
    background: #f8f9fa;
    border-color: #6c757d;
}

.promo-code-section.loading .btn-modern {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}