/* =============================================================
   DHESHOP AI ASSISTANT — DESIGN TOKENS
   Palette:  ink (deep indigo-navy) + jade (primary accent) +
             amber (warm secondary accent) + warm ivory bubble tint
   Type:     Fraunces (display / personality) + Manrope (UI / body)
             + JetBrains Mono (data — order numbers, timestamps)
============================================================= */
:root {
  /* Color */
  --ink-900: #0D1120;
  --ink-800: #12172B;
  --ink-700: #1B2140;
  --ink-600: #2A3157;
  --ivory-100: #FAF8F4;
  --ivory-200: #F1EDE3;
  --white: #FFFFFF;
  --jade-500: #0E9F6E;
  --jade-400: #23BE87;
  --jade-050: #E4F7EF;
  --amber-500: #F2A93B;
  --amber-050: #FDF0DA;
  --slate-500: #6B7280;
  --slate-300: #A6ACBE;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-dark: rgba(18, 23, 43, 0.08);
  --shadow-panel: 0 24px 60px -12px rgba(13, 17, 32, 0.35), 0 4px 16px -4px rgba(13, 17, 32, 0.2);
  --shadow-launcher: 0 12px 28px -8px rgba(14, 159, 110, 0.45);

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --panel-w: 392px;
  --panel-h: min(680px, calc(100vh - 112px));
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--ivory-100);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* =============================================================
   DEMO HOST PAGE (not part of the embeddable widget)
============================================================= */
.demo-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, var(--jade-050), transparent 45%),
    radial-gradient(circle at 85% 80%, var(--amber-050), transparent 40%),
    var(--ivory-100);
  padding: 32px;
}

.demo-page__inner {
  max-width: 480px;
  text-align: center;
}

.demo-page__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade-500);
  background: var(--jade-050);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.demo-page__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 8vw, 64px);
  margin: 0 0 12px;
  color: var(--ink-800);
  letter-spacing: -0.01em;
}

.demo-page__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-500);
  margin: 0;
}

/* =============================================================
   WIDGET SHELL
============================================================= */
.assistant {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* -------------------------------------------------------------
   Launcher
-------------------------------------------------------------- */
.launcher {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--jade-400), var(--jade-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-launcher);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.launcher:hover { transform: translateY(-2px) scale(1.03); }
.launcher:active { transform: translateY(0) scale(0.97); }

.launcher__icon {
  position: absolute;
  width: 26px;
  height: 26px;
  display: flex;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.launcher__icon--close { opacity: 0; transform: scale(0.6) rotate(-45deg); }
.launcher__icon--chat { opacity: 1; transform: scale(1) rotate(0); }

.assistant[data-state="open"] .launcher__icon--chat { opacity: 0; transform: scale(0.6) rotate(45deg); }
.assistant[data-state="open"] .launcher__icon--close { opacity: 1; transform: scale(1) rotate(0); }

.launcher__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--jade-400);
  opacity: 0.55;
  animation: pulse-ring 2.6s cubic-bezier(0.2, 0.7, 0.4, 1) infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.92); opacity: 0.55; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* -------------------------------------------------------------
   Panel
-------------------------------------------------------------- */
.panel {
  width: var(--panel-w);
  max-width: calc(100vw - 32px);
  height: var(--panel-h);
  background: var(--ink-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
}

.assistant[data-state="open"] .panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* -------------------------------------------------------------
   Header + Avatar (signature element)
-------------------------------------------------------------- */
.panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border-bottom: 1px solid var(--hairline);
}

.avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar__core {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--jade-400), var(--jade-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(14, 159, 110, 0.55);
}

.avatar__core svg { width: 24px; height: 24px; }

.avatar__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--jade-400);
  opacity: 0.5;
  animation: breathe 3.2s ease-in-out infinite;
}
.avatar__ring--2 { animation-delay: 1.1s; inset: -8px; opacity: 0.28; }

@keyframes breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.5; }
  50%      { transform: scale(1.08); opacity: 0.18; }
}

/* Thinking state: ring spins + tightens */
.avatar[data-avatar-state="thinking"] .avatar__ring {
  animation: think-spin 1.1s linear infinite;
  border-style: dashed;
}
@keyframes think-spin {
  from { transform: rotate(0deg) scale(1); }
  to   { transform: rotate(360deg) scale(1); }
}

/* Speaking state: core gently scales like a soft pulse of speech */
.avatar[data-avatar-state="speaking"] .avatar__core {
  animation: speak-pulse 0.9s ease-in-out infinite;
}
@keyframes speak-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

.avatar__online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--jade-400);
  border: 2.5px solid var(--ink-800);
  z-index: 3;
}

.panel__heading { flex: 1; min-width: 0; }

.panel__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.panel__status {
  margin: 0;
  font-size: 12.5px;
  color: var(--slate-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade-400);
  box-shadow: 0 0 0 3px rgba(35, 190, 135, 0.18);
  flex: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  transition: background 0.15s ease, color 0.15s ease;
  flex: none;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--hairline); color: var(--white); }

/* -------------------------------------------------------------
   Message thread
-------------------------------------------------------------- */
.thread {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ink-800);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-600) transparent;
}
.thread::-webkit-scrollbar { width: 6px; }
.thread::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 999px; }

.msg {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1.5;
  animation: msg-in 0.25s ease both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg--ai {
  align-self: flex-start;
  background: var(--ivory-100);
  color: var(--ink-800);
  border-bottom-left-radius: 6px;
}

.msg--user {
  align-self: flex-end;
  background: linear-gradient(155deg, var(--jade-400), var(--jade-500));
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.msg__time {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.55;
}

/* -------------------------------------------------------------
   Product cards — Stage 6 product search
-------------------------------------------------------------- */
.product-cards {
  width: min(92%, 360px);
  align-self: flex-start;
  display: grid;
  gap: 10px;
  animation: msg-in 0.25s ease both;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--ivory-200);
  border-radius: 14px;
  background: var(--ivory-100);
  color: var(--ink-800);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card__image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--white);
}

.product-card__image--placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--jade-500);
  background: var(--ivory-200);
}

.product-card__body {
  padding: 12px;
}

.product-card__name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.product-card__description {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--slate-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 9px;
}

.product-card__price {
  font-size: 16px;
}

.product-card__regular {
  font-size: 12px;
  color: var(--slate-400);
  text-decoration: line-through;
}

.product-card__stock {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-400);
}

.product-card__stock--in {
  color: var(--jade-500);
}

.product-card__button {
  display: block;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--jade-500);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.product-card__button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .product-cards {
    width: 94%;
  }

  .product-card__image {
    height: 130px;
  }
}


/* -------------------------------------------------------------
   Typing indicator
-------------------------------------------------------------- */
.typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 10px;
  background: var(--ink-800);
}

.typing__avatar {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--jade-400);
}

.typing__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ivory-100);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border-bottom-left-radius: 6px;
}

.typing__dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--slate-500);
  animation: typing-bounce 1.1s ease-in-out infinite;
}
.typing__dots span:nth-child(2) { animation-delay: 0.15s; }
.typing__dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* -------------------------------------------------------------
   Quick actions
-------------------------------------------------------------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink-800);
  border-top: 1px solid var(--hairline);
}

.quick-actions__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ivory-100);
  background: var(--ink-700);
  border: 1px solid var(--hairline);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.quick-actions__btn svg { width: 15px; height: 15px; flex: none; color: var(--jade-400); }
.quick-actions__btn:hover { background: var(--ink-600); border-color: var(--jade-400); }
.quick-actions__btn:active { transform: scale(0.98); }

/* -------------------------------------------------------------
   Composer
-------------------------------------------------------------- */
.composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: var(--ivory-100);
  border-top: 1px solid var(--hairline-dark);
}

.composer input {
  flex: 1;
  border: none;
  outline: none;
  background: var(--white);
  border: 1px solid var(--ivory-200);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.composer input::placeholder { color: var(--slate-300); }
.composer input:focus {
  border-color: var(--jade-400);
  box-shadow: 0 0 0 3px var(--jade-050);
}

.icon-btn--mic { color: var(--slate-500); }
.icon-btn--mic:hover { background: var(--jade-050); color: var(--jade-500); }
.icon-btn--mic[aria-pressed="true"] {
  color: var(--white);
  background: linear-gradient(155deg, #FF7A6B, #FF5B4A);
  animation: mic-live 1.2s ease-in-out infinite;
}
@keyframes mic-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 74, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 91, 74, 0); }
}

.icon-btn--send {
  background: linear-gradient(155deg, var(--jade-400), var(--jade-500));
  color: var(--white);
}
.icon-btn--send:hover { filter: brightness(1.05); }
.icon-btn--send:disabled { opacity: 0.5; cursor: not-allowed; }

.panel__disclaimer {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 10.5px;
  text-align: center;
  color: var(--slate-300);
  background: var(--ivory-100);
}

/* Focus visibility (accessibility floor) */
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--jade-400);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =============================================================
   RESPONSIVE — mobile-first widget behavior
============================================================= */
@media (max-width: 480px) {
  .assistant { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
  .panel {
    width: 100%;
    height: min(88vh, 720px);
  }
  .launcher { align-self: flex-end; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
}

/* Stage 7 voice interaction */
#mic-btn.is-listening {
  position: relative;
  transform: scale(1.05);
  box-shadow: 0 0 0 5px rgba(14, 159, 110, 0.16);
}
#mic-btn.is-listening::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  animation: dheshop-mic-pulse 1.2s ease-out infinite;
  pointer-events: none;
}
@keyframes dheshop-mic-pulse {
  0% { opacity: .75; transform: scale(.9); }
  100% { opacity: 0; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  #mic-btn.is-listening::after { animation: none; }
}


/* =============================================================
   STAGE 8 — HUMAN-LIKE AVATAR
   Illustrated face with state-driven eyes, mouth and body motion.
============================================================= */
.avatar {
  width: 52px;
  height: 52px;
}

.avatar__core {
  width: 52px;
  height: 52px;
  overflow: visible;
  background: radial-gradient(circle at 32% 22%, #ffffff 0 8%, #e4f7ef 22%, var(--jade-400) 62%, var(--jade-500) 100%);
  box-shadow: 0 7px 20px -5px rgba(14,159,110,.6);
}

.avatar__head {
  position: absolute;
  inset: 0;
}

.avatar__shoulders {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 20px;
  border-radius: 18px 18px 9px 9px;
  background: linear-gradient(155deg, #283252, #12172b);
  z-index: 1;
}

.avatar__neck {
  position: absolute;
  left: 21px;
  bottom: 10px;
  width: 10px;
  height: 13px;
  border-radius: 4px;
  background: #d79a78;
  z-index: 2;
}

.avatar__face {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 30px;
  height: 33px;
  border-radius: 46% 46% 48% 48%;
  background: linear-gradient(145deg, #f5c3a0, #d99170);
  box-shadow: inset -2px -2px 0 rgba(121,70,52,.08);
  z-index: 4;
}

.avatar__hair {
  position: absolute;
  left: 9px;
  top: 5px;
  width: 34px;
  height: 22px;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(145deg, #302844, #12172b);
  z-index: 6;
  transform: rotate(-2deg);
}

.avatar__hair::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -5px;
  width: 10px;
  height: 16px;
  border-radius: 0 0 8px 8px;
  background: #12172b;
}

.avatar__ear {
  position: absolute;
  top: 22px;
  width: 5px;
  height: 9px;
  border-radius: 50%;
  background: #d99170;
  z-index: 3;
}
.avatar__ear--left { left: 8px; }
.avatar__ear--right { right: 8px; }

.avatar__brow {
  position: absolute;
  top: 10px;
  width: 7px;
  height: 2px;
  border-radius: 99px;
  background: #4b3040;
  z-index: 7;
  transition: transform .25s ease;
}
.avatar__brow--left { left: 6px; transform: rotate(5deg); }
.avatar__brow--right { right: 6px; transform: rotate(-5deg); }

.avatar__eye {
  position: absolute;
  top: 13px;
  width: 6px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  z-index: 7;
  overflow: hidden;
  transition: height .12s ease, transform .2s ease;
}
.avatar__eye::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  left: 2px;
  top: 1px;
  border-radius: 50%;
  background: #34243a;
}
.avatar__eye--left { left: 6px; }
.avatar__eye--right { right: 6px; }

.avatar__nose {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 3px;
  height: 7px;
  border-right: 1px solid rgba(112,63,50,.4);
  border-bottom: 1px solid rgba(112,63,50,.3);
  transform: rotate(8deg);
  z-index: 7;
}

.avatar__mouth {
  position: absolute;
  left: 11px;
  top: 26px;
  width: 9px;
  height: 3px;
  border-radius: 0 0 9px 9px;
  border-bottom: 1.5px solid #9e4f5a;
  z-index: 7;
  transition: height .12s ease, width .12s ease, border-radius .12s ease;
}

@keyframes avatar-blink {
  0%, 44%, 48%, 100% { height: 5px; }
  46% { height: 1px; }
}
.avatar__eye {
  animation: avatar-blink 5.5s ease-in-out infinite;
}
.avatar__eye--right { animation-delay: .04s; }

.avatar[data-avatar-state="thinking"] .avatar__face {
  transform: rotate(-2deg) translateY(-1px);
}
.avatar[data-avatar-state="thinking"] .avatar__brow--left {
  transform: rotate(-8deg) translateY(-1px);
}
.avatar[data-avatar-state="thinking"] .avatar__brow--right {
  transform: rotate(-14deg) translateY(-2px);
}
.avatar[data-avatar-state="thinking"] .avatar__eye::after {
  left: 1px;
}

.avatar[data-avatar-state="speaking"] .avatar__mouth {
  width: 8px;
  height: 6px;
  border: 1.5px solid #9e4f5a;
  border-radius: 50%;
  animation: avatar-mouth 0.28s ease-in-out infinite alternate;
}
.avatar[data-avatar-state="speaking"] .avatar__head {
  animation: avatar-talk 0.7s ease-in-out infinite;
}
.avatar[data-avatar-state="listening"] .avatar__face {
  transform: translateY(-1px);
}
.avatar[data-avatar-state="listening"] .avatar__brow {
  transform: translateY(-1px) !important;
}

@keyframes avatar-mouth {
  from { transform: scaleY(.65); }
  to { transform: scaleY(1.15); }
}
@keyframes avatar-talk {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1px) rotate(.6deg); }
}

.avatar[data-avatar-state="thinking"] .avatar__core {
  animation: avatar-think-float 1.3s ease-in-out infinite;
}
@keyframes avatar-think-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.panel__status[data-voice-status="true"] .status-dot {
  animation: status-pulse .8s ease-in-out infinite alternate;
}
@keyframes status-pulse {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(1.45); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar__eye,
  .avatar[data-avatar-state="speaking"] .avatar__mouth,
  .avatar[data-avatar-state="speaking"] .avatar__head,
  .avatar[data-avatar-state="thinking"] .avatar__core,
  .panel__status[data-voice-status="true"] .status-dot {
    animation: none;
  }
}


/* Stage 9A WooCommerce tools */
.tool-panel { margin: 0 14px 12px; border: 1px solid var(--ink-500); border-radius: 16px; background: var(--ink-700); padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.tool-panel__head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.tool-panel__head h2 { margin:0; font-size:15px; }
.tool-panel__close { border:0; background:transparent; color:inherit; font-size:24px; line-height:1; cursor:pointer; opacity:.75; }
.tool-form { display:grid; gap:9px; }
.tool-form label { font-size:12px; font-weight:700; opacity:.9; }
.tool-form input { width:100%; box-sizing:border-box; border:1px solid var(--slate-300); border-radius:10px; padding:10px 11px; background:var(--white); color:var(--ink-900); caret-color:var(--jade-500); outline:none; font-family:var(--font-body); }
.tool-form input::placeholder { color:var(--slate-500); opacity:1; }
.tool-form input:focus { border-color:var(--jade-400); box-shadow:0 0 0 3px var(--jade-050); }
.tool-form button { border:0; border-radius:10px; padding:10px 13px; background:var(--jade-400); color:var(--ink-900); font-weight:800; cursor:pointer; }
.tool-form__row { display:grid; grid-template-columns:1fr auto; gap:8px; }
.tool-form__hint { margin:0; font-size:11px; opacity:.65; line-height:1.45; }
.tool-form__result { min-height:16px; font-size:12px; opacity:1; color:var(--ink-900); line-height:1.45; }
.tool-form__result--checking { color:var(--slate-600); }
.tool-form__result--error { display:block; margin-top:2px; padding:10px 11px; border:1px solid #e3a3a3; border-radius:10px; background:#fff1f1; color:#a51d2d; font-weight:700; }
.order-card {
  margin:12px 14px;
  border:1px solid var(--ivory-200);
  border-radius:16px;
  padding:15px;
  background:var(--white);
  color:var(--ink-800);
  box-shadow:0 8px 24px rgba(13,17,32,.10);
  animation:msgIn .2s ease;
}
.order-card__head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.order-card__head strong { display:block; font-size:17px; color:var(--ink-900); line-height:1.25; }
.order-card__eyebrow, .order-card__section > span, .order-card__grid span {
  display:block;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--slate-500);
  opacity:1;
}
.order-card__status {
  padding:6px 9px;
  border-radius:999px;
  background:var(--jade-050);
  color:var(--jade-500);
  border:1px solid rgba(14,159,110,.16);
  text-transform:capitalize;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.order-card__grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0; }
.order-card__grid strong { display:block; margin-top:4px; font-size:13px; color:var(--ink-800); }
.order-card__section { border-top:1px solid var(--ivory-200); padding-top:10px; margin-top:10px; }
.order-card__section p { margin:5px 0 0; font-size:12px; line-height:1.5; color:var(--ink-800); overflow-wrap:anywhere; }
@media (max-width:520px) { .tool-form__row { grid-template-columns:1fr; } .order-card__grid { grid-template-columns:1fr; } }
\n\n/* =============================================================\n   EMBED MODE\n   Used by the WordPress floating widget. It removes the demo\n   storefront and makes the assistant itself fill the iframe.\n============================================================= */\n.dheshop-embed-mode {\n  margin: 0 !important;\n  padding: 0 !important;\n  overflow: hidden !important;\n  background: transparent !important;\n}\n\n.dheshop-embed-mode .demo-page {\n  display: none !important;\n}\n\n.dheshop-embed-mode .assistant {\n  position: fixed !important;\n  inset: 0 !important;\n  width: 100% !important;\n  height: 100% !important;\n  right: auto !important;\n  bottom: auto !important;\n  left: auto !important;\n  align-items: stretch !important;\n  gap: 0 !important;\n  display: block !important;\n}\n\n.dheshop-embed-mode .panel {\n  width: 100% !important;\n  max-width: none !important;\n  height: 100% !important;\n  border-radius: 0 !important;\n  box-shadow: none !important;\n  transform: none !important;\n}\n\n.dheshop-embed-mode .launcher {\n  display: none !important;\n}\n

/* Embedded v1.4: single compact chat window */
@media (max-width: 600px) {
  .dheshop-embed-mode .panel {
    width: min(100%, 390px) !important;
    height: min(78vh, 640px) !important;
    max-height: calc(100vh - 72px) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 40px rgba(13,17,32,.28) !important;
  }
}
.dheshop-embed-mode .launcher { display: none !important; }
.dheshop-embed-mode .demo-page { display: none !important; }
