/**
 * Booking System Styles
 */

.slot {
    position: relative;
}

.slot.selected,
.slot.in-cart {
    background-color: #ff7b05 !important;
    border: 2px solid #ff7b05 !important;
    box-shadow: 0 0 15px rgba(255, 123, 5, 0.45);
    color: #fff !important;
}

.slot.selected span,
.slot.in-cart span {
    color: #fff !important;
}

.slot.already-booked {
    background-color: #2a2a2a !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.slot.past-slot {
    background-color: #1f1f1f !important;
    color: #777 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.slot.already-booked:hover {
    background-color: #2a2a2a !important;
}

.slot.already-booked span {
    color: #999 !important;
}

/* Checkout notifications */
.checkout-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-weight: bold;
    animation: slideIn 0.3s ease;
}

.checkout-notification.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Checkout quantity loading state */
.checkout-summary-row.updating {
    opacity: 0.6;
    pointer-events: none;
}

.qty-loading {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.quantity {
    position: relative;
}

/* Checkout loading overlay */
.checkout-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.checkout-spinner {
    background: white;
    padding: 40px 60px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.checkout-spinner .spinner-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: spin 1.5s linear infinite;
}

.checkout-spinner p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Billing form error states */
.form-field.error-field input {
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

.form-field.error-field label {
    color: #dc3545 !important;
}

.field-error-message {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

/* Mission Loader Overlay */
.mission-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mission-loader-overlay.active {
    opacity: 1;
}

.mission-loader-spinner {
    background: #fff;
    padding: 50px 70px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mission-loader-overlay.active .mission-loader-spinner {
    transform: scale(1);
}

.mission-loader-spinner .spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.mission-loader-spinner .loader-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Booking notifications (for AJAX feedback) */
.booking-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-weight: 600;
    font-size: 16px;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.booking-notification.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

