:root {
    /* Базовые цвета (можно подвязать к уже существующим) */
    --gc-select-bg: rgba(10, 12, 28, 0.95);
    --gc-select-border: rgba(89, 96, 150, 0.7);
    --gc-select-border-focus: var(--accent);
    --gc-select-shadow-focus: rgba(244, 197, 82, 0.7);

    --gc-select-text: var(--text-main);
    --gc-select-text-muted: var(--text-muted);

    /* Стрелка */
    --gc-select-arrow-color: #ffffff;

    /* Размеры */
    --gc-select-height-single: 38px;
    --gc-select-radius-pill: 14px;
    --gc-select-radius-dropdown: 14px;
    --gc-select-radius-tag: 10px;

    --gc-select-padding-x-single: 12px;
    --gc-select-padding-right-single: 36px;

    --gc-select-multi-min-height: 38px;
    --gc-select-multi-padding-x: 10px;
    --gc-select-multi-padding-right: 36px;

    /* Теги (мультиселект) */
    --gc-select-tag-bg: rgba(244, 197, 82, 0.12);
    --gc-select-tag-border: rgba(244, 197, 82, 0.6);
    --gc-select-tag-font-size: 11px;
    --gc-select-tag-padding-y: 3px;
    --gc-select-tag-padding-x: 10px;

    /* Дропдаун */
    --gc-select-dropdown-bg: rgba(10, 12, 28, 0.98);
    --gc-select-dropdown-border: rgba(89, 96, 150, 0.9);
    --gc-select-dropdown-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);

    --gc-select-search-bg: rgba(10, 12, 28, 0.95);
    --gc-select-search-border: rgba(89, 96, 150, 0.7);
    --gc-select-search-padding-y: 6px;
    --gc-select-search-padding-x: 10px;
    --gc-select-search-font-size: 13px;

    /* Опции в списке */
    --gc-select-option-padding-y: 6px;
    --gc-select-option-padding-x: 10px;
    --gc-select-option-font-size: 13px;

    --gc-select-option-hover-bg: rgba(40, 46, 90, 0.9);
    --gc-select-option-selected-bg: rgba(244, 197, 82, 0.12);

    /* Скроллбар в дропдауне */
    --gc-select-scroll-width: 6px;
    --gc-select-scroll-thumb: rgba(89, 96, 150, 0.7);

    /* Дизейблд */
    --gc-select-bg-disabled:#181820;
    --gc-select-border-disabled: #3a3a45;
    --gc-select-text-disabled: #7a7a85;
}

/* Базовый контейнер темы */
.field .select2-container--goalCard {
    width: 100% !important;
    font-size: var(--gc-select-option-font-size);
}
.select2-container--goalCard .select2-selection--multiple,
.select2-container--goalCard .select2-selection--single{
    position: relative;
}
.select2-container--goalCard *:focus {
    outline: none;
}

/* === SINGLE SELECT === */

.select2-container--goalCard .select2-selection--single {
    background: var(--gc-select-bg);
    border-radius: var(--gc-select-radius-pill);
    border: 1px solid var(--gc-select-border);
    height: var(--gc-select-height-single);
    display: flex;
    align-items: center;
    padding: 0 var(--gc-select-padding-right-single) 0 var(--gc-select-padding-x-single);
    box-shadow: none;
    transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out;
}

.select2-container--goalCard .select2-selection--single .select2-selection__rendered {
    color: var(--gc-select-text);
    line-height: 1;
    padding-left: 0;
}

.select2-container--goalCard .select2-selection--single .select2-selection__placeholder {
    color: var(--gc-select-text-muted);
}

/* стрелка */
.select2-container--goalCard .select2-selection__arrow {
    position: absolute;
    right: 12px;
    top: 57%;
    width: 10px;
    height: 10px;
}
.select2-container--goalCard .select2-selection__arrow b {
    border-color: var(--gc-select-arrow-color) transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    margin: 0;
}

.select2-container--goalCard .select2-selection--single .select2-selection__arrow b {
    border-color: var(--gc-select-arrow-color) transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    margin-left: -4px;
    margin-top: 0;
}

/* === MULTI SELECT === */
.select2-container--goalCard
.select2-selection--multiple
.select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding-left: 0;
}

/* обёртка для инпута в мультиселекте */
.select2-container--goalCard
.select2-selection--multiple
.select2-search--inline {
    display: flex;
    align-items: center;
}
.select2-container--goalCard .select2-selection--multiple {
    background: var(--gc-select-bg);
    border-radius: var(--gc-select-radius-pill);
    border: 1px solid var(--gc-select-border);
    min-height: var(--gc-select-multi-min-height);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 2px var(--gc-select-multi-padding-right) 2px var(--gc-select-multi-padding-x);
    box-shadow: none;
    cursor: text;
    transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out;
}

.select2-container--goalCard .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
}

/* тег */
.select2-container--goalCard
.select2-selection--multiple
.select2-selection__choice {
    background: var(--gc-select-tag-bg);
    border-radius: var(--gc-select-radius-tag);
    border: 1px solid var(--gc-select-tag-border);
    padding: var(--gc-select-tag-padding-y) var(--gc-select-tag-padding-x);
    font-size: var(--gc-select-tag-font-size);
    color: var(--gc-select-text);
}

/* крестик у тега */
.select2-container--goalCard
.select2-selection--multiple
.select2-selection__choice {
    background: var(--gc-select-tag-bg);
    border-radius: var(--gc-select-radius-tag);
    border: 1px solid var(--gc-select-tag-border);
    padding: var(--gc-select-tag-padding-y) var(--gc-select-tag-padding-x);
    font-size: var(--gc-select-tag-font-size);
    color: var(--gc-select-text);

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* крестик внутри тега */
.select2-container--goalCard
.select2-selection--multiple
.select2-selection__choice__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 14px;
    height: 14px;
    margin-right: 0;
    margin-left: -2px;
    padding: 0;

    background: var(--gc-select-tag-bg);
    border-radius: 4px;
    border: none;

    color: #000000;
    font-size: 11px;
    cursor: pointer;
}


.select2-container--goalCard
.select2-selection--multiple
.select2-selection__choice__remove:hover {
    background: rgba(244, 197, 82, 0.2);  /* лёгкий хайлайт */
    color: #000000;
}


/* инпут внутри мультиселекта */
.select2-container--goalCard
.select2-selection--multiple
.select2-search__field {
    background: var(--gc-select-bg);
    border: none;
    margin: 0;
    padding: 2px 4px;
    color: var(--gc-select-text);
    caret-color: #ffffff;
}
/* плейсхолдер мультиселекта */
.select2-container--goalCard
.select2-selection--multiple
.select2-selection__placeholder {
    color: var(--gc-select-text-muted);
    margin-left: 4px;
}

/* крестик очистки allowClear */
.select2-container--goalCard .select2-selection__clear {
    position: absolute;
    right: 38px;
    font-size: 14px;
    color: var(--gc-select-text-muted);
    cursor: pointer;
}

/* === ФОКУС === */

.select2-container--goalCard.select2-container--focus .select2-selection--single,
.select2-container--goalCard.select2-container--focus .select2-selection--multiple {
    border-color: var(--gc-select-border-focus);
    box-shadow: 0 0 0 1px var(--gc-select-shadow-focus);
}

/* === DROPDOWN === */
.select2-container--goalCard .select2-results > .select2-results__options {
    max-height: calc(100vh - 60vh);
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;


    scrollbar-width: thin;
    scrollbar-color: #f4c552 #111320;
}
.select2-container--goalCard .select2-dropdown {
    background: var(--gc-select-dropdown-bg);
    border-radius: var(--gc-select-radius-dropdown);
    border: 1px solid var(--gc-select-dropdown-border);
    box-shadow: var(--gc-select-dropdown-shadow);
    overflow: hidden;
}
.select2-container--goalCard .select2-results > .select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-container--goalCard .select2-results > .select2-results__options::-webkit-scrollbar-track {
    background: #111320;
    border-radius: 999px;
}

.select2-container--goalCard .select2-results > .select2-results__options::-webkit-scrollbar-thumb {
    background: #f4c552;
    border-radius: 999px;
}

.select2-container--goalCard .select2-results > .select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #ffdd7a;
}

.select2-container--goalCard .select2-search--dropdown .select2-search__field {
    background: var(--gc-select-search-bg);
    border-radius: var(--gc-select-radius-pill);
    border: 1px solid var(--gc-select-search-border);
    color: var(--gc-select-text);
    padding: var(--gc-select-search-padding-y) var(--gc-select-search-padding-x);
    font-size: var(--gc-select-search-font-size);
}

/* список опций */
.select2-container--goalCard .select2-results__options {
    padding: 4px 0;
}

/* опция */
.select2-container--goalCard .select2-results__option {
    padding: var(--gc-select-option-padding-y) var(--gc-select-option-padding-x);
    font-size: var(--gc-select-option-font-size);
    color: var(--gc-select-text);
}
.select2-container--goalCard
.select2-results__option--highlighted[aria-selected="false"] {
    background: var(--gc-select-option-hover-bg);
    color: var(--gc-select-text);
}
.select2-container--goalCard
.select2-results__option--selected {
    background: var(--gc-select-option-selected-bg);  /* свой цвет */
    color: var(--gc-select-text);                     /* например, белый/золотой */
}
/* hover */
.select2-container--goalCard
.select2-results__option--highlighted[aria-selected] {
    background: var(--gc-select-option-hover-bg);
    color: var(--gc-select-text);
}

/* выбранное */
.select2-container--goalCard
.select2-results__option[aria-selected="true"] {
    background: var(--gc-select-option-selected-bg)!important;
    color: var(--gc-select-text)!important;
}
.select2-container--goalCard
.select2-results__option--highlighted[aria-selected="true"] {
    background: var(--gc-select-option-selected-bg) !important;
    color: var(--gc-select-text) !important;
}

.select2-container--goalCard .select2-dropdown--below {
    margin-top: 8px;
}
.select2-container--goalCard .select2-dropdown--above {
    margin-bottom: 8px;
}
/* === SCROLLBAR === */

.select2-container--goalCard .select2-results__options {
    scrollbar-width: thin;
}
.select2-container--goalCard .select2-results__options::-webkit-scrollbar {
    width: var(--gc-select-scroll-width);
}
.select2-container--goalCard .select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}
.select2-container--goalCard .select2-results__options::-webkit-scrollbar-thumb {
    background: var(--gc-select-scroll-thumb);
    border-radius: 999px;
}


/* === DISABLED STATE (общие стили) === */
.select2-container--goalCard.select2-container--disabled
.select2-selection--single,
.select2-container--goalCard.select2-container--disabled
.select2-selection--multiple {
    background: var(--gc-select-bg-disabled, #181820);  /* чуть темнее фон */
    border-color: var(--gc-select-border-disabled, #3a3a45);
    color: var(--gc-select-text-disabled, #7a7a85);
    cursor: not-allowed;
    box-shadow: none;
}

/* не даём hover/focus подсветке менять рамку */
.select2-container--goalCard.select2-container--disabled
.select2-selection--single:hover,
.select2-container--goalCard.select2-container--disabled
.select2-selection--multiple:hover {
    border-color: var(--gc-select-border-disabled, #3a3a45);
}

/* стрелка и крестик очистки в disabled — приглушаем */
.select2-container--goalCard.select2-container--disabled
.select2-selection__arrow b,
.select2-container--goalCard.select2-container--disabled
.select2-selection__clear {
    opacity: 0.35;
    cursor: default;
}

/* теги (multiple) в disabled — более спокойные */
.select2-container--goalCard.select2-container--disabled
.select2-selection--multiple
.select2-selection__choice {
    background: rgba(244, 197, 82, 0.08);   /* мягкий подсвеченный фон */
    border-color: rgba(244, 197, 82, 0.25);
    color: var(--gc-select-text-disabled, #8a8a95);
}

/* убираем крестики удаления у тегов, если disabled */
.select2-container--goalCard.select2-container--disabled
.select2-selection--multiple
.select2-selection__choice__remove {
    display: none;
}

/* чтобы вообще ничего внутри не кликалось */
.select2-container--goalCard.select2-container--disabled
.select2-selection--single,
.select2-container--goalCard.select2-container--disabled
.select2-selection--multiple {
    pointer-events: none;
}

@media (max-width: 768px) {
     .select2-container--goalCard .select2-search--dropdown .select2-search__field,
    /* инпут внутри мультиселекта (inline) */
    .select2-container--goalCard
    .select2-selection--multiple
    .select2-search__field {
        font-size: 16px !important;
    }
}
@media (max-width: 768px) {
    :root {
        --gc-select-search-font-size: 16px;
        --gc-select-option-font-size: 16px;
    }
}