.button-container {
    position: relative;
    display: block;
    width: 100%;
}

.floating-selector {
    display: none;
    position: absolute;
    top: 107%;
    left: 0;
    width: 100%;
    min-width: 260px;
    max-width: 350px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    border-top: none;
    z-index: 1000;
    animation: fadeInScale 0.2s ease-out;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.floating-selector.right-align {
    left: auto;
    right: 0;
}

.floating-selector.center-align {
    left: 50%;
    transform: translateX(-50%);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }
}

.floating-selector.hiding {
    animation: fadeOutScale 0.15s ease-in forwards;
}

.floating-search {
    position: relative;
    padding-top: 10px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 8px;
    background: #ffffff;
}


.floating-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: #F6F5F4;
    border: 2px solid transparent;
    border-radius: 20px;
    color: #000000;
    caret-color: #21C063;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.floating-search-input:hover {
    border: 2px solid #F6F5F4;
}

.floating-search-input:focus {
    border: 2px solid #21C063;
}

.search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    pointer-events: none;
}




#floatingCountryList.floating-country-list {
    width: 95%;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    margin: 0 auto;

    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

#floatingCountryList::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

#floatingCountryList::-webkit-scrollbar-track {
    background: transparent !important;
    margin: 0;
    padding: 0;
    border: none;
}

#floatingCountryList::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#floatingCountryList::-webkit-scrollbar-thumb:hover {
    background: #333333 !important;
}



.floating-country-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.floating-country-item:hover {
    border-radius: 8px;
    background: rgba(246, 245, 244, 0.8);
}

.floating-country-item.active {
    border-radius: 8px;
    background: rgba(246, 245, 244, 0.8);
}

.floating-country-item.selected {
    border-radius: 8px;
    background: rgba(246, 245, 244, 0.8);
}

.floating-country-item .flag-icon {
    width: 24px;
    margin-right: 18px;
}

.floating-country-info {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.floating-country-name {
    font-size: 16px;
    color: #000;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-local-name {
    font-size: 14px;
    color: #6C6C6C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-phone-code {
    color: #6C6C6C;
    font-size: 14px;
    flex-shrink: 0;
    align-self: center;
}

.selected-country {
    margin-top: 20px;
    padding: 16px;
    background: rgba(246, 245, 244, 0.8);
    border-radius: 8px;
    border: 1px solid #4a5568;
}

.selected-country-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-country-info {
    flex: 1;
}

.selected-name {
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 4px;
}

.selected-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #a0aec0;
}

.selected-phone-code {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.hint {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
    padding: 10px;
    background: rgba(246, 245, 244, 0.8);
    border-radius: 6px;
    border-left: 3px solid #667eea;
    line-height: 1.5;
}

.hint strong {
    color: #bbb;
}

.feature-list {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
    padding-left: 15px;
}

.feature-list li {
    margin: 4px 0;
}

.floating-selector::before {
    content: none;
}

.floating-selector.viewport-adjust {
    left: 0;
    right: auto;
    max-width: calc(100vw - 40px);
}


.floating-checkmark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.floating-checkmark svg {
    width: 24px;
    height: 24px;
}

.selectable-text {
    min-width: 0;
    max-width: 100%;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.25rem;
    word-wrap: break-word;
    display: block;
    font-optical-sizing: auto;
    white-space: pre-line;
    font-size: .875rem;
    color: #000;
    word-break: break-word;
    letter-spacing: .01rem;
}

.country-selector-wrapper {
    min-width: 0;
    min-height: 120px;
    width: 320px;
    flex-shrink: 1;
    flex-wrap: nowrap;
    flex-direction: column;
    flex-basis: auto;
    display: flex;
    align-items: stretch;
    align-self: auto;
    justify-content: flex-start;
    order: 0;
    flex-grow: 0;
    justify-self: auto;
}

.country-button-wrapper {
    min-width: 0;
    min-height: 56px;
    flex-shrink: 1;
    flex-wrap: nowrap;
    flex-direction: column;
    flex-basis: auto;
    display: flex;
    align-items: stretch;
    align-self: auto;
    justify-content: flex-start;
    order: 0;
    flex-grow: 0;
    justify-self: auto;
}

.country-button-inner-wrapper {
    margin-bottom: 12px;
    min-width: 0;
    height: 52px;
    min-height: 52px !important;
    flex-shrink: 1;
    flex-wrap: nowrap;
    flex-basis: auto;
    display: flex;
    align-self: auto;
    order: 0;
    flex-grow: 0;
    justify-self: auto;
}

.xgs1cw4{
    min-height: 200px;
}