/* ═══════════════════════════════════════
   Custom Select Dropdown (Mobile)
   Replaces native <select> with inline list
   ═══════════════════════════════════════ */

/* Hide native select when custom is active */
.f-native-select-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Wrapper */
.f-custom-select-wrap {
    position: relative;
    width: 100%;
}

/* Trigger button */
.f-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    -webkit-user-select: none;
    user-select: none;
}

.f-custom-select-trigger:hover {
    border-color: #999;
}

.f-custom-select-trigger.is-open {
    border-color: #2570eb;
    box-shadow: 0 0 0 2px rgba(37,112,235,.15);
    border-radius: 10px 10px 0 0;
}

/* Arrow icon */
.f-custom-select-arrow {
    font-size: 11px;
    color: #888;
    transition: transform .2s;
    margin-left: 8px;
    flex-shrink: 0;
}

.f-custom-select-trigger.is-open .f-custom-select-arrow {
    transform: rotate(180deg);
}

/* Dropdown list */
.f-custom-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    -webkit-overflow-scrolling: touch;
}

.f-custom-select-dropdown.is-open {
    display: block;
}

/* Options */
.f-custom-select-option {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid #f5f5f5;
    -webkit-user-select: none;
    user-select: none;
}

.f-custom-select-option:last-child {
    border-bottom: none;
}

.f-custom-select-option:hover {
    background: #f0f4ff;
}

.f-custom-select-option.is-selected {
    font-weight: 700;
    color: #2570eb;
    background: #f0f7ff;
}

.f-custom-select-option.is-child {
    font-size: 13px;
    color: #555;
}

/* Scrollbar */
.f-custom-select-dropdown::-webkit-scrollbar {
    width: 4px;
}

.f-custom-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.f-custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
