.ch-country-select {
    position: relative;
    width: 100%;
}

.ch-country-select__control {
    position: relative;
    width: 100%;
}

.ch-country-select__icon {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .95rem;
    pointer-events: none;
    z-index: 2;
}

.ch-country-select--profile .ch-country-select__icon {
    display: none;
}

.ch-country-select.is-enhanced .ch-country-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ch-country-select:not(.is-enhanced) .ch-country-select__trigger,
.ch-country-select:not(.is-enhanced) .ch-country-select__panel {
    display: none !important;
}

.ch-country-select__trigger {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.ch-country-select--auth .ch-country-select__trigger.auth-input,
.ch-country-select--auth .ch-country-select__native.auth-input {
    padding-right: 2.1rem;
}

.ch-country-select--profile .ch-country-select__trigger.ud-input {
    min-height: 38px;
}

.ch-country-select__flag {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.ch-country-select__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-country-select__caret {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .8rem;
    pointer-events: none;
}

.ch-country-select__panel {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .65rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.ch-country-select__search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: .7rem .85rem;
    font-size: 16px;
    outline: none;
    color: #0f172a;
}

.ch-country-select__search:focus {
    background: #f8fafc;
}

.ch-country-select__list {
    list-style: none;
    margin: 0;
    padding: .25rem 0;
    max-height: 16.5rem;
    overflow-y: auto;
}

.ch-country-select__option {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .85rem;
    cursor: pointer;
    font-size: .9rem;
    color: #0f172a;
}

.ch-country-select__option.is-active,
.ch-country-select__option:hover {
    background: #f1f5f9;
}

.ch-country-select__option.is-selected {
    font-weight: 700;
}

.ch-country-select__empty {
    padding: .7rem .85rem;
    color: #64748b;
    font-size: .85rem;
}

[x-cloak] {
    display: none !important;
}
