/* ========================================================
   Allrecipes Design System — Pixel-Perfect & Edge-to-Edge
   - Zero emojis: 100% clean, crisp SVG icons everywhere
   - Full space utilization: No empty spaces or awkward blank margins
   - True horizontal carousel for MyRecipes dishes (fills 100% width or scrolls smoothly)
   - Expanded container width (up to 1600px) with generous fluid layout
   - Allrecipes exact branding (#d84315 / #e24a1f) with golden spoon logo
   ======================================================== */

/* Smooth anchor scrolling with sticky header offset */
html {
  scroll-behavior: smooth;
}

section[id], aside[id], div[id$="Section"] {
  scroll-margin-top: 85px;
}

:root {
  /* Brand Palette */
  --ar-orange: #d84315;
  --ar-orange-bright: #e24a1f;
  --ar-orange-hover: #bf360c;
  --ar-orange-light: #fff5f0;
  --ar-orange-border: #ffd8c7;
  --ar-yellow-badge: #fbbf24;

  /* Trust Blue */
  --ar-blue-trust: #134074;
  --ar-blue-trust-dark: #0d2847;

  /* MyRecipes Pink & Mint */
  --ar-myrecipes-pink: #d91b5c;
  --ar-mint-bg: #f4f6ee;
  --ar-mint-border: #e2e6d6;

  /* Accents & Status */
  --ar-gold: #f59e0b;
  --ar-green: #15803d;
  --ar-green-light: #dcfce7;
  --ar-blue: #0284c7;

  /* Neutrals */
  --ar-black: #111827;
  --ar-charcoal: #222222;
  --ar-gray-800: #1f2937;
  --ar-gray-700: #374151;
  --ar-gray-600: #4b5563;
  --ar-gray-500: #6b7280;
  --ar-gray-400: #9ca3af;
  --ar-gray-300: #d1d5db;
  --ar-gray-200: #e5e7eb;
  --ar-gray-100: #f3f4f6;
  --ar-gray-50: #f9fafb;
  --ar-white: #ffffff;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Compatibility Aliases */
  --espresso: var(--ar-black);
  --cinnamon: var(--ar-orange);
  --walnut: var(--ar-charcoal);
  --honey: var(--ar-gold);
  --sage: var(--ar-green);
  --sage-light: var(--ar-green-light);
  --berry: #be185d;
  --berry-light: #fdf2f8;
  --parchment: var(--ar-gray-200);
  --cream: var(--ar-gray-50);
  --flour-white: #ffffff;
  --font-display: var(--font-serif);
  --font-body: var(--font-sans);
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background-color: #f7f7f7;
  color: var(--ar-charcoal);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ar-orange-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--ar-orange-hover);
  text-decoration: underline;
}

/* ========================================================
   1. GLOBAL HEADER (Edge-to-edge, responsive)
   ======================================================== */
.ar-top-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ar-gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.ar-top-header-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Hamburger button */
.ar-hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  padding: 6px;
  color: var(--ar-charcoal);
}

.ar-hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ar-charcoal);
  border-radius: 2px;
}

/* AllCottage Brand Logo */
.ar-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.ac-horizontal-logo {
  height: 42px;
  width: auto;
  max-height: 46px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ar-logo-link:hover .ac-horizontal-logo {
  opacity: 0.92;
  transform: scale(1.02);
}

.ac-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ar-logo-link:hover .ac-logo-mark {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 3px 8px rgba(184,69,24,0.18);
}

.ar-logo-text-bold {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.7px;
  color: #1c1917;
  line-height: 1;
}

.ar-logo-text-bold .ac-highlight {
  color: #b84518;
}

.ac-logo-sub {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8c5b3e;
  margin-top: 2px;
}

.ar-logo-spoon {
  width: 9px;
  height: 25px;
  background-color: #f59e0b;
  border-radius: 5px 5px 2px 2px;
  display: inline-block;
  margin-left: 1px;
  position: relative;
}

.ar-logo-spoon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 13px;
  height: 12px;
  background-color: #f59e0b;
  border-radius: 50%;
}

/* Search Bar */
.ar-header-search-form {
  position: relative;
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ar-gray-300);
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.ar-header-search-form:focus-within {
  border-color: #b84518;
  box-shadow: 0 0 0 3px rgba(184, 69, 24, 0.14);
}

.ar-header-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: var(--ar-charcoal);
}

.ar-header-search-btn {
  background: #d84315;
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.ar-header-search-btn:hover {
  background: #bf360c;
}

/* Utility Nav */
.ar-header-util {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ar-charcoal);
}

.ar-header-util a {
  color: var(--ar-charcoal);
  text-decoration: none !important;
}

.ar-header-util a:hover {
  color: #e24a1f;
}

.ar-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ar-black) !important;
  text-decoration: none !important;
}

.ar-my-icon {
  background: #801a86;
  color: #ffffff;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Header Auth Controls */
.ar-header-auth-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background-color: #e5e7eb;
  margin: 0 4px;
  flex-shrink: 0;
}

.ac-auth-signin-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 6px 14px !important;
  background-color: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  border-radius: 9999px !important;
  color: #c2410c !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.06) !important;
}

.ac-auth-signin-btn:hover {
  background-color: #ffedd5 !important;
  border-color: #fdba74 !important;
  color: #9a3412 !important;
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.18) !important;
  transform: translateY(-1px);
}

.ac-auth-signin-btn:active {
  transform: translateY(0);
}

.ac-auth-signin-btn svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
}

.ac-auth-signin-btn svg:not(.ac-google-icon) {
  stroke: currentColor !important;
}

.ac-google-icon {
  stroke: none !important;
}

.ac-header-avatar-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 3px 10px 3px 4px !important;
  background-color: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.06) !important;
}

.ac-header-avatar-btn:hover {
  background-color: #ffedd5 !important;
  border-color: #fdba74 !important;
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.15) !important;
}

/* ========================================================
   2. CATEGORY NAVBAR
   ======================================================== */
.ar-cat-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--ar-gray-200);
  overflow-x: auto;
  white-space: nowrap;
}

.ar-cat-navbar-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 24px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ar-cat-navbar-inner a {
  color: var(--ar-charcoal);
  text-decoration: none !important;
  padding: 10px 4px;
  border-bottom: 2.5px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ar-cat-navbar-inner a:hover, .ar-cat-navbar-inner a.active {
  color: #e24a1f;
  border-bottom-color: #e24a1f;
}

.ar-get-mag {
  color: #e24a1f !important;
  font-weight: 900;
}

/* ========================================================
   3. LEADERBOARD AD BANNER
   ======================================================== */
.ar-leaderboard-ad {
  background: #f7f7f7;
  border-bottom: 1px solid var(--ar-gray-200);
  padding: 14px 24px;
  text-align: center;
}

.ar-leaderboard-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: #0f0f0f;
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ar-ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777777;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ========================================================
   4. BLUE TRUST BANNER (Edge-to-edge)
   ======================================================== */
.ar-blue-trust-banner {
  background: var(--ar-blue-trust);
  color: #ffffff;
  padding: 12px 24px;
  font-size: 13.5px;
}

.ar-blue-trust-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.ar-blue-trust-title {
  font-weight: 700;
}

.ar-blue-trust-title strong {
  font-weight: 900;
  font-size: 15px;
}

.ar-blue-trust-title .gold-tag {
  color: #facc15;
}

.ar-blue-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
}

.ar-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.ar-stat-dot.teal { background: #2dd4bf; }
.ar-stat-dot.orange { background: #fb923c; }
.ar-stat-dot.yellow { background: #facc15; }

/* ========================================================
   5. "myrecipes" DISHES SECTION (Zero Gaps, 100% Space Utilization)
   ======================================================== */
.ar-myrecipes-section {
  background: #faf6ee;
  border-top: 1px solid #ebdccb;
  border-bottom: 1px solid #ebdccb;
  padding: 30px 0 34px 0;
  width: 100%;
}

.ar-myrecipes-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 24px;
}

.ar-myrecipes-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ar-myrecipes-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 26px;
  font-weight: 900;
  color: var(--ar-black);
  letter-spacing: -0.5px;
}

.ar-myrecipes-logo .pink-my {
  color: var(--ar-myrecipes-pink);
}

.ar-myrecipes-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--ar-black);
  letter-spacing: -0.5px;
}

.ar-myrecipes-sub {
  font-size: 13px;
  color: var(--ar-gray-600);
  font-weight: 500;
  margin-left: 8px;
}

.ar-carousel-arrows {
  display: flex;
  gap: 8px;
}

.ar-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #d5a57a;
  background: #ffffff;
  color: #d84315;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ar-arrow-btn:hover {
  background: #d84315;
  color: #ffffff;
  border-color: #d84315;
}

/* CAROUSEL CONTAINER: Zero empty space, all cards flow horizontally, NEVER WRAP */
.ar-recipe-cards-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  flex-wrap: nowrap !important;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.ar-recipe-cards-carousel::-webkit-scrollbar {
  display: none;
}

.ar-recipe-dish-card {
  flex: 0 0 270px;
  min-width: 235px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0d9cf;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

@media (min-width: 1400px) {
  .ar-recipe-dish-card {
    flex: 1 1 0; /* All cards expand dynamically to fill exactly 100% of row width! Zero gap! */
  }
}

.ar-recipe-dish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ar-recipe-dish-card.active-recipe {
  border: 2.5px solid #d84315;
}

.ar-dish-image-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #faf6f0;
}

.ar-dish-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ar-recipe-dish-card:hover .ar-dish-image-wrap img {
  transform: scale(1.05);
}

.ar-dish-badge {
  position: absolute;
  bottom: 10px;
  left: 14px;
  background: var(--ar-yellow-badge);
  color: #111827;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.ar-dish-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ar-dish-title {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--ar-black);
  margin-bottom: 8px;
  min-height: 40px;
}

.ar-dish-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ar-gray-600);
  margin-bottom: 14px;
}

.ar-dish-stars {
  display: flex;
  align-items: center;
  gap: 1.5px;
}

/* Save Recipe Button inside card */
.ar-card-save-btn {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--ar-gray-300);
  color: var(--ar-charcoal);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  margin-top: auto;
}

.ar-card-save-btn:hover {
  background: #fdf2f8;
  border-color: var(--ar-myrecipes-pink);
  color: var(--ar-myrecipes-pink);
}

.ar-card-save-btn.active {
  background: #d84315;
  color: #ffffff;
  border-color: #d84315;
}

/* ========================================================
   6. ACTIVE RECIPE WORKSTATION & EDITORIAL LAYOUT
   ======================================================== */
.ar-workstation-wrap {
  width: 100%;
  max-width: 1720px;
  margin: 32px auto 60px auto;
  padding: 0 clamp(16px, 2vw, 28px);
  box-sizing: border-box;
}

.ar-workstation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 24px;
  align-items: start;
}

.ar-workstation-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .ar-workstation-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ar-sticky-rail {
    position: static;
  }
}

/* Headline */
.ar-recipe-headline {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ar-black);
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .ar-recipe-headline {
    font-size: 28px;
  }
}

.ar-rating-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ar-gray-200);
  margin-bottom: 16px;
}

.ar-byline-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ar-hero-showcase {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .ar-hero-showcase {
    grid-template-columns: 1fr;
  }
}

.ar-hero-image-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border: 1px solid var(--ar-gray-200);
}

.ar-hero-image-card > img#heroRecipeImage {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Official Verification Stamp Badge */
.ar-stamp-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  transform: rotate(-6deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.ar-stamp-badge:hover {
  transform: rotate(0deg) scale(1.08);
  filter: drop-shadow(0 6px 14px rgba(184, 69, 24, 0.3));
}

.ar-stamp-badge img {
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
}

@media (min-width: 640px) {
  .ar-stamp-badge img {
    width: 98px !important;
    height: 98px !important;
  }
}

.ar-i-made-it-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
}

.ar-i-made-it-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--ar-black);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.ar-i-made-it-btn:hover {
  background: #d84315;
  color: #ffffff;
}

.ar-quick-meta-card {
  background: #ffffff;
  border: 1px solid var(--ar-gray-200);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ar-meta-heading {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--ar-black);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ar-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ar-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--ar-gray-100);
  font-size: 13px;
}

.ar-meta-row:last-child {
  border-bottom: none;
}

.ar-meta-row .label {
  color: var(--ar-gray-600);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ar-meta-row .value {
  font-weight: 800;
  color: var(--ar-black);
}

.ar-meta-row .value.highlight {
  color: #d84315;
  font-size: 15px;
}

.ar-meta-row .value.green {
  color: var(--ar-green);
  font-size: 15px;
}

/* Content Cards */
.ar-content-card {
  background: #ffffff;
  border: 1px solid var(--ar-gray-200);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ar-content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ar-gray-200);
}

.ar-section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: var(--ar-black);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ar-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d84315;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Checklist Table */
.ar-checklist-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.ar-checklist-table th {
  background: var(--ar-gray-50);
  color: var(--ar-gray-600);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 10px 12px;
  border-top: 1px solid var(--ar-gray-200);
  border-bottom: 1px solid var(--ar-gray-200);
}

.ar-checklist-table th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.ar-checklist-table th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.ingredient-row {
  border-bottom: 1px solid var(--ar-gray-200);
  transition: background-color 0.15s ease;
}

.ingredient-row:hover {
  background-color: #fafbfc;
}

.ingredient-row td {
  padding: 12px 10px;
  vertical-align: middle;
}

.ingredient-row.checked {
  opacity: 0.55;
}

.ingredient-row.checked input[data-field="name"] {
  text-decoration: line-through;
}

/* Global number stepper suppression */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type="number"] {
  -moz-appearance: textfield !important;
}

.ar-check-box {
  width: 18px;
  height: 18px;
  accent-color: #d84315;
  cursor: pointer;
}

.ar-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--ar-black);
  background: #ffffff;
  border: 1.5px solid var(--ar-gray-300);
  border-radius: 8px;
  outline: none;
  transition: all 0.15s ease;
}

.ar-input:focus {
  border-color: #d84315;
  box-shadow: 0 0 0 3px rgba(216, 67, 21, 0.15);
}

.ar-input-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.ac-table-num-input {
  padding: 4px 6px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  font-variant-numeric: tabular-nums !important;
  box-sizing: border-box !important;
  height: 32px !important;
  line-height: 20px !important;
}

.ingredient-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ar-gray-mid);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ingredient-delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.ar-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b84518' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px;
  padding-right: 32px;
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.ar-select.ar-input-sm,
.ar-select.text-xs {
  padding-right: 28px !important;
  background-position: right 8px center;
  background-size: 11px;
}

.ar-select:hover {
  border-color: #b84518;
  background-color: #fffdfa;
}

.ar-select:focus {
  border-color: #b84518;
  box-shadow: 0 0 0 3.5px rgba(184, 69, 24, 0.16);
  background-color: #ffffff;
  outline: none;
}

.ar-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--ar-gray-600);
  margin-bottom: 5px;
}

/* Step-by-Step Instructions Styling */
.ar-instructions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ar-step-item {
  display: flex;
  gap: 14px;
  background: var(--ar-gray-50);
  border: 1px solid var(--ar-gray-200);
  padding: 16px;
  border-radius: 8px;
}

.ar-step-badge {
  background: #d84315;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  height: fit-content;
  white-space: nowrap;
}

.ar-step-text {
  font-size: 13.5px;
  color: var(--ar-charcoal);
  line-height: 1.6;
}

/* Nutrition & Financial Facts Box */
.ar-nutrition-box {
  background: #ffffff;
  border: 2px solid var(--ar-black);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ar-nutrition-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--ar-black);
  margin: 0;
  line-height: 1;
}

.ar-nutrition-bar-heavy {
  height: 8px;
  background: var(--ar-black);
  margin: 12px 0 16px 0;
}

.ar-nutrition-bar-thin {
  height: 1px;
  background: var(--ar-gray-300);
  margin: 8px 0;
}

.ar-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ar-gray-50);
  border: 1px solid var(--ar-gray-200);
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.ar-slider {
  flex: 1;
  height: 6px;
  accent-color: #d84315;
  cursor: pointer;
}

.ar-financial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .ar-financial-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ar-fin-tile {
  background: #ffffff;
  border: 1.5px solid var(--ar-gray-200);
  border-radius: 8px;
  padding: 14px;
  transition: all 0.15s ease;
}

.ar-fin-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.ar-fin-tile.market { border-color: var(--ar-green-border); background: #fbfdfb; }
.ar-fin-tile.cafe { border-color: #bae6fd; background: #f8fcff; }
.ar-fin-tile.cost { border-color: #fed7aa; background: #fffbf7; }

.ar-fin-val {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--ar-black);
  line-height: 1.1;
  margin: 6px 0 2px 0;
}

.ar-fin-val.green { color: var(--ar-green); }
.ar-fin-val.blue { color: var(--ar-blue); }
.ar-fin-val.orange { color: #d84315; }

/* The Latest Rail */
.ar-the-latest-header {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 900;
  color: var(--ar-black);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.ar-the-latest-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d84315 120px, var(--ar-gray-200) 120px);
}

#latestNewsSection {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ar-latest-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ar-gray-200);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ar-latest-thumb {
  width: 90px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.ar-latest-tag {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ar-gray-500);
  margin-bottom: 3px;
}

.ar-latest-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ar-black);
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ar-latest-badge-today {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 6px;
  vertical-align: middle;
}

.ar-live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: acPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
}

@keyframes acPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.ar-review-today-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  padding: 2px 7px;
  border-radius: 9999px;
}

/* Sticky Label Studio */
.ar-sticky-rail {
  position: sticky;
  top: 80px;
}

.ar-primary-orange-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #d84315;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 900;
  padding: 14px 24px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(216, 67, 21, 0.35);
  transition: all 0.15s ease;
}

.ar-primary-orange-btn:hover {
  background: #bf360c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(216, 67, 21, 0.45);
}

.ar-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: var(--ar-charcoal);
  border: 1.5px solid var(--ar-gray-300);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ar-btn-outline:hover {
  background: var(--ar-gray-50);
  border-color: var(--ar-gray-400);
  color: var(--ar-black);
}

/* State Chips */
.state-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid var(--ar-gray-300);
  color: var(--ar-charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.state-chip:hover {
  border-color: #d84315;
  color: #d84315;
  background: var(--ar-orange-light);
}

.state-chip.active {
  background: #d84315;
  border-color: #d84315;
  color: #ffffff;
  font-weight: 800;
}

/* Allergen Chips */
.allergen-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1.5px solid var(--ar-gray-300);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ar-charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.allergen-chip:hover {
  border-color: #be185d;
  background: #fdf2f8;
}

.allergen-chip.active {
  background: #fdf2f8;
  border-color: #be185d;
  color: #9d174d;
  font-weight: 800;
}

/* Label Mockup */
.label-preview-surface {
  background: #f3f4f6;
  border: 2px dashed var(--ar-gray-300);
  border-radius: 12px;
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.label-preview-container {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.label-size-avery_5163 { width: 100%; max-width: 380px; min-height: 200px; }
.label-size-avery_5164 { width: 100%; max-width: 380px; min-height: 280px; }
.label-size-square { width: 100%; max-width: 300px; min-height: 300px; }
.label-size-thermal_4x6 { width: 100%; max-width: 320px; min-height: 440px; }

.label-theme-artisan { font-family: var(--font-serif); }
.label-theme-clean { font-family: var(--font-sans); }
.label-theme-rustic { font-family: 'Courier New', Courier, monospace; }
.label-theme-modern { font-family: var(--font-sans); letter-spacing: -0.2px; }

/* Ad box */
.ar-ad-card {
  background: #ffffff;
  border: 1px solid var(--ar-gray-200);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  text-align: left;
}

.ar-ad-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ar-gray-400);
  margin-bottom: 6px;
}

/* Reviews */
.ar-reviews-section {
  background: #ffffff;
  border-top: 1px solid var(--ar-gray-200);
  padding: 56px 0;
}

.ar-reviews-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 24px;
}

.ar-review-card {
  background: var(--ar-gray-50);
  border: 1px solid var(--ar-gray-200);
  border-radius: 12px;
  padding: 20px;
}

/* Footer */
.ar-clean-footer {
  background: #ffffff;
  border-top: 1px solid var(--ar-gray-300);
  padding: 40px 0 30px 0;
  font-size: 12.5px;
  color: var(--ar-gray-500);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--ar-black);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid #d84315;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.leaving {
  animation: toastOut 0.2s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px) scale(0.96); }
}

.num-animate.bump {
  animation: numBump 0.2s ease-out;
}

@keyframes numBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: #d84315; }
  100% { transform: scale(1); }
}

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ar-black);
  border: 1.5px solid var(--ar-gray-300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: #d84315;
  color: #ffffff;
  border-color: #d84315;
  transform: translateY(-2px);
}

@media print {
  .no-print, header, footer, .ar-leaderboard-ad, .ar-blue-trust-banner, .ar-myrecipes-section, .scroll-top-btn, .toast-container {
    display: none !important;
  }
  body, .ar-workstation-wrap {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ========================================================
   ALLCOTTAGE SEAMLESS POPUPS, MODALS & DROPDOWNS SYSTEM
   ======================================================== */

/* 1. Modal Backdrops & Dialogs */
.ac-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ac-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(28, 25, 23, 0.35), 0 0 0 1px rgba(184, 69, 24, 0.08);
  border: 1px solid #ebd9c8;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-modal-backdrop.active .ac-modal-dialog {
  transform: translateY(0) scale(1);
}

.ac-modal-dialog::-webkit-scrollbar {
  width: 6px;
}
.ac-modal-dialog::-webkit-scrollbar-track {
  background: #fafaf9;
}
.ac-modal-dialog::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 9999px;
}
.ac-modal-dialog::-webkit-scrollbar-thumb:hover {
  background: #b84518;
}

.ac-modal-header {
  padding: 18px 24px;
  background: #faf6ee;
  border-bottom: 1px solid #ebd9c8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px 20px 0 0;
}

.ac-modal-body {
  padding: 24px;
}

.ac-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #ebd9c8;
  background: #faf6ee;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-radius: 0 0 20px 20px;
}

.ac-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78716c;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ac-modal-close-btn:hover {
  background: #ede3d4;
  color: #1c1917;
  transform: rotate(90deg);
}

/* 2. Side Navigation Drawer */
.ac-nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-nav-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ac-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 340px;
  max-width: 86vw;
  background: #ffffff;
  z-index: 9999;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-nav-drawer-backdrop.active .ac-nav-drawer {
  transform: translateX(0);
}

.ac-drawer-header {
  padding: 20px 22px;
  background: #faf6ee;
  border-bottom: 1px solid #ebd9c8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ac-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}

.ac-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #292524;
  text-decoration: none;
  transition: all 0.18s ease;
  margin-bottom: 4px;
}

.ac-drawer-link:hover {
  background: #fdf5ec;
  color: #b84518;
  transform: translateX(4px);
}

.ac-drawer-link svg {
  color: #b84518;
  flex-shrink: 0;
}

.ac-drawer-footer {
  padding: 16px 20px;
  background: #faf6ee;
  border-top: 1px solid #ebd9c8;
}

/* 3. Live Search Autocomplete Dropdown */
.ac-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.18), 0 0 0 1px #ebd9c8;
  max-height: 440px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.ac-search-dropdown.active {
  display: block;
  animation: acDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes acDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ac-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f4;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ac-search-item:last-child {
  border-bottom: none;
}

.ac-search-item:hover {
  background: #fff8f2;
}

.ac-search-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 4. User Profile Dropdown Popover */
.ac-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: #ffffff !important;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.22), 0 0 0 1px #ebd9c8;
  z-index: 99999 !important;
  display: none;
  overflow: hidden;
}

.ac-user-dropdown.active {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: acDropIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ac-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #292524;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ac-user-menu-item:hover {
  background: #fdf5ec;
  color: #b84518;
}

.ac-user-menu-item svg {
  color: #b84518;
  flex-shrink: 0;
}

/* 5. Enhanced Toasts with Brand Icon */
.toast {
  pointer-events: auto;
  background: #1c1917;
  color: #faf6ee;
  border: 1px solid rgba(184, 69, 24, 0.4);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 6. Google 1-Click Sign-In Component Styles */
.ac-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 18px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-google-btn:hover {
  background: #f8f9fa;
  border-color: #d2e3fc;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
  color: #202124;
  transform: translateY(-1px);
}

.ac-google-btn:active {
  background: #f1f3f4;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.ac-auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ac-auth-separator::before,
.ac-auth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.ac-auth-separator::before {
  margin-right: 12px;
}

.ac-auth-separator::after {
  margin-left: 12px;
}

.ac-google-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ac-google-account-item:hover {
  background: #fefcfb;
  border-color: #f97316;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.1);
  transform: translateY(-1.5px);
}

.ac-google-account-item:active {
  transform: translateY(0);
}

/* 7. Modern Visual Sheet Format & Typography Pickers */
.ac-format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.ac-format-card:hover {
  border-color: #fdba74;
  background: #fffcf9;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.ac-format-card.active {
  border-color: #ea580c !important;
  background: #fff7ed !important;
  box-shadow: 0 0 0 1px #ea580c, 0 4px 14px rgba(234, 88, 12, 0.14) !important;
}

.ac-format-icon-wrap {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.ac-ratio-box {
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.ac-format-card.active .ac-ratio-box {
  border-color: #ea580c;
  background: #ffedd5;
  border-style: solid;
}

.ratio-avery5163 { width: 38px; height: 19px; }
.ratio-avery5164 { width: 36px; height: 28px; }
.ratio-square { width: 24px; height: 24px; }
.ratio-thermal { width: 22px; height: 32px; }

.ac-format-title {
  font-size: 11px;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.2;
}

.ac-format-card.active .ac-format-title {
  color: #9a3412;
}

.ac-format-specs {
  font-size: 10px;
  font-weight: 600;
  color: #78716c;
  margin-top: 1px;
}

.ac-format-tag {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 1.5px 7px;
  border-radius: 9999px;
  margin-top: 4px;
  letter-spacing: 0.2px;
  transition: all 0.15s ease;
}

.ac-format-card.active .ac-format-tag {
  background: #ea580c;
  color: #ffffff;
}

/* Typography Pills / Cards - Symmetrical Vertical Rhythm (Matches Format Cards) */
.ac-theme-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 8px 4px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.ac-theme-pill:hover {
  border-color: #fdba74;
  background: #fffcf9;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.ac-theme-pill.active {
  border-color: #ea580c !important;
  background: #fff7ed !important;
  box-shadow: 0 0 0 1px #ea580c, 0 4px 14px rgba(234, 88, 12, 0.14) !important;
}

.ac-theme-sample {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.ac-theme-pill.active .ac-theme-sample {
  background: #ffedd5;
  color: #ea580c;
}

.ac-theme-name {
  font-size: 11px;
  font-weight: 700;
  color: #1c1917;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ac-theme-pill.active .ac-theme-name {
  color: #9a3412;
}

/* 8. Modern Baker Reviews Community UI */
.ar-reviews-summary-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .ar-reviews-summary-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ac-review-filter-btn {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ac-review-filter-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.ac-review-filter-btn.active {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.ar-review-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 22px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ar-review-card:hover {
  border-color: #fdba74 !important;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.08) !important;
  transform: translateY(-2px);
}

.ac-helpful-btn:hover {
  color: #ea580c;
}

.ac-helpful-btn.voted {
  color: #ea580c !important;
  font-weight: 700 !important;
}

/* ========================================================
   CUSTOM STATE SELECTOR / COMBOBOX (ALLRECIPES EDITORIAL THEME)
   ======================================================== */
.ac-state-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ac-state-trigger-btn:hover {
  border-color: #fdba74;
  background: #fffbf9;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.ac-state-trigger-btn.is-open {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.ac-state-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, inherit);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.ac-state-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: acDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes acDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ac-state-quick-chip {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ac-state-quick-chip:hover {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fdba74;
}

.ac-state-quick-chip.active {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

.ac-state-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.ac-state-option-item:hover {
  background: #fff7ed;
}

.ac-state-option-item.is-selected {
  background: #ffedd5;
  border-left: 3px solid #ea580c;
}

/* Floating Custom Unit Dropdown Popover */
.ac-unit-popover {
  position: absolute;
  z-index: 10050;
  background: #ffffff;
  border: 1px solid #ebd9c8;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(28, 25, 23, 0.18), 0 0 0 1px rgba(184, 69, 24, 0.06);
  padding: 4px;
  min-width: 96px;
  width: max-content;
  max-width: 120px;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.96);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-unit-popover.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#acUnitPopoverList {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  width: 100% !important;
}

.ac-unit-popover::-webkit-scrollbar {
  width: 4px;
}
.ac-unit-popover::-webkit-scrollbar-track {
  background: #fafaf9;
}
.ac-unit-popover::-webkit-scrollbar-thumb {
  background: #e7e5e4;
  border-radius: 9999px;
}
.ac-unit-popover::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

.ac-unit-popover-item {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #292524 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.12s ease !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.ac-unit-popover-item:hover {
  background: #fff7ed !important;
  color: #ea580c !important;
}

.ac-unit-popover-item.selected {
  background: #ffedd5 !important;
  color: #c2410c !important;
  font-weight: 800 !important;
}

/* Custom Unit Trigger Button */
.ac-unit-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1c1917;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}

.ac-unit-trigger:hover {
  border-color: #ea580c;
  background: #fffdfa;
}

.ac-unit-trigger:focus, .ac-unit-trigger.open {
  border-color: #ea580c;
  box-shadow: 0 0 0 2.5px rgba(234, 88, 12, 0.15);
  background: #fffdfa;
}

/* ========================================================
   11. COMPREHENSIVE SMARTPHONE & MOBILE DEVICE OPTIMIZATIONS
       (iPhone 14/15/16, Android, 360px-640px)
   ======================================================== */
.ar-table-scroll-wrap {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ea580c #f5f5f4;
}

.ar-table-scroll-wrap::-webkit-scrollbar {
  height: 5px;
}

.ar-table-scroll-wrap::-webkit-scrollbar-track {
  background: #f5f5f4;
  border-radius: 9999px;
}

.ar-table-scroll-wrap::-webkit-scrollbar-thumb {
  background: #ea580c;
  border-radius: 9999px;
}

@media (max-width: 640px) {
  /* Global Header & Branding */
  .ar-top-header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .ar-top-header-inner {
    padding: 0 10px !important;
    gap: 8px !important;
    height: 54px !important;
  }

  .ar-logo-link {
    gap: 6px !important;
  }

  .ac-horizontal-logo {
    height: 30px !important;
    max-height: 32px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .ar-hamburger-btn {
    padding: 4px !important;
    flex-shrink: 0 !important;
  }

  .ar-header-search-form {
    margin: 0 !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    border-radius: 6px !important;
    border-width: 1px !important;
  }

  .ar-header-search-input {
    padding: 5px 8px !important;
    font-size: 12px !important;
    min-width: 0 !important;
  }

  .ar-header-search-btn {
    padding: 5px 9px !important;
    flex-shrink: 0 !important;
  }

  .ar-header-search-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .ar-header-util {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .ac-header-avatar-btn {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
  }

  .ac-header-avatar-btn svg {
    display: none !important;
  }

  .ac-auth-signin-btn {
    padding: 5px 8px !important;
    gap: 0 !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Category Nav Bar Smooth Momentum */
  .ar-cat-navbar {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ar-cat-navbar::-webkit-scrollbar {
    display: none;
  }

  .ar-cat-navbar-inner {
    padding: 0 12px !important;
    gap: 14px !important;
    justify-content: flex-start !important;
    height: 36px !important;
    font-size: 10.5px !important;
  }

  /* Leaderboard Promo Banner */
  .ar-leaderboard-ad {
    padding: 8px 10px !important;
  }

  .ar-leaderboard-wrap {
    flex-direction: column !important;
    padding: 10px 12px !important;
    gap: 6px !important;
    text-align: center !important;
    border-radius: 8px !important;
  }

  .ar-ad-label {
    display: none !important;
  }

  /* Blue Trust Banner */
  .ar-blue-trust-banner {
    padding: 8px 12px !important;
  }

  .ar-blue-trust-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .ar-blue-stats {
    flex-wrap: wrap !important;
    gap: 6px 14px !important;
    font-size: 11px !important;
  }

  /* Recipe Headline & Hero Section */
  .ar-recipe-headline {
    font-size: 23px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }

  .ar-rating-strip {
    gap: 8px !important;
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
  }

  .ar-hero-showcase {
    gap: 16px !important;
  }

  .ar-hero-image-card > img#heroRecipeImage {
    height: 220px !important;
  }

  .ar-stamp-badge {
    top: 8px !important;
    right: 8px !important;
  }

  .ar-stamp-badge img {
    width: 64px !important;
    height: 64px !important;
  }

  .ar-i-made-it-bar {
    bottom: 8px !important;
    left: 8px !important;
    gap: 6px !important;
  }

  .ar-i-made-it-btn {
    font-size: 11px !important;
    padding: 5px 10px !important;
  }

  .ar-quick-meta-card {
    padding: 14px !important;
    border-radius: 10px !important;
  }

  /* Action Buttons Row */
  .ar-btn-outline {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    border-radius: 6px !important;
  }

  /* Workstation & Content Cards */
  .ar-workstation-wrap {
    padding: 0 10px !important;
    margin: 14px auto 32px auto !important;
  }

  .ar-content-card {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }

  .ar-content-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }

  .ar-section-title {
    font-size: 18.5px !important;
  }

  .ar-step-circle {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
  }

  /* Ingredients Checklist Table */
  .ar-checklist-table {
    min-width: 530px !important;
    -webkit-overflow-scrolling: touch;
  }

  .ar-checklist-table th,
  .ar-checklist-table td {
    padding: 7px 5px !important;
    font-size: 11px !important;
  }

  /* Allergens Checklist Grid */
  #allergenCheckboxes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  /* Modals on Mobile */
  .ac-modal-dialog {
    max-width: 100% !important;
    margin: 8px !important;
    border-radius: 16px !important;
    max-height: 92vh !important;
  }

  .ac-modal-header {
    padding: 12px 14px !important;
  }

  .ac-modal-body {
    padding: 14px 12px !important;
  }

  .ac-modal-footer {
    padding: 10px 12px !important;
  }

  /* Orders Section */
  #ordersSection {
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }

  #ordersSection .px-6 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Reviews Section */
  .ar-reviews-section {
    padding: 20px 0 !important;
  }

  .ar-reviews-container {
    padding: 0 10px !important;
  }

  .ar-reviews-summary-bar {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .ar-review-card {
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }

  /* Footer */
  .ar-clean-footer .px-6 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}





