@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Orbitron:wght@400;500;600&family=Oswald:wght@500;600&display=swap");

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
}

.font-orbitron {
  font-family: "Orbitron", sans-serif;
}

.font-display {
  font-family: "Oswald", sans-serif;
}

img {
  max-width: 100%;
}

iconify-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Mobile nav panel (hamburger < md / ~768px) */
.wwh-mobile-menu-btn {
  position: relative;
  z-index: 70;
}

.wwh-mobile-nav-link {
  font-family: Inter, system-ui, sans-serif;
}

/* Temporary seasonal waitlist CTA (toggle via WWH_FEATURES.showWaitlistNavCta) */
.wwh-nav-waitlist-cta {
  align-items: center;
  justify-content: center;
  shrink: 0;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(3, 12, 18, 0.92);
  color: #a5f3fc;
  font-family: Orbitron, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.wwh-nav-waitlist-cta:hover,
.wwh-nav-waitlist-cta:focus-visible {
  border-color: rgba(34, 211, 238, 0.75);
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.18);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
  outline: none;
}
.wwh-nav-waitlist-cta.is-active {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  box-shadow: none;
}
.wwh-nav-waitlist-cta--mobile {
  display: flex;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

body.wwh-mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

.wwh-mobile-menu {
  padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
}

/* Coordinated floating WhatsApp control */
.wwh-whatsapp-fab {
  position: fixed;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.wwh-whatsapp-fab:hover {
  transform: scale(1.05);
}
.wwh-whatsapp-fab:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}

/* Stack help / assistant above WhatsApp with 12–16px gap */
body:not([data-page="admin"]) .wwh-assistant-launcher {
  bottom: calc(3.5rem + 0.875rem + max(1rem, env(safe-area-inset-bottom, 0px)));
}

body[data-page="websites"] .wwh-whatsapp-fab {
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 640px) {
  .wwh-whatsapp-fab {
    right: max(1.5rem, env(safe-area-inset-right, 0px));
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
  body:not([data-page="admin"]) .wwh-assistant-launcher {
    bottom: calc(3.5rem + 0.875rem + max(1.5rem, env(safe-area-inset-bottom, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wwh-whatsapp-fab,
  .wwh-whatsapp-fab:hover {
    transition: none;
    transform: none;
  }
}

/* Desktop home: Ask stacked above WhatsApp; sit below the raised team banner */
@media (min-width: 1024px) {
  body[data-page="home"] .wwh-whatsapp-fab {
    right: max(1.5rem, env(safe-area-inset-right, 0px));
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  body[data-page="home"] .wwh-assistant-launcher,
  body[data-page="home"] .wwh-assistant-panel {
    right: max(1.5rem, env(safe-area-inset-right, 0px));
    /* WhatsApp 56px + 14px gap + safe area — consistent stack */
    bottom: calc(3.5rem + 0.875rem + max(1.5rem, env(safe-area-inset-bottom, 0px)));
  }
}

/* Sticky header — solid premium dark (no brown/beige bleed over light sections) */
#site-header > nav.wwh-site-nav,
nav.wwh-site-nav {
  z-index: 1000;
  background: rgba(3, 8, 10, 0.94);
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  mix-blend-mode: normal;
  isolation: isolate;
}

body[data-page="admin"] #site-footer {
  display: none !important;
}

body[data-page="admin"] #wwh-whatsapp-fab,
body[data-page="admin"] .wwh-whatsapp-fab,
body[data-page="admin-website-services"] #wwh-whatsapp-fab,
body[data-page="admin-website-services"] .wwh-whatsapp-fab {
  display: none !important;
}

#admin-preview-panel {
  position: sticky;
  top: 1.25rem;
  align-self: flex-start;
  max-height: calc(100vh - 6rem);
}

#admin-product-preview,
#admin-product-preview-mobile {
  max-height: min(380px, 50vh);
}

.admin-preview-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 10px;
  font-family: Orbitron, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-preview-status span {
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  border: 1px solid rgba(45, 50, 47, 0.15);
  background: rgba(255, 255, 255, 0.7);
  color: #2d322f;
}

.admin-preview-status .admin-preview-label {
  border-color: rgba(2, 124, 156, 0.35);
  color: #027c9c;
}

.admin-intake-step-title {
  font-family: Orbitron, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.95);
  margin-bottom: 0.25rem;
}

.admin-product-list-slug {
  line-height: 1.35;
  word-break: break-word;
}

.admin-copy-preview input[readonly],
.admin-copy-preview textarea[readonly] {
  cursor: default;
  opacity: 0.95;
}

.admin-csv-error-block {
  line-height: 1.5;
}

.admin-csv-preview-card--error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.15);
}

.admin-csv-field-pill {
  display: inline-block;
  font-size: 9px;
  font-family: Orbitron, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  margin: 2px 4px 2px 0;
}

.admin-csv-field-pill--error {
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
}

.admin-csv-field-pill--warn {
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(120, 83, 10, 0.25);
}

.admin-csv-field-line--error {
  color: #fecaca !important;
  background: rgba(127, 29, 29, 0.2);
  border-radius: 3px;
  padding: 2px 4px;
  margin-top: 2px;
}

.admin-csv-field-line--warn {
  color: #fde68a !important;
  background: rgba(120, 83, 10, 0.15);
  border-radius: 3px;
  padding: 2px 4px;
  margin-top: 2px;
}

.admin-copy-assistant summary::-webkit-details-marker {
  display: none;
}

.admin-copy-assistant summary::marker {
  content: "";
}

.admin-copy-outputs textarea,
.admin-copy-outputs input {
  font-size: 0.8125rem;
}

.admin-preview-plain-status {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
}

.admin-preview-plain-status ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-preview-plain-status li {
  padding: 0.15rem 0;
}

.admin-preview-plain-status li::before {
  content: "· ";
  color: rgba(34, 211, 238, 0.85);
}

.admin-field-invalid {
  border-color: rgba(248, 113, 113, 0.55) !important;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Admin dashboard status badges */
.status-badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.status-pending { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.status-processing { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-shipped { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-delivered { background: rgba(34, 197, 94, 0.3); color: #4ade80; }
.status-cancelled { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status-approved { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-free { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }

/* Order status dropdown - dark theme so options are visible */
select.order-status-select {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}
select.order-status-select option {
  background-color: #1a1d1b;
  color: white;
}

/* Product modal */
.animate-in {
  animation: modalFadeIn 0.25s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Nav dropdown */
.wwh-nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.wwh-nav-group:hover .wwh-nav-dropdown,
.wwh-nav-group:focus-within .wwh-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Floating contact buttons */
.wwh-float-btn {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wwh-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

/* Admin live preview: keep description clamped to match storefront */
#admin-product-preview .admin-preview-card,
#admin-product-preview-mobile .admin-preview-card {
  max-width: 100%;
}
#admin-product-preview,
#admin-product-preview-mobile {
  overflow-y: auto;
}

/* Article structured sections */
.article-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.article-section:last-of-type {
  border-bottom: none;
}
.article-section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #3F556B;
  margin-bottom: 0.75rem;
}
.article-section-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(31, 37, 34, 0.85);
}
.article-who-for {
  background: rgba(103, 246, 255, 0.08);
  border: 1px solid rgba(103, 246, 255, 0.2);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.article-fact {
  padding: 0.5rem 0.75rem;
  background: rgba(63, 85, 107, 0.08);
  border-left: 3px solid #3F556B;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.article-fact:last-child {
  margin-bottom: 0;
}
.article-qa {
  padding: 0.5rem 0;
}
.article-review {
  font-style: italic;
}
.article-warnings {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 4px;
  padding: 1rem 1.25rem;
}
.article-warning p {
  font-size: 0.875rem;
  color: rgba(31, 37, 34, 0.9);
  margin: 0.25rem 0;
}

/* Brand mark: subtle lift on dark backgrounds (header/footer + hero) */
img.logo {
  filter: drop-shadow(0 0 6px rgba(255, 200, 0, 0.12));
}

/* Global footer — proportionally spaced columns */
.site-footer {
  padding: 2.75rem 0 1.75rem;
}

.site-footer-inner {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.5rem;
  align-items: start;
  margin-bottom: 1.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2.25rem;
  }

  .site-footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .site-footer-grid {
    grid-template-columns: minmax(15rem, 1.25fr) repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.75rem, 3.2vw, 2.75rem);
    row-gap: 1.5rem;
    justify-content: stretch;
  }

  .site-footer-brand-col {
    grid-column: auto;
    padding-right: 0.5rem;
  }
}

.site-footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.site-footer-brand-wrap {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
}

.site-footer-brand {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.1rem 0.25rem 0.1rem 0.1rem;
  margin: 0;
  border-radius: 0.75rem;
  text-decoration: none;
  outline: none;
  isolation: isolate;
  color: inherit;
}

.site-footer-brand::before {
  content: "";
  position: absolute;
  inset: 12% 55% 12% 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.03) 42%, transparent 70%),
    radial-gradient(circle at 50% 55%, rgba(0, 220, 255, 0.04) 0%, transparent 58%);
  filter: blur(5px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.site-footer-brand::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 0.15rem;
  width: 28%;
  height: 12%;
  transform: translateX(0) scaleX(0.85);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22) 0%, rgba(0, 220, 255, 0.08) 45%, transparent 72%);
  filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.site-footer-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 5.125rem; /* ~82px mobile */
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.96;
  transition:
    transform 240ms ease,
    filter 240ms ease,
    opacity 240ms ease;
  filter:
    drop-shadow(0 0 4px rgba(212, 175, 55, 0.12))
    drop-shadow(0 0 6px rgba(0, 220, 255, 0.04));
}

@media (min-width: 640px) {
  .site-footer-logo {
    width: 5.875rem; /* ~94px */
  }
}

@media (min-width: 1024px) {
  .site-footer-logo {
    width: 6.375rem; /* ~102px desktop target */
  }
}

.site-footer-brand-name {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 6.5rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
  .site-footer-brand-name {
    font-size: 0.6875rem;
    max-width: 7rem;
  }
}

.site-footer-brand:hover .site-footer-logo,
.site-footer-brand:focus-visible .site-footer-logo {
  transform: translateY(-1px) scale(1.02);
  opacity: 1;
  filter:
    drop-shadow(0 0 8px rgba(212, 175, 55, 0.28))
    drop-shadow(0 0 10px rgba(0, 220, 255, 0.08));
}

.site-footer-brand:hover .site-footer-brand-name,
.site-footer-brand:focus-visible .site-footer-brand-name {
  color: #fff;
}

.site-footer-brand:hover::before,
.site-footer-brand:focus-visible::before {
  opacity: 1;
  transform: scale(1.02);
}

.site-footer-brand:hover::after,
.site-footer-brand:focus-visible::after {
  opacity: 0.75;
  transform: scaleX(1);
}

.site-footer-brand:focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.7);
  outline-offset: 3px;
}

.site-footer-blurb {
  margin: 0;
  max-width: 14rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

@media (max-width: 359px) {
  .site-footer-blurb {
    white-space: normal;
  }
}

.site-footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 0.05rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.site-footer-trust-dot {
  width: 0.35rem;
  height: 0.35rem;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

.site-footer-trust-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer-col {
  min-width: 0;
}

.site-footer-heading {
  margin: 0 0 0.85rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

.site-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer-links a {
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer-links a:hover {
  color: #22d3ee;
}

.site-footer-bottom {
  display: block;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-bottom-row .site-footer-copy {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 480px) {
  .site-footer-bottom-row {
    align-items: center;
  }
}

.site-footer-qr {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 0.35rem;
  background: #fff;
  border-radius: 0.2rem;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 180ms ease;
}

.site-footer-qr:hover,
.site-footer-qr:focus-visible {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45);
  outline: none;
}

.site-footer-qr img {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  image-rendering: pixelated;
}

.site-footer-copy {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #737373;
  text-align: left;
  line-height: 1.6;
}

.site-footer-copy-sep {
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: normal;
  color: #525252;
}

.site-footer-copy a {
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: normal;
  color: #525252;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer-copy a:hover {
  color: rgba(34, 211, 238, 0.8);
}

.site-footer-legal-disclosure {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.625rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #525252;
}

.site-footer-admin {
  font-family: Orbitron, sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #525252;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer-admin:hover {
  color: #a3a3a3;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-logo,
  .site-footer-brand::before,
  .site-footer-brand::after,
  .site-footer-links a,
  .site-footer-copy a,
  .site-footer-admin {
    transition: none;
  }

  .site-footer-brand:hover .site-footer-logo,
  .site-footer-brand:focus-visible .site-footer-logo {
    transform: none;
  }
}

/* Product imagery: consistent frame for supplier / white-background shots (shop + detail) */
.product-image-frame {
  background: #fff;
}
.product-image-contain {
  object-fit: contain;
  object-position: center;
}

/* Product detail: consistent main image + thumbnails with contain (no crop) */
.product-detail-main-image-frame {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
  padding: 32px;
}

.product-detail-main-image {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-detail-thumb-frame {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

.product-detail-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  .product-detail-main-image-frame {
    min-height: 300px;
    max-height: 420px;
    padding: 20px;
  }
  .product-detail-main-image {
    max-height: 360px;
  }
}

/* —— Customer website assistant (js/customer-assistant.js) —— */
body[data-page="admin"] #wwh-assistant-root {
  display: none !important;
}

#wwh-assistant-root {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
}

#wwh-assistant-root > * {
  pointer-events: auto;
}

.wwh-assistant-launcher {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(3.5rem + 0.875rem + max(1rem, env(safe-area-inset-bottom, 0px)));
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: calc(100vw - 5.5rem);
  border: 1px solid rgba(34, 211, 238, 0.55);
  border-radius: 9999px;
  background: rgba(5, 13, 22, 0.96);
  color: #ffffff;
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.16),
    0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.wwh-assistant-launcher:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow:
    0 0 26px rgba(34, 211, 238, 0.22),
    0 14px 32px rgba(0, 0, 0, 0.4);
}

.wwh-assistant-launcher:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}

.wwh-assistant-launcher-label {
  white-space: nowrap;
  color: #ffffff;
}

@keyframes wwh-assistant-launcher-attention {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(34, 211, 238, 0.16),
      0 12px 30px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 28px rgba(34, 211, 238, 0.32),
      0 12px 30px rgba(0, 0, 0, 0.35);
  }
}

.wwh-assistant-launcher.is-attention {
  animation: wwh-assistant-launcher-attention 1.4s ease-in-out 1;
}

@media (prefers-reduced-motion: reduce) {
  .wwh-assistant-launcher {
    transition: none;
  }
  .wwh-assistant-launcher:hover {
    transform: none;
  }
  .wwh-assistant-launcher.is-attention {
    animation: none;
  }
}

body.wwh-assistant-open .wwh-assistant-launcher {
  display: none;
}

.wwh-assistant-panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(3.5rem + 0.875rem + max(1rem, env(safe-area-inset-bottom, 0px)));
  z-index: 2000;
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 2rem), 23rem);
  max-height: min(34rem, calc(100dvh - 7.5rem - env(safe-area-inset-bottom, 0px)));
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: #111827;
  color: #f5f5f4;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Icon-only circular help / assistant on narrow phones */
@media (max-width: 479px) {
  .wwh-assistant-launcher {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    padding: 0;
    gap: 0;
    max-width: none;
  }

  .wwh-assistant-launcher-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 639px) {
  .wwh-assistant-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: max(6.5rem, calc(env(safe-area-inset-bottom, 0px) + 5.5rem));
    max-height: min(70dvh, calc(100dvh - 8rem));
  }
}

@media (min-width: 640px) {
  .wwh-assistant-launcher,
  .wwh-assistant-panel {
    right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.wwh-assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.2) 0%, transparent 100%);
}

.wwh-assistant-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.wwh-assistant-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #d6d3d1;
}

.wwh-assistant-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #a8a29e;
  cursor: pointer;
  padding: 0.15rem;
  line-height: 0;
}

.wwh-assistant-close:hover {
  color: #fff;
}

.wwh-assistant-messages {
  flex: 1 1 auto;
  min-height: 6rem;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  -webkit-overflow-scrolling: touch;
}

.wwh-assistant-msg {
  max-width: 95%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.wwh-assistant-msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wwh-assistant-msg--user {
  align-self: flex-end;
  background: rgba(8, 145, 178, 0.4);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #ecfeff;
}

.wwh-assistant-msg p {
  margin: 0 0 0.5rem;
}

.wwh-assistant-msg p:last-child {
  margin-bottom: 0;
}

.wwh-assistant-rec {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}

.wwh-assistant-prices {
  margin: 0.35rem 0;
  padding-left: 1rem;
  font-size: 0.75rem;
}

.wwh-assistant-why {
  font-size: 0.75rem;
  color: #e7e5e4;
}

.wwh-assistant-note {
  font-size: 0.72rem;
  color: #a8a29e;
  margin-top: 0.45rem;
}

.wwh-assistant-link {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wwh-assistant-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 12rem;
  overflow-y: auto;
}

.wwh-assistant-btn {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f4;
  font-size: 0.7rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  min-height: 2.75rem;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.wwh-assistant-btn:hover {
  background: rgba(8, 145, 178, 0.22);
  border-color: rgba(34, 211, 238, 0.4);
}

.wwh-assistant-btn--primary {
  background: rgba(8, 145, 178, 0.5);
  border-color: rgba(34, 211, 238, 0.45);
  color: #ecfeff;
}

.wwh-assistant-btn--subtle {
  font-size: 0.64rem;
  opacity: 0.88;
}

.wwh-assistant-btn--block {
  text-align: center;
}

.wwh-assistant-form-wrap {
  padding: 0 1rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 15rem;
  overflow-y: auto;
}

.wwh-assistant-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wwh-assistant-form-title {
  margin: 0.5rem 0 0.25rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
}

.wwh-assistant-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: #d6d3d1;
}

.wwh-assistant-field input,
.wwh-assistant-field textarea {
  font-size: 0.8rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0c0a09;
  color: #fafaf9;
}

.wwh-assistant-field input:focus,
.wwh-assistant-field textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.wwh-assistant-field--full textarea {
  resize: vertical;
  min-height: 3.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .wwh-assistant-launcher {
    transition: none;
  }
}

