/* Современный выпадающий список с поиском (Custom Select) */

.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8f9fa;
    border: 1px solid #e6e8eb;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    color: #818181;
}

.custom-select-wrapper.open .custom-select-trigger {
    background: white;
    border-color: var(--4win-primary);
    box-shadow: 0 0 0 4px rgba(250, 100, 0, 0.05);
}

.custom-select-trigger::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23717b8b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    transition: transform 0.2s;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid #e6e8eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    overflow: hidden;
    display: none;
    animation: dropIn 0.2s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.custom-select-wrapper.open .custom-select-dropdown {
    display: block;
}

.custom-select-search {
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
    background: #fcfdfe;
}

.custom-select-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.custom-select-search input:focus {
    border-color: var(--4win-primary);
}

.custom-select-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
}

.custom-select-option {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-select-option:hover {
    background: #f8f9fa;
    color: var(--4win-primary);
}

.custom-select-option.selected {
    background: rgba(250, 100, 0, 0.05);
    color: var(--4win-primary);
    font-weight: 700;
}

.custom-select-option i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    font-style: normal;
    color: #717b8b;
}

.custom-select-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Стилизация для скроллбара */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #e6e8eb;
    border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}