/* ================================================================================
   BREWERY-OWNER.CSS - Brewery claiming and the brewery owner dashboard
   Markup: templates/partials/brewery-owner.html. Logic: features/brewery-owner.js.

   Scoped to:
     #breweryDashboardOverlay    the dashboard (Beers / Stats / Profile)
     #breweryClaimModal          the pop-up an emailed claim link opens
     #breweryClaimRequestModal   the "Is this your brewery?" request form
     #myBreweriesModal           which brewery, for an account with several
     #breweryBeerModal           add or edit one beer
     #breweryNotGfModal          the check before marking a beer not gluten-free
     #breweryPartnerModal        "Become a partner": the prices, then Stripe
     #adminBreweryClaimsOverlay  admins only: requests and claim links

   Every rule sits under ONE of those ids. Where two surfaces share a look
   (form fields, the pop-up frame), the rules are written out again under each
   id on purpose: a change to one surface can then never restyle another.

   NOT here: the "Manage my brewery" button on home reuses .home-hero-btn-owner
   (owners.css), and the claim line and warning tag inside the brewery pop-up
   live in breweries.css with the rest of #breweryBeersModal.

   Theme tokens throughout. No hard-coded colours.
   ================================================================================ */


/* ================================================================================
   DASHBOARD - CONTAINER, HEADER, TABS
   ================================================================================ */
#breweryDashboardOverlay {
    position: fixed;
    inset: 0;
    background: var(--bg-home-page);
    z-index: var(--z-overlay);
    display: none;
    flex-direction: column;
}

#breweryDashboardOverlay.active {
    display: flex;
}

#breweryDashboardOverlay .brewery-dash-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-height: 0;
}

#breweryDashboardOverlay .brewery-dash-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

#breweryDashboardOverlay .brewery-dash-title {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

#breweryDashboardOverlay .brewery-dash-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#breweryDashboardOverlay .brewery-dash-tabs {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg) 0;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

#breweryDashboardOverlay .brewery-dash-tab {
    flex: 1;
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

#breweryDashboardOverlay .brewery-dash-tab.active {
    color: var(--purple);
    border-bottom-color: var(--purple);
}

#breweryDashboardOverlay .brewery-dash-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-lg);
    min-height: 0;
}

#breweryDashboardOverlay .brewery-dash-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 560px;
    margin: 0 auto;
}

#breweryDashboardOverlay .brewery-dash-primary-btn {
    width: 100%;
    min-height: 46px;
    padding: var(--space-md) var(--space-lg);
    background: var(--primary-gradient-simple);
    border: none;
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: var(--text-md);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

#breweryDashboardOverlay .brewery-dash-primary-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

#breweryDashboardOverlay .brewery-dash-loading,
#breweryDashboardOverlay .brewery-dash-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: var(--space-2xl) var(--space-lg);
}

#breweryDashboardOverlay .brewery-section-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}


/* ================================================================================
   DASHBOARD - BEERS TAB
   ================================================================================ */
#breweryDashboardOverlay .brewery-beers-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

#breweryDashboardOverlay .brewery-beer-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

#breweryDashboardOverlay .brewery-beer-row.is-withdrawn {
    border-color: var(--border-red);
}

#breweryDashboardOverlay .brewery-beer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

#breweryDashboardOverlay .brewery-beer-name {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

#breweryDashboardOverlay .brewery-beer-row.is-discontinued .brewery-beer-name {
    color: var(--text-secondary);
}

#breweryDashboardOverlay .brewery-beer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

#breweryDashboardOverlay .brewery-beer-where {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryDashboardOverlay .brewery-pill {
    padding: var(--space-xxs) var(--space-sm);
    border-radius: var(--radius-pill);
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}

#breweryDashboardOverlay .brewery-pill-green {
    background: var(--bg-green);
    border-color: var(--border-green);
    color: var(--dark-green);
}

#breweryDashboardOverlay .brewery-pill-amber {
    background: var(--bg-amber);
    border-color: var(--border-amber);
    color: var(--text-primary);
}

#breweryDashboardOverlay .brewery-pill-purple {
    background: var(--bg-purple);
    border-color: var(--border-purple);
    color: var(--text-purple);
}

#breweryDashboardOverlay .brewery-pill-red {
    background: var(--bg-red);
    border-color: var(--border-red);
    color: var(--red);
}

#breweryDashboardOverlay .brewery-beer-edit {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-muted);
    font-size: var(--text-md);
    cursor: pointer;
}


/* ================================================================================
   DASHBOARD - STATS TAB
   ================================================================================ */
#breweryDashboardOverlay #breweryDashStats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#breweryDashboardOverlay .brewery-reach {
    padding: var(--space-lg);
    background: var(--bg-elevated-card);
    border: 1px solid var(--border-elevated-card);
    border-radius: var(--radius-lg);
}

#breweryDashboardOverlay .brewery-reach-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-purple);
    margin-bottom: var(--space-xs);
}

#breweryDashboardOverlay .brewery-reach-text {
    font-size: var(--text-sm);
    color: var(--text-on-elevated);
    line-height: 1.5;
}

#breweryDashboardOverlay .brewery-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

#breweryDashboardOverlay .brewery-stat-tile {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

#breweryDashboardOverlay .brewery-stat-number {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-purple);
    line-height: 1.2;
}

#breweryDashboardOverlay .brewery-stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#breweryDashboardOverlay .brewery-stat-sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryDashboardOverlay .brewery-rank {
    padding: 0 var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

#breweryDashboardOverlay .brewery-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--divider-color);
}

#breweryDashboardOverlay .brewery-rank-row:last-child {
    border-bottom: none;
}

#breweryDashboardOverlay .brewery-rank-main {
    min-width: 0;
}

#breweryDashboardOverlay .brewery-rank-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
}

#breweryDashboardOverlay .brewery-rank-sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryDashboardOverlay .brewery-rank-sub:empty {
    display: none;
}

#breweryDashboardOverlay .brewery-rank-value {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}


/* ================================================================================
   DASHBOARD - PROFILE TAB
   ================================================================================ */
#breweryDashboardOverlay .brewery-dash-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

#breweryDashboardOverlay .brewery-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

#breweryDashboardOverlay .brewery-field-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#breweryDashboardOverlay .brewery-field-input {
    width: 100%;
    min-height: 44px;
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-section);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

#breweryDashboardOverlay .brewery-field-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.1);
}

#breweryDashboardOverlay .brewery-field-input::placeholder {
    color: var(--text-muted);
}

#breweryDashboardOverlay .brewery-field-textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.5;
}

#breweryDashboardOverlay .brewery-field-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* The advert set-up on the Profile tab. */
#breweryDashboardOverlay #breweryAdvertSection {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

#breweryDashboardOverlay .brewery-advert-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-sm);
}

#breweryDashboardOverlay .brewery-advert-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* The preview. Drawn to match the real strip under a snap in the home feed
   (#homeOverlay .feed-deal-strip in home-page.css). The rules are written
   out again here on purpose, as every screen's are: if the real strip's look
   changes, change this to match. */
#breweryDashboardOverlay .brewery-advert-preview {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-amber);
    border: 1px solid var(--border-amber);
}

#breweryDashboardOverlay .brewery-advert-preview-text {
    flex: 1;
    min-width: 0;
}

#breweryDashboardOverlay .brewery-advert-preview-title {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--amber);
}

#breweryDashboardOverlay .brewery-advert-preview-sub {
    display: block;
    font-size: var(--text-xs);
    line-height: 1.3;
    color: var(--text-muted);
}

#breweryDashboardOverlay .brewery-advert-preview-cta {
    flex-shrink: 0;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    white-space: nowrap;
    background: var(--amber);
    color: var(--text-on-bright);
}

/* The line in the dashboard header saying Partner is on (and why), and the
   quiet line at the bottom of Stats for a brewery that is not a partner. */
#breweryDashboardOverlay .brewery-partner-note {
    /* One row: the words, then the link on the right. */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-amber);
    border: 1px solid var(--border-amber);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.45;
}

#breweryDashboardOverlay .brewery-partner-note strong {
    color: var(--amber);
}

/* Partner is off: the same line, without the amber. */
#breweryDashboardOverlay .brewery-partner-note.is-off {
    background: var(--bg-section);
    border-color: var(--border-light);
}

#breweryDashboardOverlay .brewery-partner-note.is-off strong {
    color: var(--text-primary);
}

/* "Become a partner", "Keep them on", "Manage billing": a text link, with a
   full-height tap area. Used in the header line, the Stats banner and the
   line at the bottom of Stats. */
#breweryDashboardOverlay .brewery-partner-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-purple);
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

#breweryDashboardOverlay .brewery-partner-note .brewery-partner-link {
    flex-shrink: 0;
    white-space: nowrap;
}

/* The banner at the top of Stats in the last days of the free month. */
#breweryDashboardOverlay .brewery-partner-banner {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    border-radius: var(--radius-lg);
}

#breweryDashboardOverlay .brewery-partner-banner-title {
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--text-primary);
}

#breweryDashboardOverlay .brewery-partner-banner-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.45;
}

#breweryDashboardOverlay .brewery-partner-banner-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

#breweryDashboardOverlay .brewery-partner-banner-btn {
    min-height: 44px;
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-gradient-simple);
    border: none;
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

#breweryDashboardOverlay .brewery-partner-banner-dismiss {
    min-height: 44px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

#breweryDashboardOverlay .brewery-partner-quiet {
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.45;
}

#breweryDashboardOverlay #breweryAlertsSection {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

#breweryDashboardOverlay .brewery-alerts {
    padding: 0 var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

#breweryDashboardOverlay .brewery-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 56px;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--divider-color);
    cursor: pointer;
}

#breweryDashboardOverlay .brewery-alert-row:last-child {
    border-bottom: none;
}

#breweryDashboardOverlay .brewery-alert-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#breweryDashboardOverlay .brewery-alert-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#breweryDashboardOverlay .brewery-alert-sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* A real checkbox drawn as a switch: keyboard and screen readers get the
   checkbox, eyes get the switch. */
#breweryDashboardOverlay .brewery-alert-switch {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 46px;
    height: 28px;
    flex-shrink: 0;
    margin: 0;
    border-radius: var(--radius-pill);
    background: var(--light-grey);
    cursor: pointer;
    transition: background var(--transition-fast);
}

#breweryDashboardOverlay .brewery-alert-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-circle);
    background: var(--white);
    transition: transform var(--transition-fast);
}

#breweryDashboardOverlay .brewery-alert-switch:checked {
    background: var(--purple);
}

#breweryDashboardOverlay .brewery-alert-switch:checked::after {
    transform: translateX(18px);
}

#breweryDashboardOverlay .brewery-alert-switch:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

#breweryDashboardOverlay .brewery-release-link {
    align-self: center;
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--red);
    font-size: var(--text-sm);
    font-family: inherit;
    cursor: pointer;
}


/* ================================================================================
   #breweryClaimModal - the pop-up an emailed claim link opens
   ================================================================================ */
#breweryClaimModal .brewery-modal-content {
    width: min(92%, 460px);
}

#breweryClaimModal .brewery-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-circle);
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: var(--text-md);
    font-family: inherit;
    cursor: pointer;
    z-index: 2;
}

#breweryClaimModal .brewery-modal-header {
    padding: var(--space-lg) calc(var(--space-lg) + 52px) var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--modal-line);
    flex-shrink: 0;
}

#breweryClaimModal .brewery-modal-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

#breweryClaimModal .brewery-modal-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xxs);
}

#breweryClaimModal .brewery-modal-sub:empty {
    display: none;
}

#breweryClaimModal .brewery-modal-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

#breweryClaimModal .brewery-modal-intro {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

#breweryClaimModal .brewery-modal-footer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--modal-line);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex-shrink: 0;
}

#breweryClaimModal .brewery-modal-footer:empty {
    display: none;
}

#breweryClaimModal .brewery-modal-primary,
#breweryClaimModal .brewery-modal-secondary,
#breweryClaimModal .brewery-modal-danger {
    width: 100%;
    min-height: 46px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: var(--text-md);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

#breweryClaimModal .brewery-modal-primary {
    background: var(--primary-gradient-simple);
    border: none;
    color: var(--text-white);
}

#breweryClaimModal .brewery-modal-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    color: var(--text-purple);
}

#breweryClaimModal .brewery-modal-danger {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    color: var(--red);
}

#breweryClaimModal .brewery-modal-primary:disabled,
#breweryClaimModal .brewery-modal-danger:disabled {
    opacity: 0.6;
    cursor: default;
}

#breweryClaimModal .brewery-modal-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryClaimModal .brewery-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

#breweryClaimModal .brewery-field-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#breweryClaimModal .brewery-field-input {
    width: 100%;
    min-height: 44px;
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-section);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

#breweryClaimModal .brewery-field-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.1);
}

#breweryClaimModal .brewery-field-input::placeholder {
    color: var(--text-muted);
}

#breweryClaimModal .brewery-field-textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.5;
}

#breweryClaimModal .brewery-field-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryClaimModal .brewery-modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

#breweryClaimModal .brewery-modal-checkbox input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--purple);
}

#breweryClaimModal .brewery-dash-loading,
#breweryClaimModal .brewery-dash-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: var(--space-2xl) var(--space-lg);
}

#breweryClaimModal .brewery-claim-benefits {
    margin: 0;
    padding-left: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}


/* ================================================================================
   #breweryClaimRequestModal - "Is this your brewery?" request form
   ================================================================================ */
#breweryClaimRequestModal .brewery-modal-content {
    width: min(92%, 460px);
}

#breweryClaimRequestModal .brewery-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-circle);
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: var(--text-md);
    font-family: inherit;
    cursor: pointer;
    z-index: 2;
}

#breweryClaimRequestModal .brewery-modal-header {
    padding: var(--space-lg) calc(var(--space-lg) + 52px) var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--modal-line);
    flex-shrink: 0;
}

#breweryClaimRequestModal .brewery-modal-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

#breweryClaimRequestModal .brewery-modal-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xxs);
}

#breweryClaimRequestModal .brewery-modal-sub:empty {
    display: none;
}

#breweryClaimRequestModal .brewery-modal-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

#breweryClaimRequestModal .brewery-modal-intro {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

#breweryClaimRequestModal .brewery-modal-footer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--modal-line);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex-shrink: 0;
}

#breweryClaimRequestModal .brewery-modal-footer:empty {
    display: none;
}

#breweryClaimRequestModal .brewery-modal-primary,
#breweryClaimRequestModal .brewery-modal-secondary,
#breweryClaimRequestModal .brewery-modal-danger {
    width: 100%;
    min-height: 46px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: var(--text-md);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

#breweryClaimRequestModal .brewery-modal-primary {
    background: var(--primary-gradient-simple);
    border: none;
    color: var(--text-white);
}

#breweryClaimRequestModal .brewery-modal-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    color: var(--text-purple);
}

#breweryClaimRequestModal .brewery-modal-danger {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    color: var(--red);
}

#breweryClaimRequestModal .brewery-modal-primary:disabled,
#breweryClaimRequestModal .brewery-modal-danger:disabled {
    opacity: 0.6;
    cursor: default;
}

#breweryClaimRequestModal .brewery-modal-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryClaimRequestModal .brewery-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

#breweryClaimRequestModal .brewery-field-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#breweryClaimRequestModal .brewery-field-input {
    width: 100%;
    min-height: 44px;
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-section);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

#breweryClaimRequestModal .brewery-field-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.1);
}

#breweryClaimRequestModal .brewery-field-input::placeholder {
    color: var(--text-muted);
}

#breweryClaimRequestModal .brewery-field-textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.5;
}

#breweryClaimRequestModal .brewery-field-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryClaimRequestModal .brewery-modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

#breweryClaimRequestModal .brewery-modal-checkbox input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--purple);
}


/* ================================================================================
   #myBreweriesModal - which brewery, for an account that manages several
   ================================================================================ */
#myBreweriesModal .brewery-modal-content {
    width: min(92%, 460px);
}

#myBreweriesModal .brewery-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-circle);
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: var(--text-md);
    font-family: inherit;
    cursor: pointer;
    z-index: 2;
}

#myBreweriesModal .brewery-modal-header {
    padding: var(--space-lg) calc(var(--space-lg) + 52px) var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--modal-line);
    flex-shrink: 0;
}

#myBreweriesModal .brewery-modal-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

#myBreweriesModal .brewery-modal-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xxs);
}

#myBreweriesModal .brewery-modal-sub:empty {
    display: none;
}

#myBreweriesModal .brewery-modal-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

#myBreweriesModal .my-breweries-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    min-height: 60px;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-section);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

#myBreweriesModal .my-breweries-row:active {
    transform: scale(0.99);
}

#myBreweriesModal .my-breweries-info {
    flex: 1;
    min-width: 0;
}

#myBreweriesModal .my-breweries-name {
    display: block;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

#myBreweriesModal .my-breweries-meta {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

#myBreweriesModal .my-breweries-go {
    flex-shrink: 0;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-purple);
}


/* ================================================================================
   #breweryBeerModal - add or edit one beer
   ================================================================================ */
#breweryBeerModal .brewery-modal-content {
    width: min(92%, 460px);
}

#breweryBeerModal .brewery-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-circle);
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: var(--text-md);
    font-family: inherit;
    cursor: pointer;
    z-index: 2;
}

#breweryBeerModal .brewery-modal-header {
    padding: var(--space-lg) calc(var(--space-lg) + 52px) var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--modal-line);
    flex-shrink: 0;
}

#breweryBeerModal .brewery-modal-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

#breweryBeerModal .brewery-modal-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xxs);
}

#breweryBeerModal .brewery-modal-sub:empty {
    display: none;
}

#breweryBeerModal .brewery-modal-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

#breweryBeerModal .brewery-modal-intro {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* "More below" cue. Takes up no room itself: the fade and the label hang
   upwards from it, over the bottom edge of the form. */
#breweryBeerModal .brewery-scroll-hint {
    position: relative;
    height: 0;
    flex-shrink: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

#breweryBeerModal .brewery-scroll-hint.is-visible {
    opacity: 1;
    visibility: visible;
}

#breweryBeerModal .brewery-scroll-hint::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
}

#breweryBeerModal .brewery-scroll-hint-btn {
    position: absolute;
    left: 50%;
    bottom: var(--space-sm);
    transform: translateX(-50%);
    min-height: 36px;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    /* --bg-muted is see-through, so it sits on the pop-up's own colour to
       stop the form text showing through the label. */
    background: linear-gradient(var(--bg-muted), var(--bg-muted)), var(--bg-card);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
}

#breweryBeerModal .brewery-modal-footer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--modal-line);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex-shrink: 0;
}

#breweryBeerModal .brewery-modal-footer:empty {
    display: none;
}

#breweryBeerModal .brewery-modal-primary,
#breweryBeerModal .brewery-modal-secondary,
#breweryBeerModal .brewery-modal-danger {
    width: 100%;
    min-height: 46px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: var(--text-md);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

#breweryBeerModal .brewery-modal-primary {
    background: var(--primary-gradient-simple);
    border: none;
    color: var(--text-white);
}

#breweryBeerModal .brewery-modal-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    color: var(--text-purple);
}

#breweryBeerModal .brewery-modal-danger {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    color: var(--red);
}

#breweryBeerModal .brewery-modal-primary:disabled,
#breweryBeerModal .brewery-modal-danger:disabled {
    opacity: 0.6;
    cursor: default;
}

#breweryBeerModal .brewery-modal-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryBeerModal .brewery-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

#breweryBeerModal .brewery-field-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#breweryBeerModal .brewery-field-input {
    width: 100%;
    min-height: 44px;
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-section);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

#breweryBeerModal .brewery-field-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.1);
}

#breweryBeerModal .brewery-field-input::placeholder {
    color: var(--text-muted);
}

#breweryBeerModal .brewery-field-textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.5;
}

#breweryBeerModal .brewery-field-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryBeerModal .brewery-section-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

#breweryBeerModal .brewery-field-row {
    display: flex;
    gap: var(--space-md);
}

#breweryBeerModal .brewery-field-grow {
    flex: 2;
    min-width: 0;
}

#breweryBeerModal .brewery-field-abv {
    flex: 1;
    min-width: 0;
}

/* Pick-one control: a row of buttons, the chosen one filled in. */
#breweryBeerModal .brewery-seg {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background: var(--bg-muted);
    border-radius: var(--radius);
}

#breweryBeerModal .brewery-seg-btn {
    flex: 1;
    min-height: 44px;
    padding: var(--space-sm);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: all var(--transition-fast);
}

#breweryBeerModal .brewery-seg-btn.active {
    background: var(--primary-gradient-simple);
    color: var(--text-white);
}

#breweryBeerModal .brewery-beer-locked {
    padding: var(--space-md);
    background: var(--bg-red);
    border: 1px solid var(--border-red);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: var(--text-sm);
    line-height: 1.5;
}

#breweryBeerModal .brewery-beer-problems {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--modal-line);
}

#breweryBeerModal .brewery-problem-btn {
    width: 100%;
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

#breweryBeerModal .brewery-problem-btn-danger {
    border-color: var(--border-red);
    color: var(--red);
}

#breweryBeerModal .brewery-duplicate-picker {
    display: flex;
    gap: var(--space-sm);
}

#breweryBeerModal .brewery-problem-send {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 var(--space-lg);
    background: var(--primary-gradient-simple);
    border: none;
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}


/* ================================================================================
   #breweryNotGfModal - the check before marking a beer not gluten-free
   ================================================================================ */
#breweryNotGfModal .brewery-modal-content {
    width: min(92%, 460px);
}

#breweryNotGfModal .brewery-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-circle);
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: var(--text-md);
    font-family: inherit;
    cursor: pointer;
    z-index: 2;
}

#breweryNotGfModal .brewery-modal-header {
    padding: var(--space-lg) calc(var(--space-lg) + 52px) var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--modal-line);
    flex-shrink: 0;
}

#breweryNotGfModal .brewery-modal-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

#breweryNotGfModal .brewery-modal-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xxs);
}

#breweryNotGfModal .brewery-modal-sub:empty {
    display: none;
}

#breweryNotGfModal .brewery-modal-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

#breweryNotGfModal .brewery-modal-intro {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

#breweryNotGfModal .brewery-modal-footer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--modal-line);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex-shrink: 0;
}

#breweryNotGfModal .brewery-modal-footer:empty {
    display: none;
}

#breweryNotGfModal .brewery-modal-primary,
#breweryNotGfModal .brewery-modal-secondary,
#breweryNotGfModal .brewery-modal-danger {
    width: 100%;
    min-height: 46px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: var(--text-md);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

#breweryNotGfModal .brewery-modal-primary {
    background: var(--primary-gradient-simple);
    border: none;
    color: var(--text-white);
}

#breweryNotGfModal .brewery-modal-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    color: var(--text-purple);
}

#breweryNotGfModal .brewery-modal-danger {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    color: var(--red);
}

#breweryNotGfModal .brewery-modal-primary:disabled,
#breweryNotGfModal .brewery-modal-danger:disabled {
    opacity: 0.6;
    cursor: default;
}

#breweryNotGfModal .brewery-modal-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryNotGfModal .brewery-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

#breweryNotGfModal .brewery-field-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#breweryNotGfModal .brewery-field-input {
    width: 100%;
    min-height: 44px;
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-section);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

#breweryNotGfModal .brewery-field-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.1);
}

#breweryNotGfModal .brewery-field-input::placeholder {
    color: var(--text-muted);
}

#breweryNotGfModal .brewery-field-textarea {
    resize: vertical;
    min-height: 84px;
    line-height: 1.5;
}

#breweryNotGfModal .brewery-field-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryNotGfModal .brewery-notgf-warning {
    padding: var(--space-md);
    background: var(--bg-red);
    border: 1px solid var(--border-red);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
}


/* ================================================================================
   #breweryPartnerModal - "Become a partner": the prices, then Stripe
   ================================================================================ */
#breweryPartnerModal .brewery-modal-content {
    width: min(92%, 460px);
}

#breweryPartnerModal .brewery-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-circle);
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: var(--text-md);
    font-family: inherit;
    cursor: pointer;
    z-index: 2;
}

#breweryPartnerModal .brewery-modal-header {
    padding: var(--space-lg) calc(var(--space-lg) + 52px) var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--modal-line);
    flex-shrink: 0;
}

#breweryPartnerModal .brewery-modal-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

#breweryPartnerModal .brewery-modal-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-xxs);
}

#breweryPartnerModal .brewery-modal-sub:empty {
    display: none;
}

#breweryPartnerModal .brewery-modal-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

#breweryPartnerModal .brewery-modal-intro {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

#breweryPartnerModal .brewery-modal-footer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--modal-line);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex-shrink: 0;
}

#breweryPartnerModal .brewery-modal-footer:empty {
    display: none;
}

#breweryPartnerModal .brewery-modal-primary,
#breweryPartnerModal .brewery-modal-secondary {
    width: 100%;
    min-height: 46px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: var(--text-md);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

#breweryPartnerModal .brewery-modal-primary {
    background: var(--primary-gradient-simple);
    border: none;
    color: var(--text-white);
}

#breweryPartnerModal .brewery-modal-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    color: var(--text-purple);
}

#breweryPartnerModal .brewery-modal-primary:disabled,
#breweryPartnerModal .brewery-modal-secondary:disabled {
    opacity: 0.6;
    cursor: default;
}

#breweryPartnerModal .brewery-modal-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#breweryPartnerModal .brewery-partner-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#breweryPartnerModal .brewery-partner-item {
    padding: var(--space-md);
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

#breweryPartnerModal .brewery-partner-item-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-primary);
}

#breweryPartnerModal .brewery-partner-item-text {
    margin-top: var(--space-xxs);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.45;
}

#breweryPartnerModal .brewery-partner-when {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-amber);
    border: 1px solid var(--border-amber);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.45;
}

#breweryPartnerModal .brewery-partner-when strong {
    color: var(--amber);
}

#breweryPartnerModal .brewery-partner-loading {
    padding: var(--space-xl) 0;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* "Save £29.89", inside the yearly button. */
#breweryPartnerModal .brewery-partner-saving {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    opacity: 0.85;
}


/* ================================================================================
   #adminBreweryClaimsOverlay - admins only: approve requests, create claim links
   Markup: brewery-owner.html. Logic: features/admin.js.
   ================================================================================ */
#adminBreweryClaimsOverlay .admin-brewery-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

#adminBreweryClaimsOverlay .admin-brewery-title {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
}

#adminBreweryClaimsOverlay .admin-brewery-count {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

#adminBreweryClaimsOverlay .admin-brewery-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-lg);
    box-sizing: border-box;
}

#adminBreweryClaimsOverlay .admin-brewery-section-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

#adminBreweryClaimsOverlay .admin-brewery-help {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

#adminBreweryClaimsOverlay .admin-brewery-loading,
#adminBreweryClaimsOverlay .admin-brewery-empty {
    padding: var(--space-lg);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

#adminBreweryClaimsOverlay .admin-brewery-list,
#adminBreweryClaimsOverlay .admin-brewery-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

#adminBreweryClaimsOverlay .admin-brewery-card,
#adminBreweryClaimsOverlay .admin-brewery-result {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

#adminBreweryClaimsOverlay .admin-brewery-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

#adminBreweryClaimsOverlay .admin-brewery-name {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    min-width: 0;
}

#adminBreweryClaimsOverlay .admin-brewery-line {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* A search result that is picked by tapping it (the taproom link form). */
#adminBreweryClaimsOverlay .admin-taproom-pick {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxs);
    width: 100%;
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

#adminBreweryClaimsOverlay .admin-taproom-pick-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
}

#adminBreweryClaimsOverlay .admin-taproom-pick-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

#adminBreweryClaimsOverlay .admin-taproom-partner {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#adminBreweryClaimsOverlay .admin-brewery-claimed {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

#adminBreweryClaimsOverlay .admin-brewery-field-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

#adminBreweryClaimsOverlay .admin-brewery-input {
    width: 100%;
    min-height: 44px;
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-section);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    box-sizing: border-box;
}

#adminBreweryClaimsOverlay .admin-brewery-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.1);
}

#adminBreweryClaimsOverlay .admin-brewery-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-green);
    border: 1px solid var(--border-green);
    border-radius: var(--radius);
}

#adminBreweryClaimsOverlay .admin-brewery-link-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

#adminBreweryClaimsOverlay .admin-brewery-link-row {
    display: flex;
    gap: var(--space-sm);
}

#adminBreweryClaimsOverlay .admin-brewery-link-url {
    flex: 1;
    min-width: 0;
    background: var(--bg-input);
}

#adminBreweryClaimsOverlay .admin-brewery-actions {
    display: flex;
    gap: var(--space-sm);
}

#adminBreweryClaimsOverlay .admin-brewery-btn {
    min-height: 44px;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

#adminBreweryClaimsOverlay .admin-brewery-actions .admin-brewery-btn {
    flex: 1;
}

#adminBreweryClaimsOverlay .admin-brewery-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

#adminBreweryClaimsOverlay .admin-brewery-btn-approve,
#adminBreweryClaimsOverlay .admin-brewery-btn-copy {
    background: var(--primary-gradient-simple);
    border: none;
    color: var(--text-white);
}

#adminBreweryClaimsOverlay .admin-brewery-btn-copy {
    flex-shrink: 0;
}

#adminBreweryClaimsOverlay .admin-brewery-btn-reject {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    color: var(--red);
}

#adminBreweryClaimsOverlay .admin-brewery-btn-link {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    color: var(--text-purple);
}

/* "Send a link instead": closed until asked for, so one-tap Approve is the
   obvious route and the careful one stays out of the way. */
#adminBreweryClaimsOverlay .admin-brewery-careful-toggle {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-purple);
    cursor: pointer;
}

#adminBreweryClaimsOverlay .admin-brewery-careful-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-xs);
}
