.phone-number-split {
    display: grid;
    grid-template-columns: minmax(105px, 0.32fr) minmax(0, 0.68fr);
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.phone-number-split .phone-number-input {
    min-width: 0;
    width: 100%;
}

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

.phone-country-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.phone-country-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 48px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    color: #263445;
    font-size: 0.94rem;
    padding: 0.75rem 0.6rem;
    cursor: pointer;
    text-align: start;
}

.phone-country-trigger-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.phone-country-trigger-arrow {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

.phone-country-picker.is-open {
    z-index: 1200;
}

.phone-country-picker.is-open .phone-country-trigger-arrow {
    transform: rotate(225deg) translate(-1px, -1px);
}

.phone-country-trigger:focus-visible,
.phone-country-picker.is-open .phone-country-trigger {
    border-color: #00a7a2;
    box-shadow: 0 0 0 0.2rem rgba(0, 167, 162, 0.16);
    outline: 0;
}

.phone-country-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    max-height: 390px;
    padding: 10px;
    border: 1px solid #b9d5d4;
    border-radius: 12px;
    background: #fff;
    color: #263445;
    box-shadow: 0 18px 44px rgba(8, 38, 48, 0.24);
    z-index: 1201;
}

.phone-country-menu[hidden] {
    display: none !important;
}

[dir="rtl"] .phone-country-menu {
    right: auto;
    left: 0;
}

.phone-country-search-wrap {
    position: relative;
    margin-bottom: 8px;
}

.phone-country-search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    font-size: 0.92rem;
    pointer-events: none;
}

[dir="rtl"] .phone-country-search-icon {
    left: auto;
    right: 13px;
}

.phone-country-search {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 12px 9px 40px !important;
    border: 1px solid #b8cdcf !important;
    border-radius: 9px !important;
    background: #f8fbfb !important;
    color: #1e2a36 !important;
    font-size: 0.94rem !important;
    outline: none;
}

[dir="rtl"] .phone-country-search {
    padding: 9px 40px 9px 12px !important;
}

.phone-country-search:focus {
    border-color: #00a7a2 !important;
    box-shadow: 0 0 0 3px rgba(0, 167, 162, 0.13) !important;
}

.phone-country-options {
    max-height: 310px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.phone-country-option {
    display: block;
    width: 100%;
    min-height: 39px;
    padding: 8px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #263445;
    font-size: 0.94rem;
    line-height: 1.35;
    text-align: start;
    cursor: pointer;
}

.phone-country-option[hidden],
.phone-country-divider[hidden] {
    display: none !important;
}

.phone-country-option:hover,
.phone-country-option:focus-visible {
    background: #e9f7f6;
    outline: 0;
}

.phone-country-option.is-selected {
    background: #00a7a2;
    color: #fff;
    font-weight: 700;
}

.phone-country-divider {
    height: 1px;
    margin: 7px 5px;
    background: #d4e0e1;
}

.phone-country-empty {
    margin: 8px 0 2px;
    padding: 10px;
    color: #64727a;
    text-align: center;
}

.phone-country-menu-open {
    overflow: visible !important;
}

.phone-number-split .form-control,
.phone-number-split .vehicle-input-wrap {
    height: 100%;
}

.phone-number-split--vehicle .phone-country-trigger,
.phone-number-split--vehicle .vehicle-input-wrap,
.phone-number-split--vehicle .vehicle-input-wrap input {
    height: 100%;
    min-height: 74px;
}

@media (max-width: 420px) {
    .phone-number-split {
        grid-template-columns: minmax(110px, 0.40fr) minmax(0, 0.60fr);
        gap: 8px;
    }

    .phone-country-trigger {
        font-size: 0.84rem;
        padding-left: 0.45rem;
        padding-right: 0.35rem;
    }

    .phone-country-menu {
        width: min(330px, calc(100vw - 24px));
    }
}
