/* Consistent space between the select value, chevron and trailing edge. */
select:not([multiple]):not([size]) {
    appearance: none !important;
    padding-right: 2.75rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: right 1rem center !important;
    background-size: 16px !important;
    background-repeat: no-repeat !important;
}
select.phone-country-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}
.phone-country-control {
    display: inline-flex;
    width: 125px;
    max-width: 100%;
    flex: 0 0 125px;
    align-self: stretch;
    min-width: 0;
}
.phone-country-control .phone-country-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d5dbe1;
    border-radius: 8px;
    background: #fff;
    color: #17252b;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.phone-country-trigger svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-left: auto;
}
.phone-country-trigger:disabled { opacity: .55; cursor: default; }
.phone-country-flag { width: 22px; height: 16px; object-fit: contain; flex-shrink: 0; }
.phone-country-menu {
    position: fixed;
    z-index: 2147483000;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #d5dbe1;
    border-radius: 12px;
    background: #fff;
    color: #17252b;
    box-shadow: 0 12px 36px #12212c24;
    font: 14px/1.5 'DM Sans', system-ui, sans-serif;
}
.phone-country-menu[hidden] { display: none; }
.phone-country-menu input {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid #bac4ce;
    border-radius: 7px;
    font: inherit;
    background: white;
    color: #17252b;
}
.phone-country-list { overflow-y: auto; max-height: 210px; overscroll-behavior: contain; }
.phone-country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}
.phone-country-option[aria-selected=true], .phone-country-option:hover { background: #edf3f3; }
.phone-country-option span:last-child { margin-left: auto; color: #56656c; white-space: nowrap; }
.phone-country-empty { padding: 12px; margin: 0; }
.phone-country-trigger:focus-visible, .phone-country-menu input:focus-visible { outline: 2px solid #176b68; outline-offset: 2px; }
.demo-phone .phone-country-control { width: 100%; }
@media (max-width: 700px) {
    .phone-country-control { width: 112px; flex-basis: 112px; }
    .phone-country-control .phone-country-trigger { gap: 6px; padding: 10px; }
}

.input-group > .phone-country-control ~ input[type="tel"] {
    width: 1% !important;
    flex: 1 1 auto;
    min-width: 0;
}
