.tka-phone-input__group {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.tka-phone-input__country-shell {
    flex: 0 0 12.5rem;
    min-width: 12.5rem;
    max-width: 14rem;
    position: relative;
}

.tka-phone-input__country-shell[data-tka-select2-active] > select.tka-phone-input__country {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.tka-phone-input__country-shell .select2-container {
    width: 100% !important;
}

.tka-phone-input__country-shell .select2-selection--single {
    min-height: calc(1.5em + 1.65rem + 2px);
    display: flex;
    align-items: center;
    border-color: var(--bs-gray-300);
    background-color: var(--bs-gray-100);
}

.tka-phone-input__country-shell .select2-selection__rendered {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.85rem !important;
    padding-right: 2rem !important;
    width: 100%;
}

.tka-phone-input__country-shell .select2-selection__arrow {
    height: 100% !important;
}

.tka-phone-input__national {
    flex: 1 1 auto;
    min-width: 0;
}

.tka-phone-input__flag {
    width: 1.35rem;
    height: 1rem;
    object-fit: cover;
    border-radius: 0.15rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.tka-phone-input__selection {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.tka-phone-input__selection-code {
    font-weight: 600;
    color: var(--bs-gray-900);
    white-space: nowrap;
}

.tka-phone-input__option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tka-phone-input__option-name {
    flex: 1 1 auto;
    min-width: 0;
}

.tka-phone-input__option-code {
    color: var(--bs-gray-600);
    white-space: nowrap;
    font-size: 0.875rem;
}

.select2-container--open .tka-phone-input__option {
    padding: 0.15rem 0;
}

[data-bs-theme="dark"] .tka-phone-input__country-shell .select2-selection--single {
    background-color: var(--bs-gray-100);
    border-color: var(--bs-gray-300);
}

@media (max-width: 575.98px) {
    .tka-phone-input__group {
        flex-direction: column;
    }

    .tka-phone-input__country-shell {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }
}
