/* OrderNao 2.1.6 — header "Select Delivery" bar.
 * Fixes the bar being clipped off the right edge of the header on
 * narrow/mobile screens by letting it shrink inside its flex parent
 * instead of holding a fixed content width.
 */
.fe-location-header-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    user-select: none;

    /* The critical part: allow this element to shrink to fit whatever
       room the header actually has, instead of demanding 220px and
       overflowing past the viewport edge. */
    box-sizing: border-box;
    max-width: 160px;
    min-width: 0;
    flex: 0 1 auto;
}

.fe-location-header-bar .fe-loc-pin {
    flex: 0 0 auto;
    color: #ff5252;
    font-size: 15px;
    line-height: 1;
}

.fe-location-header-bar .fe-loc-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #222;
}

.fe-location-header-bar .fe-loc-change-badge {
    flex: 0 0 auto;
    font-size: 10px;
    background: #16a34a;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .fe-location-header-bar {
        max-width: 128px;
        padding: 5px 8px;
        font-size: 12px;
        gap: 4px;
    }
    .fe-location-header-bar .fe-loc-change-badge {
        display: none;
    }
}

@media (max-width: 360px) {
    .fe-location-header-bar {
        max-width: 104px;
        padding: 4px 7px;
        font-size: 11px;
    }
}

/* OrderNao 2.1.12 — auto-injected "Set Location" button for desktop.
 * Hidden by default (it would duplicate the mobile header/menu location
 * bar on small screens); shown as a small fixed pill near the top of the
 * viewport once the screen is wide enough to be a tablet/desktop. */
.fe-desktop-location-fab {
    display: none;
}
@media (min-width: 900px) {
    .fe-desktop-location-fab {
        display: inline-flex !important;
        position: fixed;
        top: 14px;
        right: 20px;
        z-index: 99998;
        max-width: 240px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    }
    .fe-desktop-location-fab .fe-loc-name {
        max-width: 150px;
    }
}
