.country-picker {
    position: relative;
    width: 100%;
    max-width: 100%;
}

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

.country-picker-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    border: 1px solid var(--admin-border, var(--color-border, #d1d5db));
    border-radius: 8px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 6 6 10.5 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px 8px;
    color: inherit;
    font: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
}

.admin-body .country-picker-btn,
.client-body .country-picker-btn {
    display: flex;
    width: 100%;
    background-color: #fff;
}

.country-picker-search,
.admin-body .country-picker-search,
.form-stack .country-picker-search {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--admin-border, var(--color-border, #e2e8f0));
    border-radius: 0;
    font: inherit;
    box-shadow: none;
}

.country-picker-search:focus,
.admin-body .country-picker-search:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.country-picker-btn:focus {
    outline: none;
    border-color: var(--admin-primary, var(--color-primary, #FC5D07));
    box-shadow: 0 0 0 3px rgba(8, 69, 253, 0.16);
}

.country-picker-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.country-picker-flag {
    width: 20px;
    height: 15px;
    flex: 0 0 20px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    background: #e2e8f0;
}

.country-picker-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-picker-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 16rem;
    max-height: 18rem;
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--admin-border, var(--color-border, #d1d5db));
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.country-picker.is-open .country-picker-panel {
    display: flex;
}

.country-picker.is-dial .country-picker-panel {
    min-width: 18rem;
}

.country-picker-list {
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    overflow: auto;
    max-height: 14.5rem;
}

.country-picker-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.country-picker-option[hidden] {
    display: none !important;
}

.country-picker-option:hover,
.country-picker-option.is-selected {
    background: #f8fafc;
}

.country-picker-option.is-selected {
    font-weight: 600;
}

.phone-input .country-picker {
    flex: 0 0 9.25rem;
    width: 9.25rem;
    max-width: 44%;
}

.phone-input .country-picker.is-dial .country-picker-label {
    font-variant-numeric: tabular-nums;
}
