:root {
    --primary: #111;
    --secondary: #fd0;
}	
.select-box {
    position: relative;
    width: 5rem;
    margin-right:0.4rem ;
}
.select-box input {
    width: 100%;
    padding: 0rem .6rem;
    font-size: 1.0rem;
    border: .1rem solid white;
    outline: none;
}
input[type="tel"] {
    border-radius: .5rem  .5rem .5rem .5rem ;
	
}
.select-box input:focus {
    border: .1rem solid var(--primary);
}
.selected-option {
    border-radius: .5rem;
    overflow: hidden;
    height:2.5rem;
    width:240px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:0rem;
    
}

.selected-option div{
    position: relative;
    width: 0.5rem;
    padding: 0 1.5rem 0 .5rem;
    text-align: center;
    cursor: pointer;
     margin:0rem;
	 
}

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

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

.select-box .options {
    position: absolute;
    top: 3rem;
    margin-left:-0.0rem;
    width: 100%;
    background-color: white;
    border-radius: .5rem;
    text-align:left;
    display: none;
}

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

.select-box .options::before {
    position: absolute;
    content: "";
    left: 0.9rem;
    top: -1.2rem;

    width: 0;
    height: 0;
    border: .6rem solid white;
    border-bottom-color: var(--primary);
}

input.search-box {
    background-color: white;
    color: black;
    border-radius: .5rem .5rem 0 0;
    padding: 1.0rem 0.2rem;
}

.select-box ol {
    list-style: none;
    max-height: 23rem;
    overflow: overlay;
    padding:0rem;
	font-size: 0.9em;
}

.select-box ol::-webkit-scrollbar {
    width: 0.6rem;
    
     padding:1rem;
}

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

.country-item.pinned {
    position: sticky; /* Makes the element sticky */
    top: 0; /* Sticks to the top of the container when scrolling reaches this point */
    background-color: #e0e0e0; /* Different background for emphasis */
    font-weight: bold;
    z-index: 10; /* Ensures pinned items appear above regular items */
    border-bottom: 2px solid #aaa;
}

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

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

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

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

.select-box ol li .country-name {
    margin-left: 0.9rem;
	margin-right: 1.9rem;
}