/* ============================================================
   Select Enhancer for Elementor Forms – Select2 Theme
   ============================================================ */

/* ----- Container ----- */
.selesufo-select2.select2-container {
    width: 100% !important;
    font-family: inherit;
}

/* ================================================================
   Single selection
   ================================================================ */
.selesufo-select2.select2-container .select2-selection--single {
    height: auto;
    min-height: 48px;
    padding: 10px 40px 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.selesufo-select2.select2-container--open .select2-selection--single,
.selesufo-select2.select2-container--focus .select2-selection--single {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

.selesufo-select2.select2-container .select2-selection--single .select2-selection__rendered {
    color: #374151;
    line-height: normal;
    padding: 0;
    font-size: 14px;
}

.selesufo-select2.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}

/* Dropdown arrow */
.selesufo-select2.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 12px;
    width: 20px;
}

.selesufo-select2.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca3af transparent transparent transparent;
    border-width: 5px 5px 0 5px;
    margin-top: -2px;
    transition: border-color 0.2s ease;
}

.selesufo-select2.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #667eea transparent;
    border-width: 0 5px 5px 5px;
}

/* Clear (×) button — single select */
.selesufo-select2.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #9ca3af;
    font-size: 18px;
    font-weight: 400;
    margin-right: 8px;
    line-height: 1;
    transition: color 0.15s ease;
}

.selesufo-select2.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #ef4444;
    background: transparent;
}

/* ================================================================
   Multiple selection
   ================================================================ */
.selesufo-select2.select2-container .select2-selection--multiple {
    min-height: 48px;
    padding: 5px 8px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.selesufo-select2.select2-container--open .select2-selection--multiple,
.selesufo-select2.select2-container--focus .select2-selection--multiple {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

/* Selected tag pills */
.selesufo-select2.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #667eea;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px 3px 12px;
    margin: 3px 4px 3px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.5;
    transition: background 0.15s ease;
}

.selesufo-select2.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    background: #5a67d8;
}

/* Remove (×) button on tag */
.selesufo-select2.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    transition: color 0.15s ease;
    order: 1;
}

.selesufo-select2.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
    background: transparent;
}

/* Inline search field inside multi-select box */
.selesufo-select2.select2-container--default .select2-selection--multiple .select2-search__field {
    font-size: 14px;
    color: #374151;
    margin-top: 3px;
    min-width: 80px;
}

.selesufo-select2.select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #9ca3af;
}

/* ================================================================
   Dropdown panel
   ================================================================ */
.selesufo-select2-dropdown {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 10px 30px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    animation: selesufoFadeIn 0.15s ease;
}

.selesufo-select2-dropdown.select2-dropdown--below {
    margin-top: 6px;
    border-top: 1px solid #e5e7eb;
}

.selesufo-select2-dropdown.select2-dropdown--above {
    margin-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

@keyframes selesufoFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Search box inside dropdown */
.selesufo-select2-dropdown .select2-search--dropdown {
    padding: 10px 10px 6px;
    border-bottom: 1px solid #f3f4f6;
}

.selesufo-select2-dropdown .select2-search--dropdown .select2-search__field {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
    color: #374151;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.selesufo-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.10);
    background: #fff;
}

/* ================================================================
   Options list
   ================================================================ */
.selesufo-select2-dropdown .select2-results__options {
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
}

/* Thin custom scrollbar */
.selesufo-select2-dropdown .select2-results__options::-webkit-scrollbar {
    width: 5px;
}
.selesufo-select2-dropdown .select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}
.selesufo-select2-dropdown .select2-results__options::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
.selesufo-select2-dropdown .select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Individual option */
.selesufo-select2-dropdown .select2-results__option {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.12s ease, color 0.12s ease;
    margin-bottom: 1px;
}

/* Already-selected option */
.selesufo-select2-dropdown .select2-results__option[aria-selected=true] {
    background: #eff2ff;
    color: #4f46e5;
    font-weight: 500;
}

/* Hover / keyboard-focused option */
.selesufo-select2-dropdown .select2-results__option--highlighted[aria-selected],
.selesufo-select2-dropdown .select2-results__option:hover {
    background: #f5f7ff;
    color: #667eea;
}

/* Highlighted AND already selected */
.selesufo-select2-dropdown .select2-results__option--highlighted[aria-selected=true] {
    background: #e8ebff;
    color: #4f46e5;
}

/* Disabled option */
.selesufo-select2-dropdown .select2-results__option[aria-disabled=true] {
    color: #c0c4cc;
    cursor: not-allowed;
    background: transparent;
}

/* "No results" / info messages */
.selesufo-select2-dropdown .select2-results__message,
.selesufo-select2-dropdown .select2-results__option--message {
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
    padding: 20px 12px;
    cursor: default;
}
