/* СТИЛИ ДЛЯ SELECT2 - ЗАГРУЖАЮТСЯ В САМОМ КОНЦЕ */

/* Кнопка очистки - СУПЕР АГРЕССИВНЫЕ СТИЛИ */
html body .woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__clear,
body .select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #ffffff !important;
    margin-left: 15px !important;
    margin-right: 0 !important;
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Hover эффект для кнопки очистки */
html body .woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__clear:hover,
body .select2-container--default .select2-selection--single .select2-selection__clear:hover,
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #CF5624 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

/* Стили для опций в выпадающем списке */
.select2-container--default .select2-results > .select2-results__options {
    color: #fff !important;
}

/* Стили для Select2 на странице checkout */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background: #2A2A2A !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    height: 50px !important;
    padding: 0 15px !important;
}

/* Кнопка очистки в левой части для checkout */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #ffffff !important;
    margin-left: 0 !important;
    margin-right: 15px !important;
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #CF5624 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: 46px !important;
    padding: 0 0 0 35px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 15px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.6) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

.woocommerce-checkout .select2-dropdown {
    background: #2A2A2A !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    margin-top: 8px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown {
    padding: 15px !important;
    background: #1A1A1A !important;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
}

.woocommerce-checkout .select2-container--default .select2-results__option {
    color: #fff !important;
    padding: 12px 15px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.woocommerce-checkout .select2-container--default .select2-results__option--highlighted {
    background: rgba(207, 86, 36, 0.1) !important;
    color: #CF5624 !important;
}

.woocommerce-checkout .select2-container--default .select2-results__group {
    color: #CF5624 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: rgba(207, 86, 36, 0.05) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 10px 15px !important;
}
