/* The store picker in the header (Views/Shared/_StorePicker.cshtml) and the Choose a store page (Views/Store/Choose.cshtml).
   The picker is ONE LINE high everywhere, a phone included: the name or the dropdown, never a stack. */

.store-picker {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .4rem;
    min-width: 0;
}

.store-picker-label {
    flex: 0 0 auto;
    color: var(--app-muted, #6c757d);
    font-size: .8rem;
    white-space: nowrap;
}

.store-picker-select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 14rem;
    height: 2rem;
    padding: 0 1.5rem 0 .5rem;
    font-size: .9rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* What a switch would change, shown under the header before anything is changed. */
.store-switch-panel {
    margin: .5rem 0;
    padding: .75rem 1rem;
    border: 1px solid var(--app-line, #dee2e6);
    border-radius: .5rem;
    background: var(--app-surface, #fff);
}

.store-switch-panel[hidden] {
    display: none;
}

.store-switch-panel ul {
    margin: .25rem 0 .5rem 1.25rem;
    padding: 0;
}

.store-switch-actions {
    display: flex;
    gap: .5rem;
}

/* Choose a store: one column of cards, the same on a desktop and a phone. */
.store-choose {
    max-width: 32rem;
    margin: 1.5rem auto;
}

.store-choose-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 1rem 0;
}

.store-choose-card {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 767.98px), (pointer: coarse) and (max-height: 500px) {
    .store-picker-label {
        display: none;
    }

    .store-picker-select {
        max-width: 100%;
        height: 1.9rem;
        font-size: .85rem;
    }
}
