/* Tablet legibility (600px to 1180px). Phones (under 600px) and desktop (over 1180px) are unchanged. */

/* Tap to enlarge floor plans on /in-stock (tablet only) */
.fp-cb { display: none !important; }
.fp-open { display: block; pointer-events: none; cursor: default; }
.fp-hint { display: none; }
.fp-lb { display: none; }

@media (min-width: 600px) and (max-width: 1180px) {

  /* ---------- Buttons and tap targets ---------- */
  a.lux, button.lux, .lux,
  a.btn, button.btn, .btn,
  a.nw-btn, .nw-btn,
  a.cx-btn2, .cx-btn2,
  a.htd-cta, .htd-cta,
  button[type="submit"],
  input[type="submit"],
  .herovid .herocta a.lux, .herocta a.lux, .herocta .lux,
  .btn4 a.lux, .btn4 .lux,
  .nw-fin2 a.nw-cta {
    font-size: 13.5px !important;
    min-height: 46px !important;
    height: auto !important;
    max-height: none !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  header.site-header .hr a.lux.hbtn,
  header.site-header button.mtoggle,
  .hrow2 .mtoggle {
    font-size: 13px !important;
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    padding: 0 16px !important;
  }
  .mdrawer .dmenu-pin .lux,
  .mdrawer .dmenu-pin .dmenu-call,
  .mdrawer .dctas .lux {
    font-size: 13.5px !important;
    min-height: 46px !important;
  }

  /* ---------- Footer ---------- */
  .sf-acts .sf-btn,
  footer.sf .sf-acts a.sf-btn {
    font-size: 14px !important;
    min-height: 46px !important;
    height: 46px !important;
    max-height: 46px !important;
    padding: 0 18px !important;
  }
  .sf-strip a.sf-tag {
    font-size: 13px !important;
  }
  footer.sf .sf-col a,
  footer.sf .sf-col span,
  footer.sf summary.sf-h,
  footer.sf p.sf-h {
    font-size: 15px !important;
  }
  footer.sf .sf-legal,
  footer.sf .sf-legal .sf-in,
  footer.sf .sf-legal span,
  footer.sf .sf-legal a {
    font-size: 14px !important;
    color: #C9D6CF !important;
  }
  footer.sf .sf-legal a { color: #E3ECE7 !important; }

  /* ---------- Small labels and captions ---------- */
  p.kick, span.kick, a.kick, figcaption.kick,
  p.qkick, p.tm-k, p.cfglab, legend,
  .tile .tlb, .cfgopts .tlb,
  p.cfgnote,
  .srow .no, .chips li,
  p.csn, p.bcn, p.bcp-n, p.cx-note, p.cx-small, p.tag,
  figcaption {
    font-size: 13.5px !important;
  }

  /* ---------- Floating Get in touch: small circle so it covers less text ---------- */
  #bq-btn {
    box-sizing: border-box !important;
    left: max(12px, env(safe-area-inset-left, 0px)) !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    overflow: hidden;
    justify-content: center !important;
  }
  #bq-btn svg { width: 22px !important; height: 22px !important; margin: 0 !important; }

  /* ---------- In stock: floor plans big enough to read ---------- */
  .srow figure { max-width: none !important; }
  .srow figcaption { font-size: 14px !important; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .srow { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) !important; gap: 32px !important; }
}

/* Floor plan tap to enlarge, tablet only */
@media (min-width: 600px) and (max-width: 1180px) {
  .fp-open { pointer-events: auto; cursor: zoom-in; position: relative; }
  .fp-hint {
    display: inline-flex; align-items: center; gap: 6px;
    position: absolute; right: 10px; bottom: 10px;
    background: rgba(11, 46, 39, .88); color: #F3DFA0;
    font: 700 13px/1 Lato, sans-serif; letter-spacing: .08em; text-transform: uppercase;
    padding: 8px 10px; border-radius: 2px; pointer-events: none;
  }
  .fp-lb {
    position: fixed; inset: 0; z-index: 10050;
    background: rgba(6, 22, 18, .94);
    align-items: center; justify-content: center;
    padding: 56px 20px 20px;
  }
  .fp-cb:checked ~ .fp-lb { display: flex; }
  .fp-lb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #F2EEE4; }
  .fp-lb-close {
    position: absolute; top: 12px; right: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 18px;
    background: #C9A23F; color: #0B2E27;
    font: 700 14px/1 Lato, sans-serif; letter-spacing: .1em; text-transform: uppercase;
    cursor: pointer;
  }
}

/* ---------- Sauna designer: drawing full width on tablet ---------- */
@media (min-width: 761px) and (max-width: 1180px) {
  .cfggrid { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .cfgsvg text { font-size: 16px !important; }
  .cfgstage .shpframe, .shpstrip-below .shpframe { width: 100% !important; height: 170px !important; max-height: 170px !important; aspect-ratio: auto !important; }
}

/* Tablet portrait 600 to 768 inherits the phone "sticky compact drawing"
   (drawing pinned in a 200px scroll box). On tablet let it flow full size. */
@media (min-width: 600px) and (max-width: 768px) {
  .cfgleft {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
  }
  .cfgstage .cfgsvg { max-height: none !important; height: auto !important; }
}

/* ---------- Collections: drawing labels ---------- */
@media (min-width: 600px) and (max-width: 1180px) {
  .clt > svg.colx { max-width: 520px !important; }
}

/* Product drawings: larger labels on tablet (CSS font-size overrides the SVG attribute) */
@media (min-width: 600px) and (max-width: 1180px) {
  svg text[font-size="8"] { font-size: 11px; }
  svg text[font-size="9"] { font-size: 11.5px; }
  svg text[font-size="9.5"] { font-size: 12px; }
  svg text[font-size="10"] { font-size: 12.5px; }
  svg text[font-size="11"] { font-size: 13px; }
}


/* Hot tub package drawings: wider on portrait tablet, larger labels in two-col */
@media (min-width: 600px) and (max-width: 900px) {
  div:has(> article > svg.pkx) { grid-template-columns: 1fr !important; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  div:has(> article > svg.pkx) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  svg.pkx text { font-size: 14px !important; }
}

/* Cookie banner: slim bottom bar on tablet */
@media (min-width: 600px) and (max-width: 1180px) {
  #cc-b { padding: 6px 16px !important; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important; }
  #cc-b .in { gap: 10px 14px !important; align-items: center !important; flex-wrap: nowrap !important; }
  #cc-b p { flex: 1 1 auto !important; min-width: 0 !important; font-size: 13px !important; line-height: 1.35 !important; }
  #cc-b .cc-bt { flex: 0 0 auto !important; flex-wrap: nowrap !important; }
  #cc-b .cc-bt button, #cc-b .cc-bt button.p {
    min-height: 34px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
  body:has(#cc-b) { --cc-h: 52px; }
}
