/**
 * Bookblock Multi-Market Modal Styles
 *
 * @package Bookblock_Multi_Market
 */

/* ==========================================================================
   MODAL OVERLAY
   ========================================================================== */

.bbmm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* ==========================================================================
   MODAL BOX
   ========================================================================== */

.bbmm-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
}

.bbmm-modal-overlay.bbmm-modal-visible .bbmm-modal {
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   CLOSE BUTTON
   ========================================================================== */

.bbmm-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbmm-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* ==========================================================================
   MODAL CONTENT
   ========================================================================== */

.bbmm-modal-content {
    padding: 32px;
}

.bbmm-modal-title {
    font-size: 42px !important;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-right: 32px;
    line-height: 1.3;
}

.bbmm-modal-body {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 24px;
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */

.bbmm-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.bbmm-modal-btn {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.bbmm-modal-btn-primary {
    background: #224976;
    color: #fff;
    width: 100%;
}

.bbmm-modal-btn-primary:hover {
    background: #16375b;
}

.bbmm-modal-btn-secondary {
    background: transparent;
    color: #888;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bbmm-modal-btn-secondary:hover {
    background: transparent;
    color: #333;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
    .bbmm-modal-content {
        padding: 24px;
    }
    
    .bbmm-modal-title {
        font-size: 20px;
    }
    
    .bbmm-modal-body {
        font-size: 15px;
    }
    
    .bbmm-modal-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
