/* Home popup first-order discount — extracted from functions.php */

#ggp-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999999;
    background: rgba(0, 0, 0, 0.72);
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

#ggp-popup.ggp-is-visible {
    display: flex;
}

#ggp-popup * {
    box-sizing: border-box;
}

#ggp-popup .ggp-modal {
    position: relative;
    width: min(860px, 100%);
    max-height: calc(100vh - 36px);
    background: #fff7e6;
    border: 3px solid #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: none !important;
}

#ggp-popup .ggp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #000;
    color: #fff7e6;
    font-size: 30px;
    line-height: 34px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

#ggp-popup .ggp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

#ggp-popup .ggp-column-left {
    padding: 36px 32px 32px;
    background: #f8779a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#ggp-popup .ggp-column-left h3 {
    margin: 0 0 20px;
    font-size: clamp(27px, 3.6vw, 42px);
    line-height: 0.98;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: none !important;
    color: #fff7e6 !important;
}

#ggp-popup .ggp-column-right {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
    background: #000;
}

#ggp-popup #imagenpoup {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    padding: 0 !important;
    margin: 0 !important;
    border: 0;
}

#ggp-popup .clasic-form-acm,
#ggp-popup .bee-page-container,
#ggp-popup .bee-row,
#ggp-popup .bee-row-content,
#ggp-popup .bee-col {
    width: 100%;
    max-width: 100%;
}

#ggp-popup .bee-text-content p {
    margin: 0 0 18px !important;
    color: #000;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 700;
    text-align: center;
}

#ggp-popup .bee-form-row {
    margin-bottom: 12px;
}

#ggp-popup input[type="email"] {
    width: 100%;
    height: 48px;
    border: 2px solid #000;
    border-radius: 10px;
    background: #fff;
    color: #000;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
}

#ggp-popup input[type="email"]::placeholder {
    color: #555;
}

#ggp-popup .bee-button-container {
    width: 100%;
}

#ggp-popup button[type="submit"] {
    width: 100%;
    min-height: 50px;
    border: 2px solid #000;
    border-radius: 10px;
    background: #000;
    color: #fff7e6;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none !important;
}

#ggp-popup button[type="submit"]:hover {
    transform: translateY(-1px);
}

body.ggp-popup-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    #ggp-popup {
        padding: 12px;
        align-items: center;
    }

    #ggp-popup .ggp-modal {
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 14px;
        box-shadow: none !important;
    }

    #ggp-popup .ggp-content {
        grid-template-columns: 1fr;
    }

    #ggp-popup .ggp-column-left {
        padding: 34px 20px 24px;
        order: 2;
        background: #f8779a;
    }

    #ggp-popup .ggp-column-right {
        display: none !important;
    }

    #ggp-popup #imagenpoup {
        min-height: auto;
        height: auto;
        object-fit: contain;
        padding: 0 !important;
        margin: 0 !important;
    }

    #ggp-popup .ggp-column-left h3 {
        font-size: 30px;
        text-shadow: none !important;
    }

    #ggp-popup .bee-text-content p {
        font-size: 16px !important;
    }
}
