/*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author    FMM Modules
* @copyright FMM Modules
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
* @package   ageverifyonentry
*/

#fmm-age-verify-popup.in {
    display: flex !important;
    align-items: center;
    min-height: 100vh;
}

.fmm-popup-logo,
.fmm-popup-heading,
.fmm-popup-desc,
.fmm-submit-btn,
.fmm-date-verification {
    text-align: center;
}

.fmm-popup-logo img.fmm-custom-logo {
    width: 70px;
    height: 70px;
}


/* ===========================================================
   changes for figma style to match the design
   =========================================================== */

/* --- overlay --------------------------------------------- */
#fmm-age-verify-popup.show~.modal-backdrop,
#fmm-age-verify-popup.in~.modal-backdrop {
    background-color: #444 !important;
    opacity: .1 !important;
}


/* --- dialog positioning ---------------------------------- */
#fmm-age-verify-popup.show {
    display: block !important;
}

#fmm-age-verify-popup .modal-dialog {
    max-width: 672px;
    min-height: calc(100% - 3.5rem);
    margin: 1.75rem auto;
    display: flex;
    align-items: center;
}

/* --- box ------------------------------------------------- */
#fmm-age-verify-popup .modal-content {
    width: 100%;
    background-color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
}

#fmm-age-verify-popup .modal-body {
    padding: 24px;
}

/* --- title ----------------------------------------------- */
#fmm-age-verify-popup .fmm-popup-heading {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: #000 !important;
    text-align: center;
}

/* --- description ----------------------------------------- */
#fmm-age-verify-popup .fmm-popup-desc {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 24px;
    color: #222 !important;
    text-align: center;
}

/* --- button row ------------------------------------------ */
#fmm-age-verify-popup .fmm-submit-btn {
    display: flex;
    gap: 16px;
}

#fmm-age-verify-popup .fmm-submit-btn .btn {
    flex: 1 1 0;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-transform: none;
    text-decoration: none;
    border-radius: 4px !important;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

/* Akceptuję — solid, darkens on hover */
#fmm-age-verify-popup .fmm-confirm-btn.btn-primary {
    background-color: #447e9a !important;
    border: 1px solid #447e9a !important;
    color: #fff !important;
}

#fmm-age-verify-popup .fmm-confirm-btn.btn-primary:hover,
#fmm-age-verify-popup .fmm-confirm-btn.btn-primary:focus,
#fmm-age-verify-popup .fmm-confirm-btn.btn-primary:active {
    background-color: #2c5c73 !important;
    border-color: #2c5c73 !important;
    color: #fff !important;
    box-shadow: none;
}

/* Odrzucam — outline, fills on hover */
#fmm-age-verify-popup .fmm-decline-btn.btn-primary {
    background-color: #fff !important;
    border: 1px solid #447e9a !important;
    color: #447e9a !important;
    font-weight: 600;
}

#fmm-age-verify-popup .fmm-decline-btn.btn-primary:hover,
#fmm-age-verify-popup .fmm-decline-btn.btn-primary:focus {
    background-color: #447e9a !important;
    border-color: #447e9a !important;
    color: #fff !important;
    text-decoration: none;
}

/* --- mobile ---------------------------------------------- */
@media (max-width: 767px) {
    #fmm-age-verify-popup .modal-dialog {
        max-width: none;
        margin: 20px;
        min-height: calc(100% - 40px);
    }

    #fmm-age-verify-popup .fmm-submit-btn .btn {
        font-size: 15px;
    }
}