/* ==========================================================================
   Select2 – base
   ========================================================================== */

:root {
    --gm-select-font: "Poppins", Arial, Helvetica, sans-serif;
    --gm-select-text: #17325c;
    --gm-select-text-soft: #7f8da3;
    --gm-select-border: #d8dee8;
    --gm-select-border-hover: #c6d0dd;
    --gm-select-border-focus: #17325c;
    --gm-select-bg: #ffffff;
    --gm-select-bg-soft: #f5f7fb;
    --gm-select-bg-disabled: #f3f5f8;
    --gm-select-tag-bg: #eef3f8;
    --gm-select-tag-border: #d6deea;
    --gm-select-option-hover: #eef3f8;
    --gm-select-option-selected: #17324b;
    --gm-select-option-selected-text: #ffffff;
    --gm-select-shadow: 0 18px 40px rgba(18, 35, 63, 0.12);
    --gm-select-zindex: 99999;
}

.select2-container {
    display: inline-block;
    position: relative;
    margin: 0;
    vertical-align: middle;
    max-width: 100%;
    font-family: var(--gm-select-font);
}

.select2-container,
.select2-selection--single,
.select2-selection--multiple,
.select2-search__field,
.select2-dropdown,
.select2-selection--multiple .select2-selection__rendered {
    box-sizing: border-box;
}

.select2-container *,
.select2-container *::before,
.select2-container *::after {
    box-sizing: border-box;
    font-family: var(--gm-select-font);
}

/* ==========================================================================
   Single select
   ========================================================================== */

.select2-container .select2-selection--single {
    display: block;
    height: 52px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    background-color: var(--gm-select-bg);
    border: 1px solid var(--gm-select-border);
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.select2-container .select2-selection--single:hover {
    border-color: var(--gm-select-border-hover);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    height: 50px;
    padding-left: 16px;
    padding-right: 46px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gm-select-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 50px;
}

.select2-container .select2-selection--single .select2-selection__clear {
    position: relative;
    float: right;
    cursor: pointer;
    font-weight: 600;
    color: var(--gm-select-text-soft);
}

.select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--gm-select-text-soft);
}

.select2-container .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 1px;
    right: 16px;
    width: 16px;
    height: 50px;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -7px 0 0 -5px;
    border: solid var(--gm-select-text);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.2s ease, margin-top 0.2s ease;
}

/* RTL */
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 16px;
    padding-left: 46px;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__clear {
    float: left;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 16px;
}

/* ==========================================================================
   Multiple select
   ========================================================================== */

.select2-container .select2-selection--multiple {
    display: block;
    min-height: 52px;
    cursor: text;
    user-select: none;
    -webkit-user-select: none;
    background-color: var(--gm-select-bg);
    border: 1px solid var(--gm-select-border);
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.select2-container .select2-selection--multiple:hover {
    border-color: var(--gm-select-border-hover);
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: inline-block;
    width: 100%;
    margin: 0;
    padding: 8px 12px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    list-style: none;
}

.select2-container .select2-selection--multiple .select2-selection__rendered li {
    list-style: none;
}

.select2-container .select2-search--inline {
    float: left;
    padding: 0;
}

.select2-container .select2-search--inline .select2-search__field {
    margin: 4px 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: 0;
    font-size: 15px;
    color: var(--gm-select-text);
    -webkit-appearance: textfield;
}

.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.select2-selection--multiple .select2-selection__placeholder {
    float: left;
    margin-top: 6px;
    color: var(--gm-select-text-soft);
}

.select2-selection--multiple .select2-selection__clear {
    float: right;
    margin-top: 6px;
    margin-right: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gm-select-text-soft);
}

.select2-selection--multiple .select2-selection__choice {
    float: left;
    margin-top: 4px;
    margin-right: 6px;
    padding: 4px 10px;
    cursor: default;
    background-color: var(--gm-select-tag-bg);
    border: 1px solid var(--gm-select-tag-border);
    color: var(--gm-select-text);
    font-size: 14px;
    line-height: 1.35;
}

.select2-selection--multiple .select2-selection__choice__remove {
    display: inline-block;
    margin-right: 6px;
    font-weight: 700;
    color: var(--gm-select-text-soft);
    cursor: pointer;
    transition: color 0.2s ease;
}

.select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--gm-select-text);
}

.select2-container[dir="rtl"] .select2-selection--multiple .select2-selection__choice,
.select2-container[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,
.select2-container[dir="rtl"] .select2-selection--multiple .select2-search--inline {
    float: right;
}

.select2-container[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
    margin-right: 0;
    margin-left: 6px;
}

.select2-container[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 0;
    margin-left: 6px;
}

/* ==========================================================================
   Focus / open states
   ========================================================================== */

.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    background-color: var(--gm-select-bg);
    border: 1px solid var(--gm-select-border-focus);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 50, 92, 0.08);
}

.select2-container--open.select2-container--below .select2-selection {
    border-bottom: 0;
}

.select2-container--open.select2-container--above .select2-selection {
    border-top: 0;
}

.select2-container--open .select2-selection--single .select2-selection__arrow b {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.select2-container--focus .select2-selection--multiple {
    border: 1px solid var(--gm-select-border-focus);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 50, 92, 0.08);
}

/* ==========================================================================
   Dropdown
   ========================================================================== */

.select2-dropdown {
    display: block;
    position: absolute;
    left: -100000px;
    width: 100%;
    background-color: var(--gm-select-bg);
    border: 1px solid var(--gm-select-border);
    border-radius: 0;
    box-shadow: var(--gm-select-shadow);
    overflow: hidden;
    z-index: var(--gm-select-zindex);
}

.select2-container--open .select2-dropdown {
    left: 0;
}

.select2-container--open .select2-dropdown--above {
    border-bottom: none;
}

.select2-container--open .select2-dropdown--below {
    border-top: none;
}

/* ==========================================================================
   Search inside dropdown
   ========================================================================== */

.select2-search--dropdown {
    display: block;
    position: relative;
    padding: 12px;
    background-color: var(--gm-select-bg);
    border-bottom: 1px solid #edf1f6;
}

.select2-search--dropdown:after {
    content: "\f002";
    position: absolute;
    top: 50%;
    right: 26px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: var(--gm-select-text);
    pointer-events: none;
    opacity: 0.9;
}

.select2-search--dropdown .select2-search__field {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 42px 0 14px;
    border: 1px solid var(--gm-select-border);
    border-radius: 0;
    background: var(--gm-select-bg);
    color: var(--gm-select-text);
    font-size: 15px;
    line-height: 44px;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--gm-select-border-focus);
    box-shadow: 0 0 0 3px rgba(23, 50, 92, 0.08);
}

.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.select2-search--dropdown.select2-search--hide {
    display: none;
}

/* ==========================================================================
   Results
   ========================================================================== */

.select2-results {
    display: block;
}

.select2-results__options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.select2-results > .select2-results__options {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #bcc7d7 #f4f6fa;
}

.select2-results > .select2-results__options::-webkit-scrollbar {
    width: 10px;
}

.select2-results > .select2-results__options::-webkit-scrollbar-track {
    background: #f4f6fa;
}

.select2-results > .select2-results__options::-webkit-scrollbar-thumb {
    background: #bcc7d7;
    border: 2px solid #f4f6fa;
}

.select2-results__option {
    margin: 0;
    padding: 11px 16px;
    color: #223754;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    user-select: none;
    -webkit-user-select: none;
    border-bottom: 1px solid #f1f4f8;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.select2-results__option:last-child {
    border-bottom: 0;
}

.select2-results__option[data-selected],
.select2-results__option[aria-selected] {
    cursor: pointer;
}

.select2-results__option:empty {
    display: none;
}

.select2-results__option[role="group"] {
    padding: 0;
}

.select2-results__option[aria-disabled="true"] {
    color: #9aa6ba;
    cursor: default;
}

.select2-results__option[data-selected="true"] {
    background-color: var(--gm-select-option-hover);
    color: var(--gm-select-text);
    font-weight: 600;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--gm-select-option-selected);
    color: var(--gm-select-option-selected-text);
}

.select2-results__group {
    display: block;
    padding: 10px 16px 8px;
    cursor: default;
    background: #f8fafc;
    color: var(--gm-select-text);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Nested options */
.select2-results__option .select2-results__option {
    padding-left: 1em;
}

.select2-results__option .select2-results__option .select2-results__group {
    padding-left: 0;
}

.select2-results__option .select2-results__option .select2-results__option {
    margin-left: -1em;
    padding-left: 2em;
}

.select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -2em;
    padding-left: 3em;
}

.select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -3em;
    padding-left: 4em;
}

.select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -4em;
    padding-left: 5em;
}

.select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -5em;
    padding-left: 6em;
}

/* ==========================================================================
   Disabled states
   ========================================================================== */

.select2-container--disabled .select2-selection--single {
    background-color: var(--gm-select-bg-disabled);
    cursor: default;
    opacity: 1;
}

.select2-container--disabled .select2-selection--single .select2-selection__rendered {
    color: var(--gm-select-text-soft);
}

.select2-container--disabled .select2-selection--single .select2-selection__clear {
    display: none;
}

.select2-container--disabled .select2-selection--multiple {
    background-color: var(--gm-select-bg-disabled);
    cursor: default;
}

.select2-container--disabled .select2-selection__choice__remove {
    display: none;
}

/* ==========================================================================
   Utility elements
   ========================================================================== */

.select2-close-mask {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    z-index: 99;
    background-color: #fff;
    filter: alpha(opacity=0);
}

.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
}

/* ==========================================================================
   WooCommerce / form alignment helpers
   ========================================================================== */

.woocommerce .select2-container,
.woocommerce-page .select2-container,
.woocommerce-account .select2-container,
.woocommerce-checkout .select2-container {
    width: 100% !important;
}

.woocommerce .select2-container .select2-selection--single,
.woocommerce-page .select2-container .select2-selection--single,
.woocommerce-account .select2-container .select2-selection--single,
.woocommerce-checkout .select2-container .select2-selection--single {
    min-height: 52px;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered,
.woocommerce-page .select2-container .select2-selection--single .select2-selection__rendered,
.woocommerce-account .select2-container .select2-selection--single .select2-selection__rendered,
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--gm-select-text);
}