/* ================= POPUP OVERLAY ================= */

.country-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: block;
    visibility: hidden;
    pointer-events: none;
}

.country-popup.is-open {
    visibility: visible;
    pointer-events: auto;
}

.country-popup__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity .25s ease;
}

.country-popup.is-open .country-popup__overlay {
    opacity: 1;
}

/* ================= POPUP BOX ================= */

.country-popup__dialog {
    position: absolute;
    width: 624px;
    height: 476px;
    background: #fff;
    border-radius: 8px;

    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 16px));
    opacity: 0;

    padding: 30px 40px;
    text-align: center;
    transition: opacity .25s ease, transform .25s ease;
    will-change: opacity, transform;
}

.country-popup.is-open .country-popup__dialog {
    transform: translate(-50%, -50%);
    opacity: 1;
}

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

.country-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;

    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

.country-popup__title {
    margin: 0;
}

.country-popup__text {
    margin: 20px 0 0 0 !important;
}

.country-popup__field {
    margin: 25px 0 0 0 !important;
}

.country-popup__actions {
    margin: 25px 0 0 0 !important;
}

.country-popup__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #392819;
    margin: 0 0 10px 0 !important;
}

/* ================= SELECT ================= */

.country-popup__select {
    width: 416px;
    height: 45px;

    border: 1px solid #DEDEDE;
    border-radius: 4px;

    padding: 0 10px;

    font-size: 12px;
    font-weight: 500;
    color: #392819;

    appearance: none;
}

/* PRIMARY */
.country-popup__btn {
    width: 100%;
    height: 44px;

    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* перша кнопка */
.country-popup__actions .country-popup__btn:not(.country-popup__btn--ghost) {
    background: #392819;
    color: #fff;
    border: none;
}

/* друга кнопка */
.country-popup__actions .country-popup__btn--ghost {
    margin-top: 10px;
    background: #fff;
    color: #392819;
    border: 1px solid #392819;
}

.country-popup__body {
    display: block;
    gap: 0 !important;
}

.country-popup__body > * {
    margin-top: 0;
    margin-bottom: 0;
}
.country-popup,
.country-popup__dialog,
.country-popup__body,
.country-popup__field,
.country-popup__actions {
    gap: 0 !important;
}

@media (max-width: 768px) {

    .country-popup__dialog {
        width: calc(100% - 30px);
        height: auto;

        padding: 25px 20px;
    }

    .country-popup__title {
        font-size: 14px;
    }

    .country-popup__text {
        font-size: 12px;
        line-height: 1.5;
    }

    .country-popup__field {
        margin-top: 20px !important;
    }

    .country-popup__label {
        font-size: 12px;
    }

    .country-popup__select {
        width: 100%;
        height: 45px;
    }

    .country-popup__btn--primary,
    .country-popup__btn--secondary {
        width: 100%;
    }

}