﻿.phone-input-wrapper {
    position: relative;
    width: 100%;
    display: flex !important;
    align-items: center;
    background: #fff;
    border: 1px solid #d9d9d9;
    overflow: visible;
    min-height: 56px;
}

.country-selector {
    width: 110px;
    min-width: 110px;
    height: 56px;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-right: 1px solid #ececec;
    cursor: pointer;
    padding: 0 10px;
    flex-shrink: 0;
}

    .country-selector:focus {
        outline: none;
    }

.country-flag {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.country-code {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1;
    display: flex;
    align-items: center;
    min-width: 36px;
}

.country-selector svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

.phone-input {
    flex: 1;
    width: 100% !important;
    height: 56px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 16px !important;
    font-size: 15px;
}

    .phone-input:focus {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    z-index: 99999 !important;
    display: none;
}

    .country-dropdown.active {
        display: block !important;
    }

.phone-input-wrapper {
    position: relative;
    overflow: visible !important;
}

.country-selector {
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
}

.country-search-input {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 14px;
    outline: none;
}

.country-list {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.country-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    transition: .2s;
}

    .country-item:hover {
        background: #f8f8f8;
    }

.country-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-item-flag {
    font-size: 18px;
}

.country-item-name {
    font-size: 14px;
    color: #111;
}

.country-item-code {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}
