/**
 * Select2/selectWoo styling for Poolroboter Fluent Form.
 * Loaded only on pages with form ID matching pr_ff_poolroboter_form_ids().
 */

/* === Selection container alignment === */
.frm-fluent-form .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 42px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
}

.frm-fluent-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4;
    padding-left: 12px;
    padding-right: 48px;
}

/* === Hide Fluent Form's own ::after arrow on select2 container (avoids double arrow) === */
.frm-fluent-form span.select2.select2-container::after,
.frm-fluent-form .select2-container::after {
    content: none !important;
    display: none !important;
}

/* === Arrow — clean chevron instead of border-triangle === */
.frm-fluent-form .select2-container--default .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
    width: 14px;
    pointer-events: none;
}

.frm-fluent-form .select2-container--default .select2-selection__arrow b {
    border: none;
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -4px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.frm-fluent-form .select2-container--default.select2-container--open .select2-selection__arrow b {
    margin-top: -2px;
    border-color: #333;
    transform: rotate(-135deg);
}

/* === Clear (×) button — circular badge === */
.frm-fluent-form .select2-container--default .select2-selection__clear {
    position: absolute;
    right: 28px;
    top: 50%;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #666;
    font-weight: 400;
    font-size: 13px;
    margin: -9px 0 0 0;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
    z-index: 1;
}

.frm-fluent-form .select2-container--default .select2-selection__clear:hover {
    background: rgba(0, 0, 0, 0.16);
    color: #222;
}

/* Hide the inner span Select2 wraps the × in (causes double-x in some versions) */
.frm-fluent-form .select2-container--default .select2-selection__clear > span {
    display: block;
    line-height: 16px;
}

/* === Disabled state === */
.frm-fluent-form .select2-container--default.select2-container--disabled .select2-selection--single {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Dropdown stacking — ensures menu floats above modals/popups (Blocksy popup, etc.) ===
   Default Select2 z-index is 1051; Blocksy popup is ~99999, so we go higher. */
.select2-container.select2-container--open {
    z-index: 9999999;
}

