/**
 * Mana Coming-Soon Popup
 *
 * Informational modal shown when a visitor selects a coming-soon location
 * (e.g. Pasadena / The Reserve before July 1). Sits above the location gate
 * modal, which may be open behind it.
 *
 * @package Mana_Elementor_Widgets
 * @since 1.9.9
 */

.mana-cs-popup {
    position: fixed;
    inset: 0;
    z-index: 1000000; /* above the location gate / header modal */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mana-cs-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mana-cs-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 79, 67, 0.72); /* brand green tint */
    cursor: pointer;
}

.mana-cs-popup-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
    outline: none;
}

.mana-cs-popup.active .mana-cs-popup-dialog {
    transform: translateY(0) scale(1);
}

.mana-cs-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #272626;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mana-cs-popup-close:hover,
.mana-cs-popup-close:focus-visible {
    background: #0d4f43;
    color: #ffffff;
    outline: none;
}

.mana-cs-popup-media {
    line-height: 0;
}

.mana-cs-popup-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.mana-cs-popup-body {
    padding: 28px 32px 32px;
    text-align: center;
}

.mana-cs-popup-logo {
    margin-bottom: 16px;
}

.mana-cs-popup-logo-img {
    display: inline-block;
    max-height: 52px;
    width: auto;
}

.mana-cs-popup-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d4f43;
}

.mana-cs-popup-heading {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
    color: #272626;
}

.mana-cs-popup-message {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.5;
    color: #4a4a4a;
}

.mana-cs-popup-meta {
    margin: 0 0 22px;
}

.mana-cs-popup-address,
.mana-cs-popup-hours {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b6b;
}

.mana-cs-popup-hours {
    margin-top: 4px;
}

.mana-cs-popup-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #0d4f43;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mana-cs-popup-cta:hover,
.mana-cs-popup-cta:focus-visible {
    background: #b2baa6;
    color: #0d4f43;
    outline: none;
}

/* Prevent background scroll while the popup is open */
body.mana-cs-popup-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 600px) {
    .mana-cs-popup {
        padding: 0;
        align-items: flex-end;
    }

    .mana-cs-popup-dialog {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .mana-cs-popup-image {
        max-height: 200px;
        border-radius: 0;
    }

    .mana-cs-popup-body {
        padding: 24px 22px 28px;
    }

    .mana-cs-popup-heading {
        font-size: 24px;
    }
}
