/* ==========================================================================
   RIFF'S DEPARTMENT STORE
   Custom styles for a mobile-first, accessible site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --c-brand: #EB1B21;
  --c-brand-dark: #C3161C;
  --c-brand-light: #fff5f5;
  --c-ink: #111827;
  --c-muted: #4b5563;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #fff;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Top Banner
   -------------------------------------------------------------------------- */
.top-banner {
  background: var(--c-brand);
  color: white;
  text-align: center;
  padding: 0.5rem 0;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .top-banner {
    font-size: 0.875rem;
    padding: 0.625rem 0;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #f3f4f6;
}

/* --------------------------------------------------------------------------
   Default Hero
   -------------------------------------------------------------------------- */
.default-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(235, 27, 33, 0.06), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-bottom: 1px solid #eef2f7;
}

.default-hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-height: clamp(31rem, 68vh, 43rem);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.default-hero-copy {
  min-width: 0;
  text-align: center;
}

.hero-kicker {
  margin-bottom: 0.95rem;
  color: var(--c-brand);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.default-hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  color: var(--c-ink);
  font-size: clamp(2.7rem, 11vw, 4rem);
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  color: var(--c-muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.75;
}

.hero-actions {
  display: grid;
  gap: 0.8rem;
  max-width: 28rem;
  margin: 2rem auto 0;
}

.hero-actions .btn {
  width: 100%;
  text-align: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 36rem;
  margin: 2rem auto 0;
}

.hero-stats div {
  min-width: 0;
  padding: 0.9rem 0.5rem;
  border-top: 3px solid var(--c-brand);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hero-stats dt {
  color: var(--c-brand);
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin-top: 0.35rem;
  color: var(--c-muted);
  font-size: clamp(0.72rem, 2vw, 0.86rem);
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.default-hero-brand {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-width: 0;
  width: min(100%, 34rem);
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.default-hero-brand img {
  display: block;
  width: 100%;
  aspect-ratio: 3012 / 1800;
  object-fit: cover;
}

.default-hero-brand p {
  padding: 0 1.25rem 1.4rem;
  color: var(--c-ink);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 900;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-actions {
    display: flex;
    justify-content: center;
    max-width: none;
  }

  .hero-actions .btn {
    width: auto;
  }
}

@media (max-width: 639px) {
  .default-hero-inner {
    gap: 1.75rem;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-actions,
  .hero-stats {
    margin-top: 1.5rem;
  }

  .default-hero-brand {
    max-width: 20rem;
  }
}

@media (min-width: 1024px) {
  .default-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
    gap: 4rem;
  }

  .default-hero-copy {
    text-align: left;
  }

  .default-hero h1 {
    font-size: clamp(4rem, 7vw, 6.5rem);
  }

  .default-hero h1,
  .hero-lead,
  .hero-actions,
  .hero-stats {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

/* Preserve editorial image proportions at every breakpoint. */
.challenge-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1180 / 702;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   Map & Store Locator
   -------------------------------------------------------------------------- */
.store-controls {
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.store-select {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid #e5e7eb;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.store-select:focus,
.store-select:hover {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-light);
  outline: none;
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.map-actions button {
  min-height: 2.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 800;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.map-actions button:hover,
.map-actions button:focus-visible {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: var(--c-brand-light);
  transform: translateY(-1px);
}

.map-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.location-privacy {
  max-width: 42rem;
  margin: -0.75rem auto 1.25rem;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.55;
}

.store-map {
  height: 18rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.store-info {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.store-info-inner {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.store-info h3 {
  color: var(--c-brand);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
}

.store-detail-grid {
  display: grid;
  gap: 0.8rem;
}

.store-detail-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-info-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.store-info-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.store-info-actions a:first-child {
  background: var(--c-brand);
  color: #fff;
}

.store-info-actions a:last-child {
  border: 2px solid var(--c-brand);
  color: var(--c-brand);
}

.map-status {
  min-height: 1.5rem;
  max-width: 48rem;
  margin: 0.9rem auto 0;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.map-load-error {
  display: grid;
  position: absolute;
  inset: 0;
  z-index: 10;
  place-items: center;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  color: var(--c-muted);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 640px) {
  .store-controls {
    grid-template-columns: minmax(16rem, 1fr) auto;
    align-items: center;
  }

  .map-actions {
    grid-template-columns: repeat(2, auto);
  }

  .map-actions button {
    padding: 0 1rem;
  }

  .store-map {
    height: 26rem;
  }

  .store-info {
    padding: 1.6rem;
  }

  .store-info-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .store-map {
    height: 32rem;
  }
}

/* Button accessibility improvements */
.btn:focus-visible, .button:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--c-brand-light);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  background: var(--c-brand);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--c-brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  border: 2px solid var(--c-brand);
  background: #fff;
  color: var(--c-brand);
}

.btn-secondary:hover {
  background: var(--c-brand);
  color: #fff;
}

@media (min-width: 640px) {
  .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
  }
}

/* Keep important content visible even when observers or scripts load late. */
.fade-in,
.fade-in.visible {
  opacity: 1;
  transform: none;
  transition: none;
}

/* --------------------------------------------------------------------------
   Custom Map Marker Pulse
   -------------------------------------------------------------------------- */
@keyframes pulse-marker {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.custom-riff-marker.active svg {
  animation: pulse-marker 0.8s ease-out;
}

/* --------------------------------------------------------------------------
   Locations List Transition
   -------------------------------------------------------------------------- */
#locations-list {
  transition: max-height 0.7s ease-in-out;
}

/* --------------------------------------------------------------------------
   Legal Page (prose)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 1.1rem;
  line-height: 1.9;
}

.prose h2 {
  font-size: 2.2rem;
  color: var(--c-brand);
  text-align: center;
  margin: 3rem 0 1.5rem;
}

.prose h3 {
  font-size: 1.6rem;
  color: #111827;
  border-bottom: 3px solid var(--c-brand);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
}

.prose h4 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: #1f2937;
}

.prose ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.prose li {
  margin: 0.5rem 0;
}

.prose a {
  color: var(--c-brand);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--c-brand-dark);
}

.legal-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  border-bottom: 1px solid #fee2e2;
  text-align: center;
}

.legal-kicker {
  margin-bottom: 1rem;
  color: var(--c-brand);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  color: #111827;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
}

.legal-hero p {
  max-width: 48rem;
  margin: 1.25rem auto 0;
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.8;
}

.legal-layout {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 0.25rem;
}

.legal-nav a {
  flex: 1 1 calc(50% - 0.6rem);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  color: #374151;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: var(--c-brand-light);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.legal-content section:first-child {
  padding-top: 0;
}

.legal-content section:last-child {
  border-bottom: 0;
}

.legal-content h2 {
  margin-bottom: 1rem;
  color: var(--c-brand);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
}

.legal-content h3 {
  margin: 1.6rem 0 0.65rem;
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.85;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content li {
  margin: 0.55rem 0;
}

.legal-content a {
  color: var(--c-brand);
  font-weight: 800;
  text-decoration: underline;
}

.legal-content address {
  margin-top: 1rem;
  font-style: normal;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
    padding-top: 4rem;
  }

  .legal-nav {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .legal-nav a {
    flex: initial;
    border-radius: 8px;
  }
}

/* --------------------------------------------------------------------------
   404 Page Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.button-primary {
  background: var(--c-brand);
  color: white;
}

.button-primary:hover {
  background: var(--c-brand-dark);
  transform: translateY(-2px);
}

.button-secondary {
  background: white;
  color: var(--c-brand);
  border: 2px solid var(--c-brand);
}

.button-secondary:hover {
  background: var(--c-brand-light);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Department & FAQ Sections
   -------------------------------------------------------------------------- */
.department-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.department-card,
.faq-list details {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.department-card {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.department-card:hover {
  border-color: rgba(235, 27, 33, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.department-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background: var(--c-brand-light);
  color: var(--c-brand);
}

.department-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.department-card summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
}

.department-card summary::-webkit-details-marker {
  display: none;
}

.department-card summary::after {
  content: "+";
  margin-left: auto;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 900;
}

.department-card[open] summary::after {
  content: "";
  width: 0.85rem;
  height: 0.18rem;
  border-radius: 999px;
  background: #111827;
}

.department-card summary span:last-child {
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
}

.department-card p {
  padding: 0 1rem 1.1rem 4.6rem;
  color: #4b5563;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-list details:hover {
  border-color: rgba(235, 27, 33, 0.28);
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 1rem 1.1rem;
  color: #111827;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.faq-list summary:hover::after,
.faq-list summary:focus-visible::after {
  color: var(--c-brand);
}

.faq-list details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-list p {
  margin: 0;
  padding: 0 3.6rem 1.1rem 1.1rem;
  color: #4b5563;
  line-height: 1.7;
}

.faq-list a {
  color: var(--c-brand);
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .faq-list details {
    padding: 1.35rem;
  }

  .faq-list summary {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 0;
    cursor: default;
    pointer-events: none;
  }

  .faq-list summary::after,
  .faq-list details[open] summary::after {
    content: none;
  }

  .faq-list p {
    display: block;
    padding: 0;
    margin-top: 0.75rem;
  }
}

@media (min-width: 640px) {
  .department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .department-card p {
    padding-right: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .department-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .department-card {
    padding: 1.35rem;
  }

  .department-card summary {
    display: grid;
    min-height: auto;
    padding: 0;
    cursor: default;
    pointer-events: none;
  }

  .department-card summary::after {
    content: none;
  }

  .department-card[open] summary::after {
    content: none;
  }

  .department-card p {
    display: block;
    padding: 0;
    margin-top: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.newsletter-section {
  padding: 2.75rem 0;
  background: var(--c-brand);
}

.newsletter-actions {
  display: grid;
  gap: 0.75rem;
  max-width: 26rem;
  margin: 0 auto;
}

.newsletter-primary,
.newsletter-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.newsletter-primary {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--c-brand);
  box-shadow: var(--shadow-md);
}

.newsletter-primary:hover,
.newsletter-primary:focus-visible {
  background: #f9fafb;
  transform: translateY(-1px);
}

.newsletter-primary:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.newsletter-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.newsletter-secondary:hover,
.newsletter-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.25);
}

.newsletter-status {
  min-height: 1.25rem;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
}

.newsletter-fallback {
  display: inline-flex;
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
}

.newsletter-fallback[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Accessible contact and newsletter previews
   -------------------------------------------------------------------------- */
body.dialog-open {
  overflow: hidden;
}

.site-dialog {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.site-dialog[hidden] {
  display: none;
}

.site-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(3px);
}

.site-dialog-panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  text-align: left;
}

.site-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.site-dialog-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.site-dialog-kicker {
  margin: 0 3rem 0.6rem 0;
  color: var(--c-brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-dialog h2 {
  margin: 0 3rem 0.8rem 0;
  color: #111827;
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
}

.site-dialog-panel > p:not(.site-dialog-kicker) {
  color: #4b5563;
  line-height: 1.65;
}

.contact-email-preview {
  display: block;
  margin: 1.25rem 0;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 1rem;
  background: var(--c-brand-light);
  color: var(--c-brand);
  font-size: clamp(1.1rem, 5vw, 1.35rem);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-dialog-note {
  margin-top: 0.85rem;
  font-size: 0.84rem;
}

.site-dialog-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.site-dialog-primary,
.site-dialog-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-weight: 900;
  text-align: center;
}

.site-dialog-primary {
  border: 2px solid var(--c-brand);
  background: var(--c-brand);
  color: #fff;
}

.site-dialog-primary:hover {
  background: var(--c-brand-dark);
  border-color: var(--c-brand-dark);
}

.site-dialog-secondary {
  border: 2px solid #d1d5db;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.newsletter-loader {
  width: 2.5rem;
  height: 2.5rem;
  margin: 1.25rem auto;
  border: 4px solid #fee2e2;
  border-top-color: var(--c-brand);
  border-radius: 999px;
  animation: newsletter-spin 0.8s linear infinite;
}

.newsletter-loader[hidden] {
  display: none;
}

.newsletter-dialog-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.25rem;
  border: 2px solid var(--c-brand);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--c-brand);
  font-weight: 900;
  text-align: center;
}

.newsletter-dialog-fallback[hidden] {
  display: none;
}

@keyframes newsletter-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-loader {
    animation-duration: 1.8s;
  }
}

@media (min-width: 480px) {
  .site-dialog-panel {
    padding: 2rem;
  }

  .site-dialog-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.newsletter-consent {
  max-width: 34rem;
  margin: 0.8rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.6;
}

.newsletter-consent a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

#PopupSignupForm_0,
.mc-modal,
.mc-banner {
  z-index: 70 !important;
}

#PopupSignupForm_0 iframe,
.mc-modal iframe {
  width: min(92vw, 30rem) !important;
  max-width: 100% !important;
  max-height: 84vh !important;
  border-radius: 8px !important;
}

.mc-banner {
  right: auto !important;
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  width: min(calc(100vw - 2rem), 30rem) !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22) !important;
  transform: translateX(-50%) !important;
}

@media (min-width: 640px) {
  .newsletter-section {
    padding: 3.25rem 0;
  }

  .newsletter-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 34rem;
  }
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .top-banner,
  header,
  #store-map,
  #map-loading,
  #map-touch-overlay,
  footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  a {
    text-decoration: none;
    color: black;
  }
}
