@media (max-width: 767.98px) {
    .mobile-select-wrap {
        position: relative;
        display: block;
        width: 100%;
        min-width: 0;
    }

    .mobile-select-native {
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 1px !important;
        height: 1px !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .mobile-select-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 8px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background: #fff;
        color: #0f172a;
        font-family: inherit;
        font-size: 15px;
        line-height: 1.4;
        text-align: left;
        cursor: pointer;
    }

    .mobile-select-trigger:focus-visible {
        outline: 2px solid #1677ff;
        outline-offset: 2px;
    }

    .mobile-select-trigger:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

    .mobile-select-value {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-select-caret {
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
    }
}

.mobile-select-menu {
    position: fixed;
    z-index: 100000;
    max-height: min(280px, calc(100dvh - 16px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .2);
    -webkit-overflow-scrolling: touch;
}

.mobile-select-option,
.mobile-select-group-label {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #1e293b;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
}

.mobile-select-option { cursor: pointer; }
.mobile-select-option[aria-selected="true"] { background: #eff6ff; color: #0f5fc7; font-weight: 700; }
.mobile-select-option:active { background: #dbeafe; }
.mobile-select-option:disabled { color: #94a3b8; cursor: not-allowed; }
.mobile-select-group-label { color: #64748b; font-size: 13px; font-weight: 700; }
