/* Shared tenant responsive imagery. Keep this breakpoint aligned across themes. */
.responsive-background,
[data-responsive-background] {
  background-image: var(--responsive-gradient, none), var(--responsive-desktop) !important;
  background-position: center, var(--responsive-desktop-position, center center) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
[data-responsive-overlay] {
  background-image:
    linear-gradient(rgba(0,0,0,var(--responsive-overlay)), rgba(0,0,0,var(--responsive-overlay))),
    var(--responsive-desktop) !important;
}
[data-responsive-picture] img {
  object-position: var(--responsive-desktop-position, center center) !important;
}
@media (max-width: 767px) {
  .responsive-background,
  [data-responsive-background] {
    background-image: var(--responsive-gradient, none), var(--responsive-mobile, var(--responsive-desktop)) !important;
    background-position: center, var(--responsive-mobile-position, center center) !important;
  }
  [data-responsive-overlay] {
    background-image:
      linear-gradient(rgba(0,0,0,var(--responsive-overlay)), rgba(0,0,0,var(--responsive-overlay))),
      var(--responsive-mobile, var(--responsive-desktop)) !important;
  }
  [data-responsive-picture] img {
    object-position: var(--responsive-mobile-position, center center) !important;
  }
}

/* Keep long tenant-authored hero copy inside a phone viewport. This is scoped
   to the shared Classic homepage hero and does not alter theme composition. */
@media (max-width: 767px) {
  .hero-premium[data-responsive-background] .hero-inner {
    max-width: 100%;
    overflow: hidden;
  }
  .hero-premium[data-responsive-background] .hero-title {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  .hero-premium[data-responsive-background] .hero-overlay {
    background: linear-gradient(180deg, rgba(12,10,18,.58), rgba(12,10,18,.78));
  }
}
.footer-privacy { padding: 0 20px 28px; }
.cookie-preferences-open { position: static; display: inline-flex; max-width: 100%; min-height: 38px; padding: .45rem .7rem; font-size: .75rem; line-height: 1.2; }
/* Keep privacy controls compact independently of tenant heading/button sizes. */
#cookie-preferences-dialog{box-sizing:border-box;max-width:28rem;width:calc(100% - 1.5rem);max-height:calc(100dvh - 2rem);overflow:auto;border:0;border-radius:.75rem;padding:1rem;color:inherit;background:var(--color-surface,#fff);box-shadow:0 .75rem 2.5rem rgba(0,0,0,.25);font-size:.875rem;line-height:1.45}
#cookie-preferences-dialog::backdrop{background:rgba(0,0,0,.45)}
#cookie-preferences-dialog h2{font-size:1.125rem;line-height:1.3;margin:0 2.25rem .6rem 0}
#cookie-preferences-dialog p{font-size:.875rem;line-height:1.45;margin:.5rem 0 .75rem}
.cookie-preferences-close{float:right;width:44px;height:44px;margin:-.5rem -.5rem 0 0;border:0;background:transparent;font-size:1.5rem;line-height:1;cursor:pointer}
.cookie-preferences-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
#cookie-preferences-dialog .cookie-preferences-actions form{flex:1 1 10rem;margin:0}
#cookie-preferences-dialog .btn,.cookie-consent-banner .btn{min-height:44px;padding:.55rem .75rem;font-size:.8125rem;line-height:1.3;letter-spacing:normal;white-space:normal}
#cookie-preferences-dialog .cookie-preferences-actions .btn{width:100%}
.cookie-consent-banner{box-sizing:border-box;position:fixed;z-index:79;left:.75rem;right:.75rem;bottom:4.75rem;max-width:36rem;margin:auto;padding:.75rem;border-radius:.75rem;background:var(--color-surface,#fff);color:inherit;box-shadow:0 .5rem 2rem rgba(0,0,0,.2);display:flex;gap:.75rem;align-items:center;justify-content:space-between}
.cookie-consent-banner h2{font-size:.9375rem;line-height:1.3;margin:0 0 .25rem}
.cookie-consent-banner p{font-size:.8125rem;line-height:1.4;margin:0}
.cookie-consent-banner>.btn{flex:0 0 9rem}
@media(max-width:600px){
  .cookie-consent-banner{align-items:stretch;flex-direction:column;gap:.5rem;bottom:calc(5.4rem + env(safe-area-inset-bottom));padding:.65rem .75rem}
  .cookie-consent-banner>.btn{flex:auto;align-self:flex-start;min-height:44px}
  .footer-privacy{text-align:center}
}
/*
 * customer-website-responsive.css
 * Shared responsive hardening for ALL customer salon websites and themes.
 * Loaded LAST (after base/enhancements/premium/theme CSS) so these fixes
 * apply to every theme without editing each one.
 *
 * Breakpoints used across the site:
 *   ≤480px  small phones · ≤767px large phones · ≤1023px tablets · ≥1024px desktop
 */

/* Font tokens come from the validated published choices. Do not override
   heading/body or booking overrides here; base.css supplies local Inter. */

/* ---------- 1. Global overflow protection ---------- */
/* Belt-and-braces: no horizontal scrolling anywhere. Individual fixes below
   address the actual causes (wide tables, iframes, long words). */
/* overflow-x: clip (NOT hidden) — clip doesn't create a scroll container, so
   position: sticky (header, book bar, basket) keeps working on iOS/WebViews. */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe, svg, embed, object { max-width: 100%; }
img, video { height: auto; }
iframe { border: 0; }
h1, h2, h3, h4, p, li, a, .brand-name, .opt-name, .summary-value { overflow-wrap: break-word; }
main, main > *, .container, .section, .card, .account-card, .account-panel,
.cf-shell, .cf-card, .journey-card, .booking-step, .booking-options,
.form-grid, .form-row, .contact-layout, .account-layout, .split { min-width: 0; }
input, select, textarea, button { max-width: 100%; }
fieldset { min-inline-size: 0; max-inline-size: 100%; }
legend { max-inline-size: 100%; padding-inline: .2em; overflow-wrap: anywhere; }
fieldset label { min-width: 0; overflow-wrap: anywhere; }

/* Anchored sections must not hide under the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h, 72px) + 12px); }

/* Wide tables (rich text pages, price lists) scroll instead of breaking layout. */
.rich-text table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* ---------- 2. Header / navigation ---------- */
/* Sites with many nav items (Shop, Offers, My Account…) wrapped into two rows
   between 761–1023px. Fix: use the hamburger drawer for the whole ≤1023px
   range — nav links must NEVER wrap under each other. These rules extend the
   base.css ≤760px drawer up to 1023px (this file loads after base/theme CSS). */
.header-cta { display: none; }
@media (max-width: 1279px) {
  .nav-toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h, 72px); left: 0; right: 0;
    background: var(--white, #fff); border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
    box-shadow: var(--shadow-lg, 0 16px 48px rgba(15, 18, 34, 0.14));
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 10px;
    /* Cap height and scroll if a salon has many nav items. */
    max-height: calc(100vh - var(--header-h, 72px)); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap; }
  .site-nav a { padding: 12px 8px; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
  .nav-cta { width: 100%; }
  /* Keep Book Online visible in the collapsed header bar. */
  .header-cta { display: inline-flex; margin-left: auto; white-space: nowrap; }
  .header-inner { gap: 10px; }
  .header-social { padding: 6px 0; }
}
@media (max-width: 767px) {
  /* Keep the logo compact so it never collides with the CTA + hamburger. */
  .brand-logo { max-height: 40px; max-width: min(42vw, 180px); object-fit: contain; }
  .brand-name { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  /* At narrow effective widths (including 200% zoom), the drawer already
     contains the booking link. Remove this duplicate header CTA so the logo
     and the 44px menu target remain fully reachable rather than overflowing. */
  .header-cta { display: none; }
  .brand { min-width: 0; }
  .brand-name { max-width: calc(100vw - 68px); overflow-wrap: anywhere; }
}
/* Desktop (≥1280px): full inline nav.  At medium laptop widths the drawer is
   deliberately retained above, rather than clipping the last tenant-authored
   navigation label behind the CTA. */
@media (min-width: 1280px) {
  .site-nav ul { flex-wrap: nowrap; }
  .site-nav a { white-space: nowrap; }
  .site-nav { min-width: 0; }
}
@media (min-width: 1280px) and (max-width: 1600px) {
  .header-inner { gap: 8px; }
  .site-nav { flex: 1 1 auto; justify-content: flex-end; gap: 6px; }
  .site-nav-published .nav-link,
  .site-nav-published .nav-parent-toggle,
  .site-nav:not(.site-nav-published) a { padding-inline: 7px; font-size: .84rem; }
  .site-nav .nav-cta { padding-inline: 15px; font-size: .88rem; }
  .site-nav .nav-account span { display: none; }
}
/* A tenant can publish more/longer labels than any fixed desktop breakpoint
   can predict. site.js detects a genuinely overflowing header and switches to
   the same accessible drawer rather than clipping a final link or CTA. */
@media (min-width: 1280px) {
  .site-header.nav-overflow .nav-toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .site-header.nav-overflow .site-nav {
    display: none; position: absolute; top: var(--header-h, 72px); left: 0; right: 0;
    background: var(--white, #fff); border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
    box-shadow: var(--shadow-lg, 0 16px 48px rgba(15,18,34,.14)); flex-direction: column;
    align-items: stretch; padding: 12px 20px 20px; gap: 10px; max-height: calc(100vh - var(--header-h, 72px)); overflow-y: auto;
  }
  .site-header.nav-overflow .site-nav.open { display: flex; }
  .site-header.nav-overflow .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.nav-overflow .site-nav a { padding: 12px 8px; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
  .site-header.nav-overflow .site-nav .nav-cta { width: 100%; }
  .site-header.nav-overflow .site-nav-published .site-nav-list { display: none; }
  .site-header.nav-overflow .site-nav-published .site-nav-mobile { display: block; }
}

/* ---------- 3. Hero ---------- */
@media (max-width: 480px) {
  .hero { min-height: 70vh; min-height: 70svh; padding: 56px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero.has-image { padding: 64px 0 56px; }
}

/* ---------- 4. Cards, service rows, filters ---------- */
@media (max-width: 480px) {
  .card { padding: 20px 18px; }
  .service-row { padding: 16px 16px; }
  .service-row .btn { width: 100%; }
  /* Service category names are meaningful navigation. Complete pills wrap
     into visible rows instead of disappearing beyond a horizontal strip. */
  .filter-bar { flex-wrap: wrap; overflow-x: visible; padding-bottom: 6px; }
  .filter-btn { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .staff-card .btn { width: 100%; }
}

/* ---------- 5. Gallery / lightbox ---------- */
@media (max-width: 480px) {
  /* Keep 2 columns only when thumbs stay a usable size; single column below 360px. */
  .gallery-grid, .gallery-grid.large { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 359px) {
  .gallery-grid, .gallery-grid.large { grid-template-columns: 1fr; }
}
.lightbox { padding: max(4vh, 16px) max(4vw, 12px); }
.lightbox-close { top: max(10px, env(safe-area-inset-top)); right: 12px; }

/* ---------- 6. Forms (contact, booking, account, consultation) ---------- */
/* 16px inputs stop iOS Safari zooming the page on focus. */
input, select, textarea { font-size: 16px; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; flex-shrink: 0; }

/* Commerce toolbars inherit tenant button sizes. Let their text field yield
   first, so a Search/Apply control never exits a narrow phone viewport. */
@media (max-width: 560px) {
  .shop-toolbar, .discount-row { width: 100%; min-width: 0; }
  .shop-toolbar input, .discount-row input { min-width: 0; }
  .product-detail-grid, .product-gallery, .product-info,
  .add-to-cart-form { width: 100%; min-width: 0; max-width: 100%; }
}
@media (max-width: 480px) {
  .form-field .btn, #booking-form .btn, .booking-actions .btn { width: 100%; }
  .booking-actions { flex-direction: column-reverse; }
  .form-row, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-field, .cf-field { min-width: 0; }
  .form-field > input, .form-field > select, .form-field > textarea,
  .cf-field > .cf-input { width: 100%; min-width: 0; box-sizing: border-box; }
  .form-field > label, .cf-label, fieldset > legend { overflow-wrap: anywhere; }
}

/* ---------- 7. Booking calendar / slots / summary ---------- */
@media (max-width: 480px) {
  .bk-cal-day, .bk-cal-skel span { min-height: 42px; }
  .bk-cal-nav { width: 44px; height: 44px; }
  .booking-slots { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .booking-slot { min-height: 44px; }
  .booking-option { padding: 1rem; }
  /* Summary rows stay readable when values are long (service names, fees). */
  .summary-row { flex-wrap: wrap; }
}

/* ---------- 8. Contact page / map ---------- */
@media (max-width: 480px) {
  .map-wrap iframe, .rich-text iframe { height: 260px; }
  .contact-list li { flex-wrap: wrap; }
}

/* ---------- 9. Footer ---------- */
@media (max-width: 480px) {
  .footer-grid { padding: 44px 20px 26px; }
  .footer-links a { display: inline-block; padding: 4px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- 10. Floating elements ---------- */
/* Respect iPhone home-indicator safe area on the sticky book bar. */
.mobile-book-bar .btn { min-height: 48px; }
/* Hide the book bar wherever it could cover payment/checkout actions
   (booking is already handled in premium.css). */
body.route-checkout .mobile-book-bar,
body.route-cart .mobile-book-bar,
body.route-book .mobile-book-bar,
body.route-forms .mobile-book-bar,
body.route-deposit .mobile-book-bar,
body.route-waiting-list .mobile-book-bar { display: none !important; }
body.route-checkout .whatsapp-float,
body.route-book .whatsapp-float,
body.route-deposit .whatsapp-float,
body.route-forms .whatsapp-float { display: none !important; }
@media (max-width: 767px) {
  /* Fixed controls need reserved document space; they must never cover a final
     account, booking, payment or consent action. */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.route-book { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-book-bar { bottom: 0; }
}

/* ---------- 11. Touch devices ---------- */
@media (pointer: coarse) {
  .btn, .filter-btn, .booking-slot, .bk-cal-nav, .nav-cta { min-height: 44px; }
  /* Hover-only transforms feel glitchy on touch — disable them. */
  .card:hover, .service-row:hover, .booking-option:hover { transform: none; }
}

/* ---------- 12. Tablet refinements ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .gallery-grid.large { grid-template-columns: repeat(2, 1fr); }
  .booking-when { gap: 1rem; }
}

/* ---------- 13. Local SEO landing pages ---------- */
.local-areas-grid,
.local-service-grid,
.local-people-grid,
.local-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.local-facts { margin-block: 2.5rem; }
.local-service-card { display: flex; flex-direction: column; align-items: flex-start; }
.local-service-card .btn { margin-top: auto; }
.local-service-facts { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.local-contact address { font-style: normal; }
@media (max-width: 390px) {
  .local-service-grid, .local-people-grid, .local-review-grid, .local-areas-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .local-service-card .btn { width: 100%; }
}

/* ---------- 14. Public team cards and practitioner profiles ---------- */
/* This stylesheet loads after every theme, keeping the spacing contract
   consistent while retaining each tenant's colours, type and button styling. */
.staff-card .card-actions,
.staff-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
}
.staff-card .card-actions .btn,
.staff-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0;
  padding: 12px 20px;
}
.practitioner-profile-layout {
  max-width: 1080px;
  margin-inline: auto;
}
.practitioner-profile-layout.practitioner-profile-without-photo {
  max-width: 780px;
}
.practitioner-profile-biography {
  display: flow-root;
  margin-bottom: 28px;
}
.practitioner-profile-media {
  float: left;
  width: clamp(220px, 32%, 340px);
  max-width: 35%;
  margin: 0 clamp(24px, 3vw, 40px) 20px 0;
}
.practitioner-profile-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 8px 28px rgba(0, 0, 0, .1));
}
.practitioner-profile-content {
  min-width: 0;
}
.practitioner-profile-biography > h2 {
  margin-bottom: 12px;
}
.practitioner-profile-details {
  clear: both;
}
.practitioner-profile-details > section {
  margin-bottom: 28px;
}
.practitioner-profile-details > section h2 {
  margin-bottom: 12px;
}
.practitioner-profile-actions {
  margin-top: 32px;
}
@media (max-width: 767px) {
  .practitioner-profile {
    padding-top: 48px;
  }
  .practitioner-profile-media {
    float: none;
    width: clamp(200px, 64vw, 240px);
    max-width: 100%;
    margin: 0 auto 28px;
  }
  .practitioner-profile-biography {
    margin-bottom: 24px;
  }
  .practitioner-profile-details > section {
    margin-bottom: 24px;
  }
}
@media (max-width: 480px) {
  .staff-card .card-actions,
  .staff-actions {
    align-items: stretch;
  }
  .staff-card .card-actions .btn,
  .staff-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }
  .practitioner-profile-actions .btn {
    width: 100%;
  }
}
