:root {
    --arrow: white;
    --cl_country_phone_primary: #111;
}	

.cl_country_phone_select-box * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: black;
}

.cl_country_phone_select-box {
    position: relative;
	width: 100%;
	margin-top: 5px;
}

.cl_country_phone_select-box input {
	width: 100%;
	padding: 1rem .6rem;
	font-size: 16px;
	border: .1rem solid transparent;
	outline: none;
}

.cl_country_phone_telinput {
    border-radius: 0 .5rem .5rem 0;
}

.cl_country_phone_select-box input:focus {
    border: .1rem solid var(--cl_country_phone_primary);
}

.cl_country_phone_selected-option {
    background-color: #eee;
    border-radius: .5rem;
    overflow: hidden;

    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.cl_country_phone_selected-option div{
	position: relative;
	padding: 0;
	text-align: center;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	padding-left: 10px;
	padding-right: 40px;
}

.cl_country_phone_selected-option div::after{
	position: absolute;
	content: "";
	right: 15px;
	top: 50%;
	transform: translateY(calc(-50% - 2px)) rotate(45deg);
	width: 0.4rem;
	height: .4rem;
	border-right: .17rem solid var(--cl_country_phone_primary);
	border-bottom: .17rem solid var(--cl_country_phone_primary);
	transition: .2s;
}

.cl_country_phone_selected-option div.active::after{
    transform: translateY(calc(-50% - -2px)) rotate(225deg);
}

.cl_country_phone_select-box .cl_country_phone_options {
    position: absolute;
    top: 4rem;
    
    width: 100%;
    background-color: #fff;
    border-radius: .5rem;

    display: none;
}

.cl_country_phone_select-box .cl_country_phone_options.active {
	display: block;
	top: 50px;
}

.cl_country_phone_select-box .cl_country_phone_options::before {
    position: absolute;
    content: "";
    left: 1rem;
    top: -1.2rem;

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

.cl_country_phone_search-box {
    background-color: var(--cl_country_phone_primary);
    color: #fff;
    border-radius: .5rem .5rem 0 0 !important;
    padding: 1.4rem 1rem;
}

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

.cl_country_phone_select-box ol::-webkit-scrollbar {
    width: 0.6rem;
}

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

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

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

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

.cl_country_phone_select-box ol li:not(:last-child):hover {
	background-color: lightcyan;
}
.cl_country_phone_select-box ol li:hover {
    background-color: lightcyan;
    border-radius: 0 0 .5rem .5rem;
}

.cl_country_phone_select-box ol li .country-name {
    margin-left: .4rem;
}
.cl_country_phone_flag_and_country {
    display: flex;
	gap: 5px;
	align-items: center;
}