/* NeedleKraft Utility Dock
   Keeps the two persistent trust/conversion tools together without covering page content.
   Desktop: Live Showroom above, WhatsApp Factory Desk below.
   Mobile: compact two-action bottom bar.
*/

:root {
  --utility-dock-gap: 12px;
  --utility-dock-edge: 24px;
  --utility-dock-mobile-edge: 10px;
}

/* Desktop / tablet — a deliberate bottom-right utility dock */
.live-showroom-widget {
  right: var(--utility-dock-edge);
  bottom: 92px;
  transition: transform .28s ease, width .28s ease, border-color .28s ease, opacity .18s ease, visibility .18s ease;
}

.whatsapp-desk {
  right: var(--utility-dock-edge);
  bottom: var(--utility-dock-edge);
  z-index: 131;
}

.wa-launcher {
  min-height: 56px;
}

/* The WhatsApp menu grows upward. Temporarily remove the showroom card so the menu has clean space. */
body.wa-desk-open .live-showroom-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
}

/* Keep the preview dock stable when it is minimized. */
.live-showroom-widget.is-minimized {
  bottom: 92px;
}

/* Mobile — compact bottom action bar. Both actions stay visible without covering the page. */
@media (max-width: 680px) {
  body {
    padding-bottom: 76px;
  }

  .live-showroom-widget,
  .live-showroom-widget.is-minimized {
    left: var(--utility-dock-mobile-edge);
    right: auto;
    bottom: var(--utility-dock-mobile-edge);
    width: calc(50% - 15px);
    max-width: none;
    min-width: 0;
    height: 54px;
    overflow: hidden;
    transform: none;
  }

  .live-showroom-widget:hover {
    transform: none;
  }

  .live-showroom-widget .live-widget-top,
  .live-showroom-widget.is-minimized .live-widget-top {
    position: relative;
    z-index: 2;
    min-height: 54px;
    padding: 0 12px;
    border-bottom: 0;
    pointer-events: none;
  }

  .live-showroom-widget .live-widget-title,
  .live-showroom-widget.is-minimized .live-widget-title {
    gap: 7px;
    font-size: 0;
  }

  .live-showroom-widget .live-widget-title:after,
  .live-showroom-widget.is-minimized .live-widget-title:after {
    content: "LIVE SHOWROOM";
    color: rgba(255,255,255,.9);
    font: 700 8px "IBM Plex Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .live-showroom-widget .live-widget-title .live-dot {
    margin-right: 0;
  }

  .live-showroom-widget .live-camera-id,
  .live-showroom-widget .live-widget-actions {
    display: none;
  }

  /* Full-card invisible hit area retains the existing accessible live-showroom trigger. */
  .live-showroom-widget .live-widget-media {
    position: absolute;
    z-index: 4;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    opacity: 0;
  }

  .live-showroom-widget .live-widget-media img,
  .live-showroom-widget .live-widget-media:after,
  .live-showroom-widget .live-widget-corners,
  .live-showroom-widget .live-widget-caption {
    display: none;
  }

  .whatsapp-desk {
    right: var(--utility-dock-mobile-edge);
    bottom: var(--utility-dock-mobile-edge);
    width: calc(50% - 15px);
    max-width: none;
  }

  .wa-launcher {
    min-height: 54px;
    height: 54px;
    gap: 8px;
    padding: 10px 11px;
  }

  .wa-icon {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 4px rgba(46,188,97,.12);
  }

  .wa-icon svg {
    width: 16px;
    height: 16px;
  }

  .wa-launch-copy {
    gap: 0;
  }

  .wa-launch-copy b {
    font-size: 9px;
    letter-spacing: .07em;
  }

  .wa-launch-copy small {
    display: none;
  }

  .wa-launch-arrow {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  .whatsapp-popover {
    top: auto;
    right: 0;
    bottom: 64px;
    width: min(340px, calc(100vw - 20px));
  }

  .wa-toast {
    right: 10px;
    bottom: 76px;
    max-width: calc(100% - 20px);
  }

  body.wa-desk-open .live-showroom-widget {
    transform: translateY(10px);
  }
}

@media (max-width: 390px) {
  .live-showroom-widget .live-widget-title:after,
  .live-showroom-widget.is-minimized .live-widget-title:after {
    font-size: 7px;
    letter-spacing: .05em;
  }

  .wa-launch-copy b {
    font-size: 8px;
  }
}

.form-status{min-height:1.3em;margin:4px 0 0;color:#7fd49e;font-size:.82rem}.form-status.is-error{color:#ff9a83}
