/* ============================================================
   CHECKOUT PAGE SPECIFIC STYLES
   ============================================================ */

/* Navigation Pills */
.nav-pills {
    background-color: var(--soft-blush);
    border-radius: 50px;
    --bs-nav-pills-link-active-bg: var(--soft-rose);
    padding: 0.25rem;
}

.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--soft-rose) !important;
    color: white !important;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(213, 105, 137, 0.1);
}

/* Alerts */
.alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: none;
}

.alert-success {
    background-color: rgba(194, 221, 128, 0.2);
    color: #3d5a1e;
    border-left: 4px solid var(--soft-mint);
}

.alert-danger {
    background-color: rgba(213, 105, 137, 0.1);
    color: var(--soft-rose);
    border-left: 4px solid var(--soft-rose);
}

.alert-info {
    background-color: rgba(233, 156, 174, 0.15);
    color: #5d4350;
    border-left: 4px solid var(--soft-blush);
}

/* Order Receipt Modal */
.order-receipt {
    background: white;
    border-radius: 12px;
    padding: 15px;
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.receipt-header h3 {
    color: #d63384;
    margin-bottom: 3px;
    font-size: 18px;
    font-family: 'Playfair Display', serif;
}

.receipt-header p {
    color: #666;
    margin: 0;
    font-size: 11px;
}

.receipt-header strong {
    font-size: 14px;
}

.receipt-items {
    margin-bottom: 12px;
}

.receipt-items h6 {
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    padding: 3px 0;
    border-bottom: 1px solid #f5f5f5;
}

.receipt-item:last-child {
    border-bottom: none;
}

.receipt-item .item-name {
    color: #333;
}

.receipt-item .item-price {
    color: #555;
    font-weight: 500;
}

.receipt-total {
    border-top: 2px dashed #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.receipt-total div {
    font-size: 12px;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.receipt-total .grand-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--soft-rose);
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 5px;
}

.receipt-footer {
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 10px;
    color: #999;
}

.receipt-footer p {
    margin-bottom: 3px;
}

/* Receipt Buttons */
.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin: 8px;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.continue-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin: 8px;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Modal Customization */
.modal-dialog {
    max-width: 450px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #f0dbdf;
    padding: 1rem 1.5rem;
}

.modal-header .btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f0dbdf;
    padding: 1rem 1.5rem;
    justify-content: center;
}

/* Checkout Form */
.checkout-form .form-control {
    border-radius: 12px;
    border: 2px solid #eed9df;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.checkout-form .form-control:focus {
    border-color: var(--soft-rose);
    box-shadow: 0 0 0 4px rgba(213, 105, 137, 0.1);
}

.checkout-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Order Summary */
.order-summary {
    background: var(--soft-ivory);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #f0dbdf;
}

.order-summary h5 {
    color: var(--soft-rose);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(213, 105, 137, 0.1);
}

.order-summary .summary-item:last-child {
    border-bottom: none;
}

.order-summary .summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--soft-rose);
    border-top: 2px solid rgba(213, 105, 137, 0.2);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

/* Payment Methods */
.payment-method {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.payment-method .method-item {
    flex: 1;
    min-width: 80px;
    padding: 0.75rem;
    border: 2px solid #eed9df;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method .method-item:hover {
    border-color: var(--soft-blush);
    background: var(--soft-ivory);
}

.payment-method .method-item.active {
    border-color: var(--soft-rose);
    background: rgba(213, 105, 137, 0.05);
    box-shadow: 0 0 0 3px rgba(213, 105, 137, 0.1);
}

.payment-method .method-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.payment-method .method-item .method-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================================
   CHECKOUT RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
    }
    
    .order-receipt {
        padding: 12px;
    }
    
    .receipt-header h3 {
        font-size: 16px;
    }
    
    .payment-method .method-item {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .payment-method .method-item i {
        font-size: 1.2rem;
    }
    
    .receipt-item {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .order-summary {
        padding: 1rem;
    }
    
    .checkout-form .form-control {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}