.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    width: 360px;
    max-width: 95vw;

    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;

    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition: all .25s ease;

    z-index: 999;
}

.phone-field.is-open .country-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-dropdown::-webkit-scrollbar {
    width: 10px;
}

.country-dropdown::-webkit-scrollbar-track {
    background: #f3f5f8;
    border-radius: 999px;
}

.country-dropdown::-webkit-scrollbar-thumb {
    background: #c2cad6;
    border-radius: 999px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
    background: #97a3b5;
}

.country-list {
    display: flex;
    flex-direction: column;
}

.country-option {

    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;

    padding: 14px 18px;

    background: transparent;
    border: none;

    cursor: pointer;

    transition: .25s;
}

.country-option:hover {

    background: #f5f9fb;

}

.country-search {

    position: sticky;

    top: 0;

    background: #fff;

    padding: 14px;

    border-bottom: 1px solid #ececec;

    z-index: 2;

}

@media (max-width:768px) {

    .country-dropdown {

        width: 95vw;
        max-width: 360px;

        max-height: 320px;

    }

}

/*phone fee*/

.phone-field {
    position: relative;
}

@media (max-width: 768px) {

    .country-dropdown {

        left: 50%;
        transform: translateX(-50%) translateY(8px);

        width: min(360px, calc(100vw - 32px));

        max-height: 320px;

    }

    .phone-field.is-open .country-dropdown {

        transform: translateX(-50%) translateY(0);

    }

}

@media (max-width:768px) {

    .country-dropdown {

        left: 50%;
        transform: translateX(-50%) translateY(8px);

        width: calc(100vw - 24px);

        max-width: 380px;

    }

    .phone-field.is-open .country-dropdown {

        transform: translateX(-50%) translateY(0);

    }

}