/************* Store page *************/

/* One store's whole inventory: the header with its "Visit" button, the "All
   wines / Deals" tabs, then the shared wine list (wine-list.css: the filter rail,
   toolbar, rows and pagination). */

:root {
    --retailer-muted: #5E5F5D;
    --retailer-hairline: #E4E3E1;
    --retailer-surface: #FAFAF9;
    --retailer-tint: #FBF3F4;
    --retailer-box: #8C8D8B;
    --retailer-shadow: 0 1px 2px rgba(35, 31, 32, 0.06);
}

#retailer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 28px 20px 56px;
}

/************* Breadcrumb *************/

#retailerBreadcrumb {
    margin-bottom: 18px;
}

/************* Header *************/

/* the name and facts on the left, the "Visit" button on the right, bottoms aligned */
#retailerHeader {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
}

#retailerHeaderInner {
    flex: 1 1 360px;
    min-width: 0;
}

#retailerHeaderTitle {
    overflow-wrap: anywhere;
}

/* where the store is, where it ships and how many wines we track there */
#retailerHeaderFacts {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--muted);
    font-size: var(--font-size-body);
}

#retailerHeaderFacts:empty {
    display: none;
}

.retailerHeaderFactsIcon {
    flex: none;
}

.retailerHeaderFactsText {
    min-width: 0;
}

#retailerHeaderActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#retailerHeaderActions:empty {
    display: none;
}

/************* Tabs *************/

/* "All wines" and "Deals" as underlined tabs over a hairline */
#retailerTabs {
    display: flex;
    gap: 4px;
    margin-top: 24px;
    border-bottom: 1px solid var(--hairline);
}

/* a store with no deals has no tabs */
#retailerTabs:empty {
    display: none;
}

.retailerTabsLink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 3px solid transparent;
    color: var(--black);
    font-size: 15px;
    font-weight: 600;
}

.retailerTabsLink:hover {
    border-bottom-color: var(--control-border);
}

.retailerTabsLink.active {
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.retailerTabsLinkCount {
    color: var(--muted);
    font-weight: 600;
}

/************* Footer *************/

#retailerFooter {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--hairline);
}

#retailerFooterDisclaimer {
    color: var(--muted);
    font-size: var(--font-size-meta);
    line-height: 1.6;
}

/************* Mobile *************/

@media (max-width: 800px) {
    #retailer {
        padding: 20px 16px 48px;
    }

    #retailerHeaderActions {
        width: 100%;
    }
}
