﻿.country-select-component {
    position: relative;
    width: 100%;
}

.country-select-box {
    cursor: pointer;
    background: #EBF1F9;
    min-height: 64.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: 17px;
}

.country-select-arrow {
    transition: transform 0.2s ease;
}

.country-select-component.open .country-select-arrow {
    transform: rotate(180deg);
}

.country-options {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    background: rgb(255 255 255);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
    z-index: 9999;
}

.country-select-component.open .country-options {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 12px;
    transition: background-color 0.15s ease;
}

    .country-option:hover,
    .country-option.active {
        background-color: #dce6f5;
    }

    .country-option.selected {
        background-color: #e8eef8;
    }

.country-search {
    position: sticky;
    top: 0;
    padding: 8px;
    background: rgb(255 255 255);
    z-index: 10;
}

.country-search-input {
    width: 100%;
    height: 40px;
    border: 1px solid #ebf1f9;
    border-radius: 8px;
    padding: 0 12px;
    background:rgb(235 241 249);
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    direction: rtl;
}

    .country-search-input:focus {
        border-color: #0e1f65;
    }

.selected-country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.country-flag {
    width: 28px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.no-country-result {
    display: none;
    padding: 12px;
    text-align: center;
    color: #888;
    font-size: 14px;
}


.captcha-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.captcha-image-wrapper {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.captcha-image {
    height: 55px;
    max-width: 100%;
    object-fit: contain;
}

.captcha-input {
    width: 100%;
    height: 45px;
    box-sizing: border-box;
}

.disableBtn {
    background: #EBF1F9 !important;
    color: var(--clor-site) !important;
    cursor: default !important;
}