.pc-country-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}

.pc-country-picker__input-wrap {
    position: relative;
}

.pc-country-picker__input {
    padding-right: 2.5rem;
}

.pc-country-picker__input-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.pc-country-picker__input:focus-visible {
    border-color: #0f766e;
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.18);
    outline: 0;
}

.pc-country-picker__list {
    position: absolute;
    z-index: 1300;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    max-height: min(18rem, 45vh);
    margin: 0;
    padding: 0.35rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    list-style: none;
}

.pc-country-picker__list[hidden] {
    display: none;
}

.pc-country-picker__option,
.pc-country-picker__empty {
    padding: 0.55rem 0.7rem;
    border-radius: 0.35rem;
    color: #1f2937;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pc-country-picker__option {
    cursor: pointer;
}

.pc-country-picker__option.is-active,
.pc-country-picker__option:hover {
    color: #0f3d3a;
    background: #e6f5f3;
}

.pc-country-picker__option[aria-selected="true"] {
    font-weight: 700;
}

.pc-country-picker__empty {
    color: #64748b;
}

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

@media (max-width: 420px) {
    .pc-country-picker__list {
        max-height: min(16rem, 42vh);
    }
}
