/* HouseSigns Configurator — full-screen "designer" overlay */

.hs-configurator { margin: 0; font-family: inherit; }

.hs-fields { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 4px; }
.hs-field  { display: flex; flex-direction: column; gap: 4px; }

.hs-label {
  font-size: 12px; font-weight: 700; color: #333;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.hs-hint { font-weight: 400; text-transform: none; color: #6b6b6b; font-size: 11px; }

.hs-input {
  width: 100%; padding: 11px 12px;
  border: 1px solid #d5d5d5; border-radius: 8px;
  font-size: 16px;            /* 16px avoids iOS zoom-on-focus */
  line-height: 1.3; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box; background: #fff; color: #111;
}
.hs-input:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.hs-input::placeholder { color: #c4c4c4; opacity: 1; }   /* ghost, not a filled value */

textarea.hs-input {
  resize: none; overflow: hidden;
  height: 84px; min-height: 84px; font-family: inherit;   /* shows the multi-line placeholder */
}

.hs-counter  { font-size: 11px; color: #6b6b6b; align-self: flex-end; transition: color 0.2s; }
.hs-num-counter { display: block; min-height: 0; }
.hs-counter.hs-cap { color: #b7791f; font-weight: 600; }   /* transient cap hint */
.hs-validate { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #c0392b; }
.hs-fit {
  margin: 2px 0 0; font-size: 12px; color: #b7791f;
  background: #fff8e6; border-radius: 6px; padding: 7px 10px; line-height: 1.35;
}

/* Slim product-spec line (trust chips live on the main site, not duplicated here) */
.hs-spec { margin: 8px 0 2px; font-size: 12px; color: #6b6b6b; letter-spacing: 0.02em; }

/* "Wijzig ontwerp" link in the cart */
.hs-edit-link { display: inline-block; margin-top: 4px; font-size: 12px; text-decoration: underline; }

/* ── Live preview (inside the designer) ──────────────────────────────────── */
.hs-preview-wrap {
  position: sticky; top: 0; z-index: 2;
  background: radial-gradient(135% 105% at 50% 14%, #ffffff 0%, #f2f2f2 52%, #e6e6e6 100%);
  padding: 16px 12px 10px; text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}
.hs-preview { line-height: 0; text-align: center; position: relative; }
.hs-preview svg {
  display: block; margin: 0 auto; width: auto; height: auto;
  max-width: 92%; max-height: 30vh;     /* aspect preserved → square stays square */
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.26)) drop-shadow(0 2px 4px rgba(0,0,0,0.14));
}
/* The laser lays out glyphs by plain advance sums — disable browser kerning and
   any inherited theme letter/word-spacing so the preview matches the cut exactly. */
.hs-preview svg text {
  font-kerning: none;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-transform: none !important;
}
.hs-live-chip {
  margin: 9px 0 1px; font-size: 11.5px; font-weight: 600; color: #777;
}
.hs-live-chip .hs-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #00b67a; margin-right: 5px; vertical-align: middle;
  transition: background 0.2s;
}
/* Empty state: not yet "their" design → neutral dot + lighter text */
.hs-preview-wrap.hs-empty .hs-dot { background: #c4c4c4; }
.hs-preview-wrap.hs-empty .hs-live-chip { color: #999; font-weight: 500; }

/* ── Trigger button on the product page ──────────────────────────────────── */
.hs-open-btn {
  display: block; width: 100%; box-sizing: border-box;
  margin: 14px 0 0; padding: 16px 18px;
  background: linear-gradient(160deg, #E3C04A 0%, #C9A227 48%, #A9851C 100%); color: #fff;
  border: 0; border-radius: 10px; cursor: pointer;
  font-size: 17px; font-weight: 700; line-height: 1.1;
  letter-spacing: 0.01em; text-align: center;
  text-shadow: 0 1px 0 rgba(0,0,0,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 14px rgba(201,162,39,0.35);
  transition: filter 0.15s, transform 0.05s;
}
.hs-open-btn:hover { filter: brightness(0.96); }
.hs-open-btn:active { transform: translateY(1px); }
.hs-open-btn .hs-open-ico { margin-right: 6px; }
.hs-open-sub { margin: 7px 0 2px; font-size: 12px; color: #6b6b6b; text-align: center; }

/* Hide the theme's quantity + real add-to-cart (the designer drives it) */
form.cart.hs-overlay-mode .quantity { display: none !important; }
.single_add_to_cart_button.hs-atc-hidden,
button.hs-atc-hidden, input.hs-atc-hidden {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important;
  pointer-events: none !important;
}

/* ── The overlay ─────────────────────────────────────────────────────────── */
html.hs-modal-open, html.hs-modal-open body { overflow: hidden !important; }

.hs-overlay { position: fixed; inset: 0; z-index: 100000; opacity: 0; transition: opacity 0.2s ease; }
.hs-overlay[hidden] { display: none !important; }
.hs-overlay.is-open { opacity: 1; }
.hs-ov-backdrop { position: absolute; inset: 0; background: rgba(15,15,15,0.55); }

.hs-ov-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0;
  display: flex; flex-direction: column;
  background: #fff; overflow: hidden;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.hs-overlay.is-open .hs-ov-sheet { transform: none; }

/* Drag-handle pill (mobile slide-up affordance) */
.hs-ov-grip { flex: 0 0 auto; width: 40px; height: 4px; border-radius: 999px; background: #dadada; margin: 8px auto 0; }

.hs-ov-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 14px; border-bottom: 1px solid #f0f0f0; background: #fff;
}
.hs-ov-close {
  flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #f4f4f4; color: #555; font-size: 15px; line-height: 1; cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
/* 44px hit area (touch guideline) without enlarging the visible glyph. */
.hs-ov-close::after { content: ''; position: absolute; inset: -6px; }
.hs-ov-close:hover { background: #ececec; color: #111; }
.hs-ov-titles { display: flex; flex-direction: column; line-height: 1.25; }
.hs-ov-title  { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #0d0d0d; }
.hs-ov-sub    { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: #9a9a9a; }

.hs-ov-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* Short viewports (landscape phone): un-stick the preview so the fields stay reachable. */
@media (max-height: 560px) { .hs-preview-wrap { position: static !important; } .hs-preview svg { max-height: 22vh; } }
/* Typing mode (JS sets .hs-kb + --hs-kb-preview while the keyboard is open):
   compact header, READABLE live preview (~34% of the visible height, set in px
   from visualViewport), footer/helper hidden, active field scrolled under the
   preview. The customer sees the plate change while typing. */
.hs-overlay.hs-kb .hs-ov-grip { display: none; }
.hs-overlay.hs-kb .hs-ov-head { padding-top: 6px; padding-bottom: 6px; }
.hs-overlay.hs-kb .hs-ov-title { font-size: 14px; }
.hs-overlay.hs-kb .hs-ov-sub { display: none; }
.hs-overlay.hs-kb .hs-preview-wrap { padding: 8px 12px 6px; }
.hs-overlay.hs-kb .hs-preview svg { max-height: var(--hs-kb-preview, 150px); }
.hs-overlay.hs-kb .hs-live-chip { display: none; }
.hs-overlay.hs-kb .hs-ov-foot { display: none; }          /* not needed while typing; frees space */
.hs-overlay.hs-kb .hs-open-sub { display: none; }
.hs-overlay.hs-kb .hs-spec { display: none; }
.hs-overlay.hs-kb .hs-ov-body { padding-bottom: 40vh; }    /* lets the last field scroll up under the preview */

/* Action row — flows at the end of the scroll content (NOT pinned to the bottom). */
.hs-ov-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f0f0; background: #fff;
}
.hs-ov-price { white-space: nowrap; line-height: 1.15; }
.hs-ov-price del { display: block; color: #b0b0b0; font-weight: 400; font-size: 12px; }
.hs-ov-price ins { text-decoration: none; color: #111; font-weight: 800; font-size: 18px; }
.hs-done {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 15px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(160deg, #E3C04A 0%, #C9A227 48%, #A9851C 100%); color: #fff;
  font-size: 16px; font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 10px rgba(201,162,39,0.3);
  transition: filter 0.15s, transform 0.05s;
}
.hs-done:hover { filter: brightness(0.96); }
.hs-done:active { transform: translateY(1px); }
.hs-done.hs-busy {
  opacity: 0.75; cursor: wait; pointer-events: none;
  animation: hs-busy-pulse 1.1s ease-in-out infinite;
}
@keyframes hs-busy-pulse { 50% { opacity: 0.55; } }

/* Desktop: a centered modal instead of a full-screen sheet */
@media (min-width: 769px) {
  .hs-overlay { display: flex; align-items: center; justify-content: center; }  /* [hidden] still wins */
  .hs-ov-grip { display: none; }
  .hs-ov-sheet {
    position: relative; inset: auto;
    width: 560px; max-width: 94vw; max-height: 92vh;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.04);
    transform: translateY(18px) scale(0.98);
  }
  .hs-overlay.is-open .hs-ov-sheet { transform: none; }
  .hs-preview svg { max-height: 240px; }
}

/* ── "Stijl aanpassen" — size presets + alignment (v3.24) ─────────────────── */
.hs-style-toggle {
  display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 8px 2px; margin: 2px 0 0;
  font-size: 12.5px; font-weight: 600; color: #555; cursor: pointer;
}
.hs-style-toggle .hs-hint { font-weight: 400; color: #9a9a9a; }
.hs-style-arrow { display: inline-block; transition: transform 0.15s ease; color: #9a9a9a; }
.hs-style-toggle.is-open .hs-style-arrow { transform: rotate(90deg); }
.hs-style-panel { padding: 2px 0 6px; }
.hs-style-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 8px;
}
.hs-style-lbl {
  flex: 0 0 104px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; color: #777;
}
.hs-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.hs-chip {
  min-height: 34px; padding: 6px 13px; border-radius: 17px;
  border: 1px solid #ddd; background: #f7f7f7; color: #444;
  font-size: 12.5px; font-weight: 600; cursor: pointer; line-height: 1;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.hs-chip:hover { border-color: #bbb; }
.hs-chip.is-active {
  background: #1a1a1a; border-color: #1a1a1a; color: #fff;
}
@media (max-width: 480px) {
  .hs-style-lbl { flex-basis: 100%; margin-bottom: -2px; }
  .hs-chip { min-height: 40px; }   /* comfortable touch targets on phones */
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hs-overlay, .hs-ov-sheet, .hs-done, .hs-open-btn, .hs-style-arrow { transition: none !important; }
}

/* ── Icons (v3.29): paid add-on chips under the text field ─────────────── */
.hs-icons { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 6px 0 2px; }
.hs-icons-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #444; }
.hs-icons-lbl .hs-hint { text-transform: none; letter-spacing: 0; }
/* One row, always: compact chips; if a screen is narrower than 4 chips, the row scrolls sideways. */
.hs-icon-chips { display: flex; flex-wrap: nowrap; gap: 6px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.hs-icon-chips::-webkit-scrollbar { display: none; }
.hs-icon-chip { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; white-space: nowrap; padding: 6px 10px; font-size: 12px; }
.hs-icon-chip svg { display: inline-block; vertical-align: middle; width: 15px; height: 15px; }
@media (max-width: 400px) { .hs-icon-chip { padding: 6px 8px; font-size: 12px; gap: 4px; } }
.hs-ov-addon { display: block; font-size: 12px; font-weight: 600; color: #2e7d32; margin-top: 2px; }

/* ── "Mail mij mijn ontwerp" (v3.36) ────────────────────────────────────────── */
.hs-mailme { padding: 0 16px 18px; text-align: center; }
.hs-mailme-toggle { background: none; border: 0; padding: 6px 4px; font-size: 13px; color: #555; text-decoration: underline; cursor: pointer; }
.hs-mailme-toggle:hover { color: #111; }
.hs-mailme-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 6px; text-align: left; }
.hs-mailme-form .hs-mailme-email { flex: 1 1 200px; max-width: 320px; }
.hs-mailme-consent { flex: 1 1 100%; font-size: 12px; color: #555; display: flex; gap: 6px; align-items: center; justify-content: center; }
.hs-mailme-send { padding: 10px 16px; border: 1px solid #111; border-radius: 8px; background: #111; color: #fff; font-weight: 600; cursor: pointer; }
.hs-mailme-send:disabled { opacity: .6; cursor: default; }
.hs-mailme-msg { flex: 1 1 100%; font-size: 12px; text-align: center; min-height: 1em; }
.hs-mailme-msg.ok { color: #2e7d32; }
.hs-mailme-msg.err { color: #b32d2e; }
.hs-overlay.hs-kb .hs-mailme { display: none; }

/* ── Mobile sticky bar (v3.36.3, replaces the FPD-era snippet 42) ────────── */
.hs-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.10); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(110%);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease; }
.hs-sticky-bar.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
body.hs-sticky-pad { padding-bottom: 82px !important; }
.hs-sticky-price { display: flex; flex-direction: column; justify-content: center; min-width: 86px; line-height: 1.1; }
.hs-sticky-price-main { font-size: 20px; font-weight: 800; color: #111; white-space: nowrap; }
.hs-sticky-price-sub { margin-top: 3px; font-size: 11.5px; font-weight: 500; color: #666; white-space: nowrap; }
.hs-sticky-btn { flex: 1; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 9px; background: #d6b432; color: #fff; font-size: 16px; font-weight: 800; line-height: 1;
  cursor: pointer; -webkit-appearance: none; appearance: none; }
.hs-sticky-btn:active { transform: translateY(1px); }
@media (min-width: 769px) { .hs-sticky-bar { display: none !important; } }

/* ── Footer price/CTA on narrow screens (v3.36.5): the price block clones the
   PDP price incl. old price + "Bespaar" badge, which squeezed the CTA into two
   lines on mobile. Compact price, unbreakable button. ────────────────────── */
.hs-ov-foot .hs-done { white-space: nowrap; }
@media (max-width: 520px) {
  .hs-ov-foot .hs-ov-price del { display: none; }
  .hs-ov-foot .hs-ov-price .hs-saving-badge { display: none; }
  .hs-ov-foot .hs-ov-price { font-size: 20px; }
}

/* Wish loop (v3.37) */
.hs-wish { margin: 2px 0 6px; }
.hs-wish-link { background: none; border: 0; padding: 2px 0; font-size: 12.5px; color: #777; text-decoration: underline; cursor: pointer; }
.hs-wish-link:hover { color: #111; }
.hs-wish-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hs-wish-form .hs-wish-text { flex: 1 1 100%; }
.hs-wish-form .hs-wish-email { flex: 1 1 220px; }
.hs-wish-send { padding: 10px 16px; border: 1px solid #111; border-radius: 8px; background: #111; color: #fff; font-weight: 600; cursor: pointer; }
.hs-wish-send:disabled { opacity: .6; }
.hs-wish-msg { flex: 1 1 100%; font-size: 12px; min-height: 1em; }
.hs-wish-msg.ok { color: #2e7d32; }
.hs-wish-msg.err { color: #b32d2e; }
.hs-overlay.hs-kb .hs-wish { display: none; }
