/* ==========================================================================
   mf-extras.css  (Mega Followers UK redesign, 2026-09-23)
   Site-wide leftovers that sit on top of every page: cookie consent,
   Lucky Draw modal, the services AJAX fragment. Loaded globally right after
   mf-ds.css (partials/header.php, partials/customer_header.php), so it wins
   over site_style.css and uses the mf-ds tokens only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Cookie consent (partials/cookie_consent.php, main.js)
   Desktop: compact card bottom-left, clear of the bottom-right floating
   buttons. Mobile: full-width bottom sheet with safe-area padding, lifted
   above the product page's sticky CTA bar. Accept and Decline are the same
   size; Decline is never a text link (PECR/GDPR).
   -------------------------------------------------------------------------- */
.cookie-consent-banner {
  position: fixed; left: 24px; right: auto; bottom: 24px; z-index: 1050;
  width: 384px; max-width: calc(100% - 48px);
  padding: 20px; border: 0; border-radius: var(--r-card-lg);
  background: #fff; box-shadow: var(--float-shadow); font-family: var(--font-body);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.cookie-consent-banner::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--brand-grad);
}
.cookie-consent-banner.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cookie-consent-content {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 16px; align-items: start;
}
.cookie-consent-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--cta-tint); color: var(--cta-edge); font-size: 1.05rem;
}
.cookie-consent-content p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--body); }
.cookie-consent-content p a { color: var(--heading); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent-content p a:hover { color: var(--cta-edge); }
.cookie-consent-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }

.cookie-consent-banner .cookie-consent-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  min-height: 46px; margin: 0; padding: 10px 16px; border-radius: var(--r-btn-lg);
  font: 700 .9375rem/1.2 var(--font-body); letter-spacing: .005em; touch-action: manipulation;
  transform: none; transition: background-color .15s ease, box-shadow .12s ease, transform .12s ease, filter .15s ease;
}
.cookie-consent-banner .cookie-consent-btn:active { transform: translateY(2px); }
.cookie-consent-banner .cookie-consent-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cookie-consent-banner #decline-cookies {
  background: #fff; color: var(--heading); border: 1px solid var(--border-strong); box-shadow: var(--press);
}
.cookie-consent-banner #decline-cookies:hover { background: var(--surface); color: var(--heading); }
.cookie-consent-banner #decline-cookies:active { box-shadow: 0 0 0 var(--border-strong); }
.cookie-consent-banner #accept-cookies {
  background: var(--cta); background-image: var(--cta-gradient); background-origin: border-box;
  border: 1px solid transparent; color: #fff; box-shadow: var(--press-cta);
  text-shadow: 0 1px 1px rgba(120, 14, 50, .35);
}
.cookie-consent-banner #accept-cookies:hover { background-image: var(--cta-gradient-hover); color: #fff; box-shadow: var(--press-cta); }
.cookie-consent-banner #accept-cookies:active { box-shadow: 0 1px 0 var(--cta-press); }

@media (max-width: 575.98px) {
  .cookie-consent-banner {
    left: 0; right: 0; bottom: 0; width: 100%; max-width: none;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0; transform: translateY(100%);
    box-shadow: 0 -10px 30px rgba(41, 47, 59, .16);
  }
  .cookie-consent-banner::before { left: 50%; right: auto; top: 8px; width: 36px; margin-left: -18px; height: 4px; border-radius: 4px; background: var(--border-strong); }
  .cookie-consent-banner.is-visible { transform: none; }
  .cookie-consent-content { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 14px; padding-top: 6px; }
  .cookie-consent-icon { width: 36px; height: 36px; border-radius: 10px; font-size: .95rem; }
  .cookie-consent-content p { font-size: .8125rem; }
}
/* M-05 (2026-09-24): short copy on phones, long copy on wider screens. On
   phones the sheet is two compact rows (one short sentence + Privacy link,
   then Decline | Accept at 44px), about 100px tall instead of 221px, so
   header + sheet stay near 30% of a 320x568 screen. */
.cookie-consent-short, .cookie-consent-privacy { display: none; }
@media (max-width: 575.98px) {
  .cookie-consent-banner { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; }
  .cookie-consent-banner::before { top: 0; left: 16px; right: 16px; width: auto; margin-left: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-grad); }
  .cookie-consent-content { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding-top: 0; }
  .cookie-consent-icon { display: none; }
  .cookie-consent-long { display: none; }
  .cookie-consent-short { display: inline; }
  .cookie-consent-content p { font-size: .8125rem; line-height: 1.4; }
  .cookie-consent-actions { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
  .cookie-consent-privacy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--heading); font: 600 .8125rem/1.2 var(--font-body); text-decoration: underline; text-underline-offset: 2px; }
  .cookie-consent-banner .cookie-consent-btn { min-height: 44px; padding: 8px 12px; }
}
/* Product page: sit on top of the fixed Add to cart / Buy now bar, never over it. */
@media (max-width: 767.98px) {
  body:has(#product_cta_bar) .cookie-consent-banner { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 575.98px) {
  body:has(#product_cta_bar) .cookie-consent-banner { bottom: 76px; padding-bottom: 10px; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner, .cookie-consent-banner .cookie-consent-btn { transition: none; }
  .cookie-consent-banner { transform: none; }
}

/* --------------------------------------------------------------------------
   2. Monthly Lucky Draw modal (partials/lucky_draw_banner.php,
   lucky-draw-banner.js). Brand, not beige: dark indigo header with logo-
   gradient glow + spark confetti, gradient gift tile; progress card with an
   entries ticket; numbered steps; always-visible free-entry route in the
   footer. Bottom sheet under 576px.
   -------------------------------------------------------------------------- */
.mfuk-lucky-draw-modal .modal-dialog { max-width: 520px; }
.mfuk-lucky-draw-modal .modal-content {
  overflow: hidden; border: 0; border-radius: var(--r-card-xl); background: #fff;
  box-shadow: 0 24px 60px -12px rgba(23, 20, 45, .45); font-family: var(--font-body);
}

/* Header */
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__header {
  position: relative; isolation: isolate; align-items: center; gap: 14px;
  padding: 26px 22px 24px 24px; border: 0;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(250, 21, 147, .42) 0%, rgba(250, 21, 147, 0) 55%),
    radial-gradient(110% 130% at 100% 100%, rgba(251, 92, 6, .38) 0%, rgba(251, 92, 6, 0) 55%),
    var(--dark-indigo);
  color: #fff;
}
.mfuk-lucky-draw-modal__header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-grad);
}
.mfuk-lucky-draw-modal__sparks {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background:
    radial-gradient(circle at 4% 14%, #FFD36E 0 2px, transparent 3px),
    radial-gradient(circle at 16% 90%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 58% 9%, #FF8FA3 0 2px, transparent 3px),
    radial-gradient(circle at 74% 92%, #FFB36B 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 36% 7%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 97% 88%, #fff 0 1px, transparent 2px);
}
.mfuk-lucky-draw-modal__sparks::before,
.mfuk-lucky-draw-modal__sparks::after {
  content: ""; position: absolute; width: 14px; height: 14px; background: #FFD36E;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.mfuk-lucky-draw-modal__sparks::before { top: 10px; right: 64px; }
.mfuk-lucky-draw-modal__sparks::after { bottom: 9px; left: 30px; width: 10px; height: 10px; background: #FF8FA3; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__header-icon {
  position: relative; display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px;
  border-radius: 16px; background: var(--cta-gradient); color: #fff; font-size: 1.5rem;
  box-shadow: 0 10px 22px -8px rgba(250, 21, 147, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: rotate(-6deg);
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__header-icon i { transform: rotate(6deg); }
.mfuk-lucky-draw-modal .modal-title {
  margin: 0; font: 800 1.375rem/1.2 var(--font-display); letter-spacing: -.015em; color: #fff;
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__header-tagline {
  display: block; margin-top: 4px; font-size: .875rem; line-height: 1.4; color: #E4E1F2;
}
.mfuk-lucky-draw-modal .modal-header .btn-close {
  align-self: flex-start; flex: 0 0 auto; width: 44px; height: 44px; margin: -10px -8px 0 auto; padding: 0; /* M-07: 44px */
  border-radius: 50%; background-size: 12px; background-color: rgba(255, 255, 255, .12); opacity: 1;
  transition: background-color .15s ease;
}
.mfuk-lucky-draw-modal .modal-header .btn-close:hover { background-color: rgba(255, 255, 255, .22); }
.mfuk-lucky-draw-modal .modal-header .btn-close:focus { box-shadow: 0 0 0 3px rgba(255, 143, 163, .6); }

/* Body */
.mfuk-lucky-draw-modal .modal-body { padding: 22px 24px 8px; }

.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__progress {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--r-card-lg); background: #fff;
  box-shadow: 0 1px 2px rgba(16, 17, 20, .04);
}
.mfuk-lucky-draw-modal__entries {
  position: relative; display: none; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 16px;
  background: var(--cta-tint); color: var(--cta-edge);
  align-items: center; justify-content: center; flex-direction: column; gap: 0;
}
.mfuk-lucky-draw-modal__entries::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--brand-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.mfuk-lucky-draw-modal__entries-icon { font-size: .8rem; opacity: .85; }
.mfuk-lucky-draw-modal__entries-count { font: 800 1.5rem/1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; }
.mfuk-lucky-draw-modal.has-entries .mfuk-lucky-draw-modal__entries { display: flex; }
.mfuk-lucky-draw-modal__progress-main { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-width: 0; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__text {
  font-size: .9375rem; line-height: 1.45; font-weight: 600; color: var(--heading);
}
.mfuk-lucky-draw-modal.is-start-shopping .mfuk-lucky-draw-banner__text { display: none; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__bar-track {
  display: block; flex: none; width: 100%; height: 12px; border-radius: 999px; background: var(--surface-2);
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 17, 20, .08);
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__bar-track[hidden],
.mfuk-lucky-draw-modal__bar-scale[hidden],
.mfuk-lucky-draw-modal__shop-cta[hidden] { display: none !important; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__bar-fill {
  display: block; height: 100%; min-width: 12px; border-radius: inherit; background: var(--cta-gradient);
  transition: width .4s var(--ease);
}
.mfuk-lucky-draw-modal__bar-scale {
  display: flex; justify-content: space-between; margin-top: -4px;
  font: 600 .75rem/1 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums;
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__shop-cta { white-space: normal; text-align: center; }

/* How it works: numbered 1-4 */
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide { margin: 0 0 12px; padding: 0; background: none; border-radius: 0; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 800 .75rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-list {
  display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: mf-ld-step;
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-list li {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 0 0 18px; counter-increment: mf-ld-step;
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-list li:last-child { padding-bottom: 4px; }
/* connector line between steps */
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-list li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--cta-soft-2), rgba(248, 58, 90, 0));
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-icon {
  position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0;
  border-radius: 13px; background: var(--cta-tint); color: var(--cta-edge); font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(248, 58, 90, .16);
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-icon::after {
  content: counter(mf-ld-step); position: absolute; top: -6px; right: -6px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cta-strong); color: #fff; font: 800 .6875rem/1 var(--font-body);
  box-shadow: 0 0 0 2px #fff;
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-list li > span:last-child {
  flex: 1 1 auto; min-width: 0; padding-top: 1px; font-size: .875rem; line-height: 1.55; color: var(--body);
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__guide-list li strong {
  display: block; margin-bottom: 2px; font: 700 .9375rem/1.35 var(--font-display); color: var(--heading);
}

/* Footer: the no-purchase route, always visible */
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__footer {
  display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
  padding: 14px 24px 18px; border-top: 1px solid var(--border); background: var(--surface);
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__footer > * { margin: 0; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__free-entry-toggle,
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__signin-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px;
  padding: 12px 18px; border: 1px solid var(--border-strong); border-radius: var(--r-btn-lg);
  background: #fff; color: var(--heading); box-shadow: var(--press);
  font: 700 .9375rem/1.3 var(--font-body); text-align: center; text-decoration: none; white-space: normal; cursor: pointer;
  transition: background-color .15s ease, box-shadow .12s ease, transform .12s ease;
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__free-entry-toggle:hover,
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__signin-link:hover { background: var(--cta-tint); color: var(--heading); border-color: var(--cta-soft-2); }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__free-entry-toggle:active,
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__signin-link:active { transform: translateY(2px); box-shadow: 0 0 0 var(--border-strong); }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__free-entry-toggle:focus-visible,
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__signin-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: var(--press); }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__free-entry-toggle[aria-expanded="true"] { background: var(--cta-tint); border-color: var(--cta-soft-2); }

.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__form { margin-top: 12px; gap: 8px; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__input-label { font-size: .8125rem; font-weight: 600; color: var(--heading); }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__input {
  flex: 1 1 180px; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-btn-lg);
  background: #fff; color: var(--heading); font-size: 1rem;
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__input:focus, .mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--border-strong); box-shadow: none; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__submit {
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-btn-lg);
  background: var(--cta); background-image: var(--cta-gradient); background-origin: border-box; color: #fff;
  box-shadow: var(--press-cta); font: 700 .9375rem/1 var(--font-body); text-shadow: 0 1px 1px rgba(120, 14, 50, .35);
}
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__submit:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cta-press); }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__submit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__status { margin-top: 6px; font-size: .8125rem; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__status:empty { display: none; }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__status.is-success { color: var(--success); }
.mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__status.is-error { color: var(--error); }

/* Desktop height cap so header + footer stay in view and the body scrolls */
@media (min-width: 576px) {
  .mfuk-lucky-draw-modal .modal-dialog-scrollable { height: auto; max-height: calc(100% - 3.5rem); }
  .mfuk-lucky-draw-modal .modal-dialog-scrollable .modal-content { max-height: min(820px, calc(100vh - 3.5rem)); }
}

/* Mobile: bottom sheet */
@media (max-width: 575.98px) {
  .mfuk-lucky-draw-modal .modal-dialog {
    display: flex; align-items: flex-end; max-width: none; width: 100%; height: 100%; min-height: 100%; margin: 0;
  }
  .mfuk-lucky-draw-modal.fade .modal-dialog { transform: translateY(100%); transition: transform .3s var(--ease); }
  .mfuk-lucky-draw-modal.show .modal-dialog { transform: none; }
  .mfuk-lucky-draw-modal .modal-dialog-scrollable .modal-content,
  .mfuk-lucky-draw-modal .modal-content {
    width: 100%; max-height: calc(100dvh - 24px); max-height: calc(100vh - 24px);
    border-radius: 22px 22px 0 0;
  }
  @supports (height: 100dvh) {
    .mfuk-lucky-draw-modal .modal-dialog-scrollable .modal-content,
    .mfuk-lucky-draw-modal .modal-content { max-height: calc(100dvh - 24px); }
  }
  .mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__header { padding: 24px 16px 20px 18px; gap: 12px; }
  .mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__header::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
    border-radius: 4px; background: rgba(255, 255, 255, .35);
  }
  .mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__header-icon { flex-basis: 48px; width: 48px; height: 48px; font-size: 1.25rem; border-radius: 14px; }
  .mfuk-lucky-draw-modal .modal-title { font-size: 1.1875rem; }
  .mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__header-tagline { font-size: .8125rem; }
  .mfuk-lucky-draw-modal .modal-body { padding: 18px 16px 4px; overscroll-behavior: contain; }
  .mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__progress { padding: 14px; gap: 12px; }
  .mfuk-lucky-draw-modal__entries { flex-basis: 56px; width: 56px; height: 56px; }
  .mfuk-lucky-draw-modal .mfuk-lucky-draw-modal__footer { padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .mfuk-lucky-draw-modal.fade .modal-dialog, .mfuk-lucky-draw-modal .mfuk-lucky-draw-banner__bar-fill { transition: none; }
}

/* --------------------------------------------------------------------------
   3. Services AJAX fragment (templates/servicesAjaxHtml.php via main.js
   fetchServices -> .services__content). Tiles built on .mf-svc-link.
   -------------------------------------------------------------------------- */
.modal__cat-services.mf-svc-grid {
  display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0;
}
@media (min-width: 576px) { .modal__cat-services.mf-svc-grid { grid-template-columns: 1fr 1fr; } }
.modal__cat-services .cat__service-link.mf-svc-tile {
  position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px;
  min-height: 60px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; color: var(--heading);
  text-decoration: none; box-shadow: none; transform: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.modal__cat-services .cat__service-link.mf-svc-tile::before { content: none; }
.modal__cat-services .cat__service-link.mf-svc-tile:hover,
.modal__cat-services .cat__service-link.mf-svc-tile:focus-visible {
  border-color: var(--cta-soft-2); background: var(--cta-tint); box-shadow: 0 6px 16px -10px rgba(224, 36, 90, .5);
}
.modal__cat-services .cat__service-link.mf-svc-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.modal__cat-services .mf-svc-tile .cat__service-icon.mf-svc-icon {
  width: 40px; height: 40px; flex: 0 0 40px; margin: 0; border-radius: 11px; background: var(--surface-2); color: var(--heading); font-size: 1rem;
}
.modal__cat-services .mf-svc-tile .cat__service-icon svg { width: 20px; height: 20px; }
.modal__cat-services .mf-svc-tile:hover .cat__service-icon.mf-svc-icon { background: #fff; color: var(--cta-edge); box-shadow: 0 0 0 1px var(--cta-soft-2); }
.modal__cat-services .mf-svc-tile .cat__service-name.mf-svc-link__title {
  flex: 1 1 auto; min-width: 0; margin: 0; font: 700 .9375rem/1.3 var(--font-body); color: var(--heading); text-align: left;
}
.modal__cat-services .mf-svc-tile__arrow { width: 32px; height: 32px; flex-basis: 32px; font-size: .8rem; }
.modal__cat-services .mf-svc-tile:hover .mf-svc-tile__arrow { background: var(--cta); color: #fff; transform: translateX(2px); }

/* ==========================================================================
   TOASTS  (public/assets/js/toast.js -> #mf-toasts > .mf-toast)
   White card, status icon + title + message, 44px close, progress bar.
   Mobile: top-centre just below the sticky header (JS sets --mf-toast-top),
   clear of the bottom Add-to-Cart/pay bars and the cookie sheet.
   Desktop (>=768px): top-right. Newest on top, max 3.
   ========================================================================== */
.mf-toasts {
  --mf-toast-top: 0px;
  position: fixed; z-index: 1080; /* above header 1030, drawers 1045, cookie sheet 1050, modals ~1055 */
  top: max(calc(var(--mf-toast-top) + 8px), calc(env(safe-area-inset-top, 0px) + 8px));
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.mf-toast {
  --t-fg: #475467; --t-tint: #F2F4F7; --t-bar: #98A2B3;
  position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: start; column-gap: 12px;
  width: 100%; max-width: 440px; padding: 12px 4px 14px 14px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(41, 47, 59, .07), 0 12px 32px -6px rgba(41, 47, 59, .22), 0 2px 6px rgba(41, 47, 59, .06);
  font-family: var(--font-body); color: var(--body); text-align: left;
  opacity: 0; transform: translateY(-10px) scale(.98);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.mf-toast.is-in { opacity: 1; transform: none; }
.mf-toast.is-out { opacity: 0; transform: translateY(-6px) scale(.98); transition-duration: .16s; transition-timing-function: ease-in; }
.mf-toast--success { --t-fg: #067647; --t-tint: #DCFAE6; --t-bar: #17B26A; }
.mf-toast--error   { --t-fg: #C01048; --t-tint: #FFE4E8; --t-bar: var(--cta, #F83A5A); }
.mf-toast--warning { --t-fg: #B54708; --t-tint: #FEF0C7; --t-bar: #F79009; }
.mf-toast--info    { --t-fg: #4338CA; --t-tint: #E0E7FF; --t-bar: #6366F1; }
.mf-toast__icon {
  display: grid; place-items: center; width: 36px; height: 36px; margin-top: 2px; border-radius: 50%;
  background: var(--t-tint); color: var(--t-fg);
}
.mf-toast__svg { width: 20px; height: 20px; }
.mf-toast__text { min-width: 0; padding-top: 3px; }
.mf-toast__title { margin: 0 0 2px; font: 700 .9375rem/1.35 var(--font-body); color: var(--heading, #292F3B); }
.mf-toast__msg { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--body, #484F5E); overflow-wrap: anywhere; }
.mf-toast__msg:empty { display: none; }
.mf-toast__close {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -6px 0 -6px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: #667085; cursor: pointer;
  touch-action: manipulation; transition: background-color .15s ease, color .15s ease;
}
.mf-toast__close:hover { background: var(--surface-2, #F1F3F7); color: var(--heading, #292F3B); }
.mf-toast__close:focus-visible { outline: 2px solid var(--heading, #292F3B); outline-offset: -2px; }
.mf-toast__x { width: 18px; height: 18px; }
.mf-toast__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--t-bar); opacity: .85; transform-origin: left center;
}
@media (min-width: 768px) {
  .mf-toasts { left: auto; right: max(24px, env(safe-area-inset-right, 0px)); width: 400px; align-items: stretch; }
  .mf-toast { max-width: none; }
  .mf-toast__msg { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-toast, .mf-toast.is-out { transform: none; transition: opacity .01ms; }
}
