:root {
    --phone-primary: #111;
    --phone-secondary: #fd0;
}	

.phone-dropdown {
    width: 100%;
}

.phone-dropdown .select-box {
    position: relative;
}

.phone-dropdown .select-box input {
    width: 100%;
    padding: 1rem .6rem;
    font-size: 1.1rem;
    border: .1rem solid transparent;
    outline: none;
    background: transparent !important;
}

.phone-dropdown input[type="tel"] {
    border-radius: 0 .5rem .5rem 0;
}

.phone-dropdown .select-box input:focus {
    border: .1rem solid var(--phone-primary);
}

.phone-dropdown .selected-option {
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-dropdown .selected-option div{
    position: relative;
    width: min-content;
    padding: 0 35px 0 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.phone-dropdown .selected-option div::after{
    position: absolute;
    content: "";
    right: .8rem;
    top: 32%;
    transform: translateY(-50%) rotate(45deg);
    width: .8rem;
    height: .8rem;
    border-right: .12rem solid var(--phone-primary);
    border-bottom: .12rem solid var(--phone-primary);
    transition: .2s;
}

.phone-dropdown .selected-option div.active::after{
    transform: translateY(-50%) rotate(225deg);
}

.phone-dropdown .select-box .options {
    position: absolute;
    top: 4rem;
    width: 100%;
    background-color: #fff;
    border-radius: .5rem;
    display: none;
}

.phone-dropdown .select-box .options.active {
    display: block;
}

.phone-dropdown .select-box .options::before {
    position: absolute;
    content: "";
    left: 1rem;
    top: -1.2rem;
    width: 0;
    height: 0;
    border: .6rem solid transparent;
    border-bottom-color: var(--phone-primary);
}

.phone-dropdown input.search-box {
    background-color: var(--phone-primary);
    color: #000;
    border-radius: .5rem .5rem 0 0;
    padding: 1.4rem 1rem;
}

.phone-dropdown .select-box ol {
    list-style: none;
    max-height: 23rem;
    overflow: overlay;
}

.phone-dropdown .select-box ol::-webkit-scrollbar {
    width: 0.6rem;
}

.phone-dropdown .select-box ol::-webkit-scrollbar-thumb {
    width: 0.4rem;
    height: 3rem;
    background-color: #ccc;
    border-radius: .4rem;
}

.phone-dropdown .select-box ol li {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.phone-dropdown .select-box ol li.hide {
    display: none;
}

.phone-dropdown .select-box ol li:not(:last-child) {
    border-bottom: .1rem solid #eee;
}

.phone-dropdown .select-box ol li:hover {
    background-color: lightcyan;
}

.phone-dropdown .select-box ol li .country-name {
    margin-left: .4rem;
}