/* FLM UX patch — 2026-11-15
   1. Privacy banner: compact, on-brand, delayed, never over the menu
   2. Mobile sticky CTA: visibility rules
   3. Call link in the mobile menu
   4. Booking: readable labels on phones
   Motion: transform/opacity only, 180–280ms, prefers-reduced-motion respected. */

/* ---------- 1. Privacy banner ---------- */
#flm-analytics-consent {
  font-family: "FLM Body", Arial, sans-serif;
  animation: flm-consent-in .28s cubic-bezier(.2, .7, .2, 1) 2.5s both;
}
html.flm-consent-now #flm-analytics-consent { animation-delay: 0s; }
@keyframes flm-consent-in {
  from { opacity: 0; transform: translateY(16px); visibility: hidden; }
  to   { opacity: 1; transform: none; visibility: visible; }
}
#flm-analytics-consent button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#flm-analytics-consent button:first-of-type {
  background: #2458cf;
  border-color: #2458cf;
  color: #fff;
}
body.flm-menu-open #flm-analytics-consent { display: none; }

@media (max-width: 768px) {
  #flm-analytics-consent {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 8px;
  }
  #flm-analytics-consent p { grid-column: 1 / -1; margin: 0; }
  #flm-analytics-consent button { margin: 0; min-height: 44px; padding: 8px; white-space: nowrap; }
  #flm-analytics-consent button:nth-of-type(1) { order: 1; }
  #flm-analytics-consent button:nth-of-type(3) { order: 2; }
  #flm-analytics-consent button:nth-of-type(2) {
    order: 3;
    padding: 8px 4px;
    background: none;
    border: 0;
    color: #475569;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 359px) {
  #flm-analytics-consent { grid-template-columns: 1fr 1fr; }
  #flm-analytics-consent button:nth-of-type(2) { grid-column: 1 / -1; min-height: 32px; }
}

/* ---------- 2. Mobile sticky CTA ---------- */
.fm-sticky-bar { transition: transform .26s cubic-bezier(.2, .7, .2, 1); }
body:has(#flm-analytics-consent) .fm-sticky-bar.is-visible,
body.flm-menu-open .fm-sticky-bar.is-visible {
  transform: translateX(-50%) translateY(200%);
}

/* ---------- 3. Call link in the mobile menu ---------- */
.flm-mobile-call {
  display: block;
  padding: 14px 16px;
  border-top: 1px solid #e2e8f0;
  color: #162444;
  font: 600 15px/1.2 "FLM Body", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

/* ---------- 4. Booking: readable labels on phones (were 8–10px) ---------- */
@media (max-width: 768px) {
  #fm-app .fm-progress { grid-template-columns: 1.2fr .9fr .9fr; }
  #fm-app .fm-progress-item {
    min-width: 0;
    gap: 2px;
    padding-inline: 1px;
    font-size: 10.5px;
    letter-spacing: .02em;
    white-space: nowrap;
  }
  #fm-app .fm-progress-item > span {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    font-size: 8.5px;
  }
  #fm-app .fm-mobile-label, #fm-app .fm-eyebrow { font-size: 11px; }
  #fm-app .fm-popular, #fm-app .fm-extras-kicker { font-size: 10.5px; }
  #fm-app #fm-service-choice-note, #fm-app #fm-extras-description { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #flm-analytics-consent { animation-duration: .01s; }
  .fm-sticky-bar { transition: none; }
}
