/* Checkout Modal Styles */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.checkout-modal-overlay.active .checkout-modal-content {
    transform: translateY(0);
}

.checkout-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAFAFA;
}

.checkout-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.checkout-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.checkout-close:hover {
    color: #FF4444;
}

.checkout-body {
    padding: 30px;
    overflow-y: auto;
}

.checkout-layout {
    display: flex;
    gap: 40px;
}

.checkout-form-section {
    flex: 3;
}

.checkout-summary-section {
    flex: 2;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #F5C518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.checkout-items {
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.chk-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
    margin-bottom: 15px;
}

.chk-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.chk-item-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.chk-item-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.chk-item-price {
    font-weight: 700;
    font-size: 14px;
    margin-left: auto;
}

.checkout-totals {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.tot-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}

.tot-row.grand-total {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 5px;
}

.checkout-pay-btn {
    width: 100%;
    background: #F5C518;
    color: #1a1a1a;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
}

.checkout-pay-btn:hover {
    background: #E5B510;
    transform: translateY(-2px);
}

.checkout-secure-badges {
    text-align: center;
    font-size: 12px;
    color: #2e7d32;
    margin-top: 15px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column-reverse;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .checkout-body {
        padding: 20px;
    }
}
