:root {
    --primary: #111;
    --secondary: #fd0;
}	

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {    
    font-family: sans-serif;
    background-color: var(--secondary);
}

.select-country-box {
    position: relative;
}

.select-country-box input {
    width: 100%;
}

.select-country-box input:focus {
    border: none;
}

.selected-country-option {
    overflow: hidden;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-country-option div {
    position: relative;
    width: 20rem;
    /*padding: 0 2.8rem 0 .5rem;
    text-align: center;*/
    cursor: pointer;
}

.selected-country-option div::after{
    position: absolute;
    content: "";
    right: .8rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    
    width: .8rem;
    height: .8rem;
    border-right: .12rem solid var(--primary);
    border-bottom: .12rem solid var(--primary);

    transition: .2s;
}

.selected-country-option div.active::after{
    transform: translateY(-50%) rotate(225deg);
}

.selected-country-option svg {
	margin-right: 4px;
}

.select-country-box .country-options {
    position: absolute;
    top: 4rem;
    
    width: 100%;
    background-color: #af9b11fa;
    border-radius: .5rem;

    display: none;
	z-index: 99;
}

.select-country-box .country-options.active {
    display: block;
}

.select-country-box .country-options::before {
    position: absolute;
    content: "";
    left: 1rem;
    top: -1.2rem;

    width: 0;
    height: 0;
    border: .6rem solid transparent;
    border-bottom-color: var(--primary);
}

.selected-country-option .country {
	margin-right: 4px;
}

input.search-country-box {
    background-color: var(--primary);
    color: #fff;
    border-radius: .5rem .5rem 0 0;
    padding: 1.4rem 1rem;
}

.select-country-box ol {
    list-style: none;
    max-height: 23rem;
    overflow: overlay;
}

.select-country-box ol::-webkit-scrollbar {
    width: 0.6rem;
}

.select-country-box ol::-webkit-scrollbar-thumb {
    width: 0.4rem;
    height: 3rem;
    background-color: #ccc;
    border-radius: .4rem;
}

.select-country-box ol li {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.select-country-box ol li.hide {
    display: none;
}

.select-country-box ol li:not(:last-child) {
    border-bottom: .1rem solid #eee;
}

.select-country-box ol li:hover {
    background-color: lightcyan;
}

.select-country-box ol li .country-name {
    margin-left: .4rem;
}