/* css/select2-overrides.css */

/* ==========================================================================
   Global Select2 Theme: .daluna-select2-theme
   ========================================================================== */

/* The main select element on the page (Themed) */
.select2-selection.select2-selection--single.daluna-select2-theme {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    height: 48px;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* The text of the selected item (Themed) */
.select2-selection.select2-selection--single.daluna-select2-theme .select2-selection__rendered {
    color: #333;
    line-height: 1.5;
    padding: 0 12px 0 12px;
    padding-right: 30px;
    box-sizing: border-box;
    flex-grow: 1;
}

/* --- Global styles for ALL Select2 arrows --- */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    position: absolute;
    top: 0;
    right: 1px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 13px;
    color: #757575;
    transition: transform 0.2s ease-in-out;
    line-height: 1;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: rotate(180deg);
}
/* --- END: Global Arrow Styles --- */


/* Highlight style for the THEMED select box when open */
.select2-container--default.select2-container--open .select2-selection--single.daluna-select2-theme {
	border-radius: 8px;
}

/* --- NEW: Global style for the DISABLED state of themed selects --- */
.select2-container--default.select2-container--disabled .select2-selection--single.daluna-select2-theme {
    background-color: #f7f7f7; /* Match disabled button background */
    border-color: #ccc;       /* Match disabled button border */
    cursor: default;          /* Match disabled button cursor */
	opacity: 0.65;
}

.select2-container--default.select2-container--disabled .select2-selection--single.daluna-select2-theme .select2-selection__rendered {
    color: #aaa;              /* Match disabled button text color */
}
/* --- END: Disabled State --- */

/* The main dropdown panel (Themed) */
.select2-dropdown.daluna-select2-theme {
    background-color: #fff;
    outline: 1px solid #aeaeae;
	border: none;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Search box container in dropdown (Themed) */
.select2-dropdown.daluna-select2-theme .select2-search--dropdown {
    padding: 6px 8px;
}

/* Search input field (Themed) */
.select2-dropdown.daluna-select2-theme .select2-search--dropdown .select2-search__field {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.select2-dropdown.daluna-select2-theme .select2-search--dropdown .select2-search__field:focus {
    border-color: #999;
}

/* List of options (Themed) */
.select2-dropdown.daluna-select2-theme .select2-results__options {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 200px;
    overflow-y: auto;
	clip-path: inset(0 0 0 0 round 4px);
}

/* Individual option item (Themed) */
.select2-dropdown.daluna-select2-theme .select2-results__option {
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: background-color 0.1s ease-in-out;
    margin: 0;
}

/* Hovered option (Themed) */
.select2-dropdown.daluna-select2-theme .select2-results__option--highlighted {
    background-color: #f0f0f0;
    color: #222;
}

/* Selected option (Themed) */
.select2-dropdown.daluna-select2-theme .select2-results__option[aria-selected="true"] {
    background-color: #e8e8e8;
    color: #111;
    font-weight: 500;
}

.select2-dropdown.daluna-select2-theme .select2-results__option[aria-selected="true"].select2-results__option--highlighted {
    background-color: #f0f0f0;
    color: #222;
    font-weight: normal;
}

/* "No results" message (Themed) */
.select2-dropdown.daluna-select2-theme .select2-results__message {
    padding: 8px 12px;
    color: #757575;
    font-size: 14px;
}

/* Style for disabled options within any themed dropdown */
.select2-dropdown.daluna-select2-theme .select2-results__option[aria-disabled="true"] {
    color: #b0b0b0;
    cursor: default;
}