/**
 * IziBooking Payment Modal Styles
 *
 * @package    IziBooking
 * @since      1.0.0
 */

/* Modal Overlay */
.izibooking-modal {
    display: flex;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.izibooking-modal-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.izibooking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.izibooking-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.izibooking-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.izibooking-modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Modal Body */
.izibooking-modal-body {
    padding: 24px;
}

/* Payment Info */
.izibooking-payment-info {
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid #10b981;
}

.izibooking-payment-info p {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 15px;
}

.izibooking-payment-info p:last-child {
    margin-bottom: 0;
}

.izibooking-payment-info strong {
    color: #111827;
    font-weight: 600;
}

.izibooking-payment-note {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-style: italic;
}

/* Izipay Form Container */
#izipay-payment-form-container {
    min-height: 400px;
}

.kr-embedded {
    margin: 0 auto;
}

/* Notifications */
.izibooking-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    min-width: 320px;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.izibooking-notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.izibooking-notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.izibooking-notification-success {
    border-left: 4px solid #10b981;
}

.izibooking-notification-success .izibooking-notification-icon {
    color: #10b981;
}

.izibooking-notification-error {
    border-left: 4px solid #ef4444;
}

.izibooking-notification-error .izibooking-notification-icon {
    color: #ef4444;
}

.izibooking-notification-content p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.izibooking-notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.izibooking-notification-close:hover {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .izibooking-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .izibooking-modal-header,
    .izibooking-modal-body {
        padding: 16px;
    }

    .izibooking-modal-header h3 {
        font-size: 20px;
    }

    .izibooking-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Loading State */
.izibooking-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
