/* 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: one card (store-picker.js builds it), in the
   page's dark text. The panel sits under the header, whose text is white, so it sets its own colour (2026-11-26: the list was
   white on white and could not be read). */
.store-switch-panel {
    margin: .75rem 0;
    padding: 0 1rem;
    color: var(--app-ink, #1c1f2e);
}

.store-switch-card {
    max-width: 40rem;
    margin: 0 auto;
    color: var(--app-ink, #1c1f2e);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12);
}

.store-switch-card .card-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}

.store-switch-card .card-header i {
    color: var(--app-primary, #1b6ec2);
}

.store-switch-lead {
    margin-bottom: .5rem;
}

.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 card (title in its header), with one column of store cards in its body, the same on a desktop and a
   phone. The store names are the page's dark text on white with the store icon in the site's blue; the store chosen now is
   white on blue (Matt, 2026-11-26: the names were link-blue on the blue page). */
.store-choose {
    max-width: 32rem;
    margin: 1.5rem auto;
}

.store-choose-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--app-ink, #1c1f2e);
}

.store-choose-prompt {
    margin: 0;
    color: var(--app-muted, #6b7185);
}

.store-choose-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 1rem 0 0;
}

.store-choose-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-ink, #1c1f2e);
    background: var(--app-surface, #ffffff);
    border: 1px solid var(--app-line, #e3e5ec);
}

.store-choose-card i {
    flex-shrink: 0;
    color: var(--app-primary, #1b6ec2);
    font-size: 1.25rem;
}

/* The store's name, and its address under it. */
.store-choose-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* #50566a keeps 4.5:1 or better on white and on the hover grey (--app-bg). */
.store-choose-address {
    font-size: .85rem;
    font-weight: 400;
    color: #50566a;
}

/* How far the store is from the outlet's own address, under the store's address (store-distance.js fills it in, or the server
   writes it). Small text in the site's primary colour, white on the chosen card; empty and hidden until it is known. */
.store-choose-distance {
    font-size: .85rem;
    font-weight: 600;
    color: var(--app-primary, #1b6ec2);
}

.store-choose-distance[hidden] {
    display: none;
}

.store-choose-card:hover,
.store-choose-card:focus-visible {
    color: var(--app-ink, #1c1f2e);
    background: var(--app-bg, #f2f3f7);
    border-color: var(--app-primary, #1b6ec2);
}

.store-choose-card.btn-primary,
.store-choose-card.btn-primary:hover,
.store-choose-card.btn-primary:focus-visible {
    color: #fff;
    background: var(--app-primary, #1b6ec2);
    border-color: var(--app-primary, #1b6ec2);
}

.store-choose-card.btn-primary i {
    color: #fff;
}

.store-choose-card.btn-primary .store-choose-address {
    color: #fff;
}

.store-choose-card.btn-primary .store-choose-distance {
    color: #fff;
}

@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;
    }
}
