/* ================================================================
   FILENAME DELIBERATELY STILL MISSPELLED ("Marketting", double t).
   The component, its resx set and its Designer class were renamed to
   MarketingCampaigns on 2026-09-22 to match v3.0.2 (Kelly's call:
   "rename everything except the CSS file"). This one file keeps the
   old name because it is linked by filename from FCApp.Web/Components/
   App.razor and FCApp/wwwroot/index.html, and both hosts are DO NOT
   TOUCH under MOCKDATA-RULES. Renaming it means changing those two
   <link> tags in the same commit — that is a dev-team port step.
   ================================================================
   MarkettingCampaigns.css — Home hero campaign carousel (ported from
   reference Home.css hero block). Native CSS scroll-snap track (no
   MudCarousel): horizontal swipe on touch devices, vertical scroll
   hands off to the page. Driven by Js/FcHero.js (dots sync +
   auto-cycle). Tokens only.
   The "Location set button" section is kept — SetLocationDrawer.razor
   consumes those classes.
   ================================================================ */

/* ── Location set button (used by SetLocationDrawer) ────────── */
.setlocation-container {
  display: flex;
  padding: 0 var(--space-2) var(--space-2) var(--space-2);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  align-self: stretch;
}

.setlocationBtn {
  display: flex;
  min-width: 64px;
  min-height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-primary);
  align-items: center;
  gap: var(--space-1);
  justify-content: start;
  width: 100%;
}

.setlocationbtn_text {
  color: var(--color-surface-default);
  text-align: center;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--text-action-md-size);
  overflow: hidden;
  line-height: var(--text-action-md-lh);
  letter-spacing: 0.2px;
}

.location_btn_cls {
  display: flex;
  flex-direction: row;
  gap: var(--space-1);
  align-items: center;
  cursor: pointer;
  /* Strip the UA button chrome (the reference renders this as a real <button>). */
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  /* Hover tint, ported from the reference .fc-loc-btn: the padding gives the tint some body and
     the equal negative left margin cancels it, so the label does not shift position. */
  padding: 6px var(--space-1);
  margin-left: calc(var(--space-1) * -1);
  border-radius: var(--radius-full);
  transition: background-color 0.15s ease;
}
.location_btn_cls:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.setlocation_location_arrow {
  color: var(--color-surface-default);
  font-size: var(--text-action-md-size);
}

.setlocation_down_arrow {
  color: var(--color-surface-default);
  font-size: 14px;
  font-weight: var(--fw-bold);
}

.location-arrow-icon {
  color: var(--color-surface-default);
  font-size: var(--text-label-md-size);
  font-weight: 300;
  line-height: normal;
}

.setlocationtxt {
  color: var(--color-surface-default);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-label-md-size);
  font-weight: var(--fw-bold);
  line-height: var(--text-label-md-lh);
  letter-spacing: 0.2px;
}

/* ── Hero band ──────────────────────────────────────────────── */
.fc-home-hero {
    background-color: var(--color-topbar-bg);
}
/* Scroll-snap campaign track — horizontal swipe; vertical passes to the page.
   Replaces MudCarousel (which forced a fixed height + empty gap). Scrollbar hidden; dots navigate. */
.fc-home-hero-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    /* pan-x pan-y: BOTH a horizontal finger-swipe (moves the carousel) AND a vertical drag (scrolls
       the page) work — the browser locks to the dominant gesture direction. (pan-x alone had blocked
       vertical page scroll over the hero; pan-y alone had blocked the horizontal swipe.) The 5s
       auto-cycle + dot taps advance the carousel programmatically, unaffected by touch-action. */
    touch-action: pan-x pan-y;
    scrollbar-width: none;                          /* Firefox */
    background-color: var(--color-topbar-bg);
}
.fc-home-hero-scroll::-webkit-scrollbar { display: none; }   /* WebKit */
/* Each campaign fills the track width and snaps to its start edge (one campaign per swipe). */
.fc-home-hero-slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}
/* Inner row is capped to the 1280 container so its left edge aligns with the nav. */
.fc-home-hero-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-2) var(--space-2) 0;
    box-sizing: border-box;
}
.fc-home-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.fc-home-hero-titles { display: flex; flex-direction: column; gap: var(--space-1); }
.fc-home-hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-display-lg-size);
    line-height: var(--text-display-lg-lh);
    font-weight: var(--fw-xbold);
    color: var(--color-surface-default);
    margin: 0;
}
.fc-home-hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-body-md-size);
    line-height: var(--text-body-md-lh);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}
/* Primary button per the Momento Large spec: 56px tall, 16px radius, 16px h-padding, brand-accent,
   white bold 16px, no shadow (PressFeedback.css strips MudBlazor's elevation).
   Width stays contextual — auto on desktop (align-self:flex-start), full-width on mobile. */
.fc-home-hero-cta.mud-button-root {
    align-self: flex-start;
    height: 56px;
    min-height: 56px;
    box-sizing: border-box;
    align-items: center;
    padding: 0 var(--space-2);
    background-color: var(--color-brand-accent);
    color: var(--color-surface-default);
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-size: var(--text-action-md-size);
    font-weight: var(--fw-bold);
    line-height: var(--text-action-md-lh);
    letter-spacing: 0.2px;
    text-transform: none;
}
.fc-home-hero-cta-icon { margin-left: var(--space-1); font-size: 16px; }
/* Desktop shows the CTA inside the text column; the mobile (below-image) CTA is hidden here. */
.fc-home-hero-cta--mobile.mud-button-root { display: none; }
.fc-home-hero-media {
    width: 370px;
    flex-shrink: 0;
    aspect-ratio: 370 / 300;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.fc-home-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Carousel dots — white pills (active 24×12, inactive 12×12 @ 45% opacity). */
/* Control row: ‹ prev · n / total · next › and the pause latch. Replaced the dot row 2026-08-21
   (reference) — the counter states position AND count, which dots only implied. Same container
   geometry as the dots had, so the hero's vertical rhythm is unchanged. */
.fc-home-hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2) 0 var(--space-4);
    background-color: var(--color-topbar-bg);
}

/* Prev/next. 24x24 like the pause control beside them — the one size in this row that meets
   WCAG 2.2 AA 2.5.8 Target Size, which the 12px dots did not. Chevrons inherit currentColor. */
.fc-home-hero-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-surface-default);
    opacity: 0.45;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.fc-home-hero-nav:hover,
.fc-home-hero-nav:focus-visible { opacity: 1; }

/* "2 / 3" — the current number is full strength, the total sits back at the same 45% as the
   chevrons so the eye lands on position first. tabular-nums keeps the row from shifting as the
   digits change. */
.fc-home-hero-counter {
    margin: 0;
    min-width: 4ch;
    text-align: center;
    color: var(--color-surface-default);
    font-family: var(--font-body);
    font-size: var(--text-label-md-size);
    font-weight: var(--fw-bold);
    font-variant-numeric: tabular-nums;
    opacity: 0.45;
}
.fc-home-hero-counter #carousel_counter_current { opacity: 1; }

/* ── Carousel pause/play control (WCAG 2.2.2) — sits in the dots row, left of the dots ── */
.fc-home-hero-playpause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: var(--space-1);
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-surface-default);
    font-size: 11px;
    line-height: 1;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.fc-home-hero-playpause:hover,
.fc-home-hero-playpause[aria-pressed="true"] {
    opacity: 1;
    background: rgba(255, 255, 255, 0.16);
}

/* The ring itself comes from Accessibility.css: a 2px border in the button's own colour, which
   is white here, so it shows on the brand-blue row (Kelly, 2026-09-28). */
.fc-home-hero-playpause:focus-visible {
    opacity: 1;
}

/* ── Legacy indicator classes (still used by ItemDetails carousel) ── */
.custom-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  padding-bottom: var(--space-2);
}

.campaign-custom-bullet {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 100px;
  opacity: 0.5;
  background: var(--color-surface-default);
}

.campaign-custom-bullet.active {
  width: 24px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 100px;
  background: var(--color-surface-default);
  opacity: 1;
}

/* Legacy carousel-item class (still used by ItemDetails carousel) */
.campaign-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* ── Responsive: phones + tablets (< 1024px) ──
   Campaigns stack (image below the text) and the CTA moves below the image.
   The track stays a HORIZONTAL scroll-snap carousel — swipe left/right to toggle. */
@media (max-width: 1023px) {
    .fc-home-hero-inner { flex-direction: column; align-items: stretch; }
    .fc-home-hero-media { width: 100%; max-width: 260px; margin: 0 auto; }
    /* Phone/tablet: hide the in-column CTA, show the full-width CTA below the image. */
    .fc-home-hero-cta--desktop.mud-button-root { display: none; }
    .fc-home-hero-cta--mobile.mud-button-root { display: inline-flex; align-self: stretch; justify-content: center; width: 100%; }
}

/* ================================================================
   SetLocation.css — Set Location bottom sheet (ported from reference
   Stores.css fc-setloc block + SearchableDropdown.css). Tokens only.
   Hosted in the existing bottom MudDrawer (custom-bottom-drawer).
   ================================================================ */

/* .fc-setloc is the MudDialog Class (max-width from app.css); content lives in the
   title/content/actions slots, which app.css pads to 16px — no wrapper padding here. */
.fc-setloc-head { display: flex; align-items: center; justify-content: space-between; }
.fc-setloc-head-title { display: flex; align-items: center; gap: var(--space-1); }
.fc-setloc-head-icon { font-size: 20px; color: var(--color-text-primary); }
.fc-setloc-title { font-family: var(--font-heading); font-size: var(--text-heading-sm-size); font-weight: var(--fw-bold); color: var(--color-text-primary); }
.fc-setloc-current { display: flex; align-items: center; justify-content: center; gap: var(--space-1); width: 100%; height: 56px; padding: 0 var(--space-2); box-sizing: border-box; margin-bottom: var(--space-2); background: var(--color-surface-default); border: 1.5px solid var(--color-brand-primary); border-radius: var(--radius-lg); color: var(--color-brand-primary); font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--text-body-md-size); cursor: pointer; }
.fc-setloc-or { display: flex; align-items: center; text-align: center; color: var(--color-brand-primary); margin-bottom: var(--space-2); font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--text-label-md-size); }
.fc-setloc-or::before, .fc-setloc-or::after { content: ""; flex: 1; border-top: 1px solid var(--color-border); }
.fc-setloc-or span { padding: 0 var(--space-1); }
.fc-setloc-field { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-2); }
.fc-setloc-label { font-family: var(--font-body); font-size: var(--text-label-md-size); font-weight: var(--fw-bold); color: var(--color-text-primary); }

/* Action row — full-width Apply (red) / Close (blue outline), matching the reference. */
.fc-setloc .mud-dialog-actions { display: flex; gap: var(--space-1); flex-wrap: wrap; }
/* Button Row: two EXACTLY equal columns, 8px apart, spanning the actions row. GRID rather than
   `flex: 1` — with flex the outlined button's border escapes the free-space split and the pair
   measured 319/321 instead of an even halving. `flex: 1` on the wrapper makes it span
   .mud-dialog-actions, which is itself a flex row justified to flex-end. */
.fc-setloc-footer { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); flex: 1; }
.fc-setloc-apply, .fc-setloc-close { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); width: 100%; min-width: 0; height: 56px; padding: 0 var(--space-2); box-sizing: border-box; border-radius: var(--radius-lg); font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--text-action-md-size); cursor: pointer; }
.fc-setloc-apply { background: var(--color-brand-accent); color: var(--color-surface-default); border: none; }
.fc-setloc-apply:disabled { opacity: 0.5; cursor: not-allowed; }
/* 1.5px, not 1px: the app's canonical Secondary border is 1.5px, and this button's own sibling
   .fc-setloc-current above sits at 1.5px. Colour deliberately unchanged. */
.fc-setloc-close { background: transparent; color: var(--color-brand-primary); border: 1.5px solid var(--color-brand-primary); }

/* Radius row (approved mock): label left · compact dropdown right · synced slider below. */
.fc-setloc-radius-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); }
.fc-setloc-radius-select { height: 40px; padding: 0 var(--space-4) 0 var(--space-2); background: var(--color-surface-default); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--text-label-md-size); color: var(--color-brand-primary); cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23004FAA' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }
/* The slider's filled-to-thumb track comes from an inline linear-gradient set by the component. */
.fc-setloc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: var(--space-1) 0 0; border-radius: var(--radius-full); outline-offset: 4px; cursor: pointer; }
.fc-setloc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--color-surface-default); border: 3px solid var(--color-brand-primary); box-shadow: var(--elevation-sm); }
.fc-setloc-slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--color-surface-default); border: 3px solid var(--color-brand-primary); box-shadow: var(--elevation-sm); }

/* Validation message under the radius row */
.fc-setloc-error { font-family: var(--font-body); font-size: var(--text-label-md-size); color: var(--color-error); }

/* ── City/store autocomplete field (reference SearchableDropdown visuals) ── */
.fc-dropdown { position: relative; }
.fc-dropdown-control {
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 var(--space-2);
    background: var(--color-surface-default);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}
.fc-dropdown-control--open { border-color: var(--color-brand-primary); }
.fc-dropdown-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--text-body-md-size);
    color: var(--color-text-primary);
    cursor: text;
}
.fc-dropdown-input::placeholder { color: var(--color-text-muted); opacity: 1; }
.fc-dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 50;
    margin-top: 4px;
    background: var(--color-surface-default);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-height: 220px;
    overflow-y: auto;
    box-shadow: var(--elevation-md, 0 4px 12px rgba(0, 0, 0, 0.12));
}
.fc-dropdown-empty {
    padding: var(--space-1) var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-label-md-size);
    color: var(--color-text-muted);
}
.fc-dropdown-option {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-1);
    width: 100%;
    text-align: left;
    padding: var(--space-1) var(--space-2);
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-body-md-size);
    color: var(--color-text-primary);
}
.fc-dropdown-option:last-child { border-bottom: none; }
.fc-dropdown-option:hover { background: var(--color-surface-subtle); }
.fc-dropdown-option-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-half);
    min-width: 0;
}
.fc-dropdown-option-title { line-height: 1.25; }

/* Mobile: shrink the Set Location action buttons' text so "Apply Changes" / "Close" stay on one
   line inside the half-width buttons (they wrapped to two lines at the desktop 16px size). */
@media (max-width: 600px) {
  .fc-setloc-apply, .fc-setloc-close {
    font-size: var(--text-label-md-size);
    white-space: nowrap;
  }
}
