/* HouseSigns Configurator styles */

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

.hs-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hs-hint {
  font-weight: 400;
  text-transform: none;
  color: #999;
  font-size: 11px;
}

/* Slimmer inputs */
.hs-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  font-size: 16px;          /* 16px avoids iOS zoom-on-focus */
  line-height: 1.3;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  background: #fff;
  color: #111;
}
.hs-input:focus { border-color: #111; }

textarea.hs-input {
  resize: vertical;
  min-height: 64px;
  font-family: inherit;
}

.hs-counter {
  font-size: 11px;
  color: #aaa;
  align-self: flex-end;
}

/* Required-input hint */
.hs-validate {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #c0392b;
}

/* Fit feedback — gentle, non-blocking */
.hs-fit {
  margin: 0;
  font-size: 12px;
  color: #b7791f;            /* amber */
  background: #fff8e6;
  border-radius: 6px;
  padding: 6px 9px;
  line-height: 1.35;
}

/* Gated add-to-cart */
.single_add_to_cart_button.hs-disabled,
button.hs-disabled { pointer-events: none; }

/* Desktop: live design overlaid on the first product-gallery slide */
.hs-gallery-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.hs-gallery-preview svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Mobile pinned preview ───────────────────────────────────────────────── */
/* Hidden on desktop (gallery is used there). */
.hs-mobile-preview { display: none; }

/* Container has no background/rounding — the plate (with its own square/rect
   shape and sharp corners) IS the visual. svg keeps its true aspect ratio. */
.hs-preview { line-height: 0; text-align: center; }
.hs-preview svg {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 34vh;     /* cap height; aspect preserved so square stays square */
}

@media (max-width: 768px) {
  .hs-mobile-preview {
    display: block;
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    padding: 10px 0;
    margin: 0 0 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  }
}
