.wpsc-chatbot-root {
  --wpsc-primary: #1769aa;
  --wpsc-secondary: #16a085;
  --wpsc-text: #16202a;
  --wpsc-bg: #fff;
  --wpsc-launcher: var(--wpsc-primary);
  /* Clean-minimal design tokens: neutral grays, hairline lines, restrained
     shadows. The brand colour (--wpsc-primary) is the single accent. */
  --wpsc-ink: #0f172a;
  --wpsc-ink-soft: #64748b;
  --wpsc-line: rgba(15, 23, 42, .07);
  --wpsc-line-strong: rgba(15, 23, 42, .12);
  --wpsc-surface: #ffffff;
  --wpsc-surface-sub: #f6f7f9;
  --wpsc-radius-lg: 20px;
  --wpsc-radius-md: 14px;
  --wpsc-radius-sm: 10px;
  --wpsc-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --wpsc-shadow-md: 0 8px 24px rgba(15, 23, 42, .10);
  --wpsc-shadow-lg: 0 16px 48px rgba(15, 23, 42, .14);
  --wpsc-chat-icon-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill-rule='evenodd'%20d='M20%202H4c-1.1%200-1.99.9-1.99%202L2%2022l4-4h14c1.1%200%202-.9%202-2V4c0-1.1-.9-2-2-2zM5.6%2010a1.4%201.4%200%201%200%202.8%200%201.4%201.4%200%201%200-2.8%200zM10.6%2010a1.4%201.4%200%201%200%202.8%200%201.4%201.4%200%201%200-2.8%200zM15.6%2010a1.4%201.4%200%201%200%202.8%200%201.4%201.4%200%201%200-2.8%200z'/%3E%3C/svg%3E");
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wpsc-text);
}

/*
 * WordPress themes frequently apply site-wide form-control and typography
 * rules. Keep the widget's native controls on our own baseline so selectors
 * such as `.site button`, `button:hover`, and `.entry-content h2` cannot alter
 * its geometry or type treatment.
 */
#wpsc-chatbot-root,
#wpsc-chatbot-root *,
#wpsc-chatbot-root *::before,
#wpsc-chatbot-root *::after {
  box-sizing: border-box;
}

#wpsc-chatbot-root button,
#wpsc-chatbot-root input,
#wpsc-chatbot-root select,
#wpsc-chatbot-root textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
}

#wpsc-chatbot-root button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  max-width: none;
  font-style: normal;
  text-indent: 0;
}

.wpsc-chatbot-root.wpsc-left {
  right: auto;
  left: 20px;
}

.wpsc-chatbot-root [hidden] {
  display: none !important;
}

.wpsc-bubble {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wpsc-launcher);
  color: #fff;
  font-size: 0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .20), 0 2px 8px rgba(15, 23, 42, .12);
  cursor: pointer;
  transition: transform .24s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease, background-color .18s ease, opacity .2s ease;
  animation: wpsc-bubble-in .5s cubic-bezier(.34, 1.56, .64, 1) backwards;
}

/* While the panel is opening/closing, the launcher collapses into (and grows
   back out of) its bottom corner, so it reads as morphing into the window.
   (Used only as the reduced-motion fallback.) */
.wpsc-bubble-leaving {
  opacity: 0;
  transform: scale(.35) translateY(6px);
  pointer-events: none;
}

/* Open/close morph: the launcher dots merge into a line, the line grows a
   left-pointing arrowhead, then the arrow rotates clockwise to point up
   (matching the send button) while the window expands from the corner. */
.wpsc-launcher-morph {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
}

.wpsc-launcher-morph svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.wpsc-morph-dots circle {
  fill: #fff;
}

/* Round-capped bar begins at dot weight, then thins to match the send icon's
   stem as the dots merge into the completed arrow. */
.wpsc-morph-shaft {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 21;
  stroke-dashoffset: 21;
}

/* Outlined chevron matching the send button's arrowhead. */
.wpsc-morph-head {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: 100% 50%;
  transform: scale(0);
}

/* During the morph, overlay the launcher on the panel's corner and hide the
   resting glyph so only the morphing arrow shows. */
.wpsc-opening .wpsc-bubble,
.wpsc-closing .wpsc-bubble {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
}

/* The first-time welcome screen uses a lighter entrance than the full chat:
   wave the three dots once, then expand the panel without forming an arrow. */
.wpsc-opening-welcome .wpsc-bubble {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
}

.wpsc-opening-welcome .wpsc-launcher-glyph {
  opacity: 0;
  transform: scale(.86);
}

.wpsc-opening-welcome .wpsc-launcher-dots {
  opacity: 1;
  transform: scale(1);
}

.wpsc-opening-welcome .wpsc-launcher-dots i {
  animation: wpsc-dot-wave .9s ease-in-out 1 !important;
}

.wpsc-opening-welcome .wpsc-launcher-dots i:nth-child(2) {
  animation-delay: .14s !important;
}

.wpsc-opening-welcome .wpsc-launcher-dots i:nth-child(3) {
  animation-delay: .28s !important;
}

/* Two-stage handoff between the launcher and send button. First the launcher
   moves, shrinks, and adopts the send colour. Only after both circles align do
   the two arrow glyphs cross-fade, avoiding a visible blue-to-green jump. */
.wpsc-handoff .wpsc-bubble {
  opacity: 1;
  transform: translate(-3px, -3px) scale(.69);
  transition:
    transform .36s cubic-bezier(.22, .72, .22, 1),
    background-color .36s ease,
    box-shadow .36s ease,
    opacity .30s ease;
  pointer-events: none;
}

.wpsc-handoff .wpsc-launcher-morph svg {
  /* Counter the launcher's 58px -> 40px shrink so the arrow itself remains
     the same size as the static send icon throughout the handoff. */
  transform: scale(1.449);
  transition: transform .36s cubic-bezier(.22, .72, .22, 1);
}

#wpsc-chatbot-root.wpsc-handoff > .wpsc-bubble {
  background: var(--wpsc-secondary) !important;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .12);
  transform: translate(-3px, -3px) scale(.69) !important;
}

#wpsc-chatbot-root.wpsc-opening:not(.wpsc-handoff) > .wpsc-bubble {
  /* Once opening begins, do not let :hover/:active move or resize the circle.
     This keeps one stable anchor until the single handoff scale starts. */
  transform: translate(0, 0) scale(1) !important;
  transition:
    transform .12s ease,
    box-shadow .2s ease,
    background-color .18s ease,
    opacity .2s ease;
}

.wpsc-opening .wpsc-composer .wpsc-send {
  opacity: 0;
  transform: translate(0, 0) scale(1);
  transition:
    opacity .30s ease,
    filter .16s ease,
    box-shadow .16s ease;
}

.wpsc-handoff-fade .wpsc-bubble {
  opacity: 0;
}

.wpsc-opening.wpsc-handoff-fade .wpsc-composer .wpsc-send {
  opacity: 1;
}

.wpsc-opening .wpsc-launcher-glyph,
.wpsc-closing .wpsc-launcher-glyph {
  opacity: 0;
}

/* Hard-hide the hover-wave dots during the morph so they do not keep waving
   behind the forming line. !important is needed to beat the :hover opacity rule
   (the mouse is still over the launcher when it is clicked open). */
.wpsc-opening .wpsc-launcher-dots,
.wpsc-closing .wpsc-launcher-dots {
  opacity: 0 !important;
}

.wpsc-opening .wpsc-launcher-dots i,
.wpsc-closing .wpsc-launcher-dots i {
  animation: none !important;
}

.wpsc-opening .wpsc-launcher-morph,
.wpsc-closing .wpsc-launcher-morph {
  display: flex;
}

.wpsc-opening .wpsc-launcher-morph {
  animation: wpsc-morph-rotate .86s cubic-bezier(.5, 0, .4, 1) forwards;
}
.wpsc-opening .wpsc-morph-dots {
  animation: wpsc-morph-dots-out .86s ease forwards;
}
.wpsc-opening .wpsc-morph-shaft {
  animation: wpsc-morph-shaft-draw .86s ease forwards;
}
.wpsc-opening .wpsc-morph-head {
  animation: wpsc-morph-head-in .86s ease forwards;
}

.wpsc-closing .wpsc-launcher-morph {
  animation: wpsc-morph-rotate .86s cubic-bezier(.5, 0, .4, 1) reverse forwards;
}
/* On close the morph only collapses the arrow back to a line (rotate down +
   head retract). The line stays drawn and the dots stay hidden; the line then
   hands off to the message icon in a second phase. */
.wpsc-closing .wpsc-morph-dots {
  opacity: 0;
}
.wpsc-closing .wpsc-morph-shaft {
  stroke-dashoffset: 0;
}
.wpsc-closing .wpsc-morph-head {
  animation: wpsc-morph-head-in .86s ease reverse forwards;
}

@keyframes wpsc-morph-dots-out {
  0% { opacity: 1; }
  24% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes wpsc-morph-shaft-draw {
  0% { stroke-dashoffset: 21; stroke-width: 8; }
  38% { stroke-dashoffset: 0; stroke-width: 8; }
  70%, 100% { stroke-dashoffset: 0; stroke-width: 4; }
}

@keyframes wpsc-morph-head-in {
  0%, 42% { transform: scale(0); }
  64%, 100% { transform: scale(1); }
}

@keyframes wpsc-morph-rotate {
  0%, 64% { transform: rotate(0deg); }
  100% { transform: rotate(90deg); }
}

/* Second close phase: once the arrow has collapsed back to a line, the message
   icon fades in and rocks back and forth to settle. */
.wpsc-settling .wpsc-launcher-glyph .wpsc-chat-icon {
  transform-origin: 50% 78%;
  animation: wpsc-icon-settle .58s cubic-bezier(.36, .07, .19, 1.2) both;
}

@keyframes wpsc-icon-settle {
  0% { transform: scale(.72) rotate(-16deg); }
  32% { transform: scale(1) rotate(12deg); }
  55% { transform: rotate(-7deg); }
  76% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

@keyframes wpsc-bubble-in {
  from { opacity: 0; transform: scale(.4) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wpsc-bubble-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wpsc-launcher);
  opacity: 0;
  pointer-events: none;
  animation: wpsc-bubble-ping 2.6s ease-out 1.1s 3;
}

@keyframes wpsc-bubble-ping {
  0% { opacity: .4; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1.6); }
}

.wpsc-bubble::before {
  content: "";
  width: 23px;
  height: 19px;
  border: 2.5px solid currentColor;
  border-radius: 8px;
  box-sizing: border-box;
}

.wpsc-bubble::after {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  bottom: calc(50% - 15px);
  width: 7px;
  height: 7px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  border-bottom-left-radius: 2px;
  transform: skewY(-35deg);
}

.wpsc-modern-launcher .wpsc-bubble::before,
.wpsc-modern-launcher .wpsc-bubble::after {
  display: none;
}

.wpsc-bubble:hover,
.wpsc-bubble:focus-visible {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .24), 0 4px 10px rgba(15, 23, 42, .14);
}

.wpsc-bubble:active {
  transform: translateY(0) scale(.94);
  transition-duration: .1s;
}

.wpsc-bubble:focus-visible {
  outline: 3px solid rgba(23, 105, 170, .28);
  outline-offset: 3px;
}

.wpsc-launcher-glyph,
.wpsc-launcher-dots {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .18s ease, transform .18s ease;
}

.wpsc-launcher-dots {
  opacity: 0;
  transform: scale(.82);
  gap: 4px;
}

.wpsc-launcher-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.wpsc-bubble:hover .wpsc-launcher-glyph,
.wpsc-bubble:focus-visible .wpsc-launcher-glyph,
.wpsc-launcher-dots-mode .wpsc-launcher-glyph {
  opacity: 0;
  transform: scale(.86);
}

.wpsc-bubble:hover .wpsc-launcher-dots,
.wpsc-bubble:focus-visible .wpsc-launcher-dots,
.wpsc-launcher-dots-mode .wpsc-launcher-dots {
  opacity: 1;
  transform: scale(1);
}

.wpsc-bubble:hover .wpsc-launcher-dots i,
.wpsc-bubble:focus-visible .wpsc-launcher-dots i {
  animation: wpsc-dot-wave .9s ease-in-out infinite;
}

.wpsc-bubble:hover .wpsc-launcher-dots i:nth-child(2),
.wpsc-bubble:focus-visible .wpsc-launcher-dots i:nth-child(2) {
  animation-delay: .14s;
}

.wpsc-bubble:hover .wpsc-launcher-dots i:nth-child(3),
.wpsc-bubble:focus-visible .wpsc-launcher-dots i:nth-child(3) {
  animation-delay: .28s;
}

@keyframes wpsc-dot-wave {
  0%, 55%, 100% { transform: translateY(0) scale(1); opacity: .75; }
  28% { transform: translateY(-6px) scale(1.2); opacity: 1; }
}

.wpsc-chat-icon {
  width: 27px;
  height: 27px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: var(--wpsc-chat-icon-mask) center / contain no-repeat;
  mask: var(--wpsc-chat-icon-mask) center / contain no-repeat;
}

/* Subtle idle animation for the launcher message icon: it rests for most of the
   cycle, then gives a gentle wiggle-and-pulse. Pauses while hovering so it does
   not fight the dot-wave swap. Only the launcher icon animates; the nudge and
   welcome-screen icons stay static. */
.wpsc-launcher-glyph .wpsc-chat-icon {
  transform-origin: 50% 62%;
  animation: wpsc-icon-idle 5s ease-in-out 2s infinite;
}

.wpsc-bubble:hover .wpsc-launcher-glyph .wpsc-chat-icon,
.wpsc-bubble:focus-visible .wpsc-launcher-glyph .wpsc-chat-icon {
  animation-play-state: paused;
}

@keyframes wpsc-icon-idle {
  0%, 72%, 100% { transform: rotate(0deg) scale(1); }
  79% { transform: rotate(-6deg) scale(1.06); }
  86% { transform: rotate(5deg) scale(1.04); }
  93% { transform: rotate(-2deg) scale(1.01); }
}

.wpsc-launcher-logo {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: center / contain no-repeat rgba(255, 255, 255, .15);
}

.wpsc-launcher-logo-mode .wpsc-launcher-logo {
  display: block;
}

.wpsc-launcher-logo-mode .wpsc-launcher-glyph .wpsc-chat-icon {
  display: none;
}

.wpsc-nudge {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(320px, calc(100vw - 36px));
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}

.wpsc-left .wpsc-nudge {
  right: auto;
  left: 0;
}

.wpsc-nudge-visible .wpsc-nudge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wpsc-nudge-body {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 7px 12px 7px 7px;
  background: #fff;
  color: #111827;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
  cursor: pointer;
}

.wpsc-mini-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--wpsc-launcher);
  color: #fff;
}

.wpsc-mini-icon .wpsc-chat-icon {
  width: 15px;
  height: 15px;
}

.wpsc-nudge-text {
  overflow: hidden;
  max-width: 220px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.wpsc-nudge-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .13);
  cursor: pointer;
}

.wpsc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #d63638;
  color: #fff;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(214, 54, 56, 0.4);
  box-sizing: border-box;
  animation: wpsc-badge-pop .3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both, wpsc-badge-pulse 1.7s ease-out .3s infinite;
}

@keyframes wpsc-badge-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes wpsc-badge-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 54, 56, .5), 0 3px 8px rgba(214, 54, 56, .4); }
  60% { transform: scale(1.14); box-shadow: 0 0 0 9px rgba(214, 54, 56, 0), 0 3px 8px rgba(214, 54, 56, .4); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 54, 56, 0), 0 3px 8px rgba(214, 54, 56, .4); }
}

.wpsc-panel {
  position: relative;
  width: min(384px, calc(100vw - 24px));
  height: min(624px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  background: var(--wpsc-surface);
  border: 1px solid var(--wpsc-line);
  border-radius: var(--wpsc-radius-lg);
  box-shadow: var(--wpsc-shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(.8);
  transform-origin: 100% 100%;
  transition: opacity .34s ease, transform .5s cubic-bezier(.2, .84, .26, 1);
  will-change: transform, opacity;
}

.wpsc-left .wpsc-panel {
  transform-origin: 0 100%;
}

.wpsc-open .wpsc-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wpsc-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .07) 70%), var(--wpsc-primary);
  color: #fff;
}

.wpsc-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.wpsc-header-left {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.wpsc-chat-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
}

.wpsc-welcome {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 22px 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(22, 160, 133, .16), transparent 26%),
    linear-gradient(155deg, rgba(224, 230, 255, .78), rgba(244, 247, 248, .96) 46%, #f4f5f7 100%);
}

.wpsc-welcome-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 22px;
  border-radius: 50%;
  background: var(--wpsc-launcher);
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 105, 170, .24);
}

.wpsc-welcome h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
  color: #111827;
}

.wpsc-welcome-subtitle {
  margin: 2px 0 26px;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 800;
  color: #111827;
}

.wpsc-welcome-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 auto;
  padding: 15px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .10);
}

.wpsc-welcome-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wpsc-secondary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.wpsc-welcome-avatar::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
}

.wpsc-welcome-card strong {
  display: block;
  margin: 0 0 4px;
  color: #111827;
  font-size: 13px;
}

.wpsc-welcome-card p {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.35;
}

.wpsc-start-chat {
  width: 100%;
  min-height: 47px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: var(--wpsc-primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 105, 170, .22);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.wpsc-start-chat:hover,
.wpsc-start-chat:focus-visible {
  filter: brightness(.97);
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(23, 105, 170, .26);
}

.wpsc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wpsc-logo {
  width: var(--wpsc-header-logo-width, 38px);
  height: var(--wpsc-header-logo-size, 38px);
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, .16);
  flex: 0 0 auto;
}

.wpsc-logo-fit-cover .wpsc-logo {
  object-fit: cover;
}

.wpsc-logo-fit-contain .wpsc-logo {
  object-fit: contain;
}

.wpsc-header strong,
.wpsc-header span {
  display: block;
  line-height: 1.3;
}

.wpsc-header span {
  font-size: 12px;
  opacity: .9;
  max-width: 280px;
}

.wpsc-header-status {
  display: none;
}

.wpsc-business-online .wpsc-brand > div > span::before,
.wpsc-business-online .wpsc-header-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .18);
  vertical-align: middle;
  animation: wpsc-online-pulse 2.2s ease-out infinite;
}

@keyframes wpsc-online-pulse {
  0%, 45%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, .18); }
  70% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.wpsc-header-hide-name .wpsc-brand strong,
.wpsc-header-hide-status .wpsc-brand span,
.wpsc-header-hide-status .wpsc-header-status {
  display: none;
}

.wpsc-logo-shape-circle .wpsc-logo {
  border-radius: 50%;
}

.wpsc-logo-shape-square .wpsc-logo {
  border-radius: 0;
}

.wpsc-logo-shape-rounded_square .wpsc-logo {
  border-radius: 8px;
}

.wpsc-logo-shape-rectangle .wpsc-logo {
  width: var(--wpsc-header-logo-width, 72px);
  border-radius: 7px;
}

.wpsc-header-brand_bar .wpsc-header {
  min-height: 78px;
  flex-wrap: wrap;
  align-content: center;
  row-gap: 4px;
}

.wpsc-header-brand_bar .wpsc-brand {
  flex: 1 1 auto;
  min-width: 0;
}

.wpsc-header-brand_bar .wpsc-brand > div {
  min-width: 0;
}

.wpsc-header-brand_bar .wpsc-brand strong {
  overflow: hidden;
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpsc-header-brand_bar .wpsc-brand span {
  display: none;
}

.wpsc-header-brand_bar.wpsc-header-hide-name .wpsc-brand {
  flex: 1 1 auto;
}

.wpsc-header-brand_bar .wpsc-header-status {
  order: 4;
  display: block;
  flex: 1 0 100%;
  margin: -2px 0 0;
  padding-right: 8px;
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.wpsc-header-brand_bar.wpsc-header-hide-status .wpsc-header-status {
  display: none;
}

.wpsc-header-brand_bar .wpsc-top-menu-left {
  display: none;
}

.wpsc-top-menu,
.wpsc-header-back,
.wpsc-minimize,
.wpsc-close {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  touch-action: manipulation;
}

.wpsc-top-menu {
  width: 40px;
  height: 40px;
  font-size: 19px;
  letter-spacing: 1px;
}

.wpsc-header-back {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.wpsc-close {
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.wpsc-minimize {
  width: 34px;
  height: 34px;
  font-size: 24px;
}

.wpsc-top-menu:focus-visible,
.wpsc-header-back:focus-visible,
.wpsc-minimize:focus-visible,
.wpsc-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .72);
  outline-offset: 2px;
}

.wpsc-header-floating_pill .wpsc-header,
.wpsc-header-compact_center .wpsc-header {
  min-height: calc(var(--wpsc-header-logo-size, 34px) + 72px);
  justify-content: center;
  padding: 12px;
  background: #f4f5f7;
  color: #111827;
}

.wpsc-header-floating_pill .wpsc-header-left,
.wpsc-header-compact_center .wpsc-header-left {
  display: inline-flex;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}

.wpsc-header-floating_pill .wpsc-header-actions,
.wpsc-header-compact_center .wpsc-header-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  gap: 6px;
}

.wpsc-header-floating_pill .wpsc-top-menu-right,
.wpsc-header-compact_center .wpsc-top-menu-right {
  display: none;
}

.wpsc-header-floating_pill .wpsc-header-back,
.wpsc-header-compact_center .wpsc-header-back {
  display: none;
}

.wpsc-header-floating_pill .wpsc-top-menu,
.wpsc-header-floating_pill .wpsc-header-back,
.wpsc-header-floating_pill .wpsc-minimize,
.wpsc-header-floating_pill .wpsc-close,
.wpsc-header-compact_center .wpsc-top-menu,
.wpsc-header-compact_center .wpsc-header-back,
.wpsc-header-compact_center .wpsc-minimize,
.wpsc-header-compact_center .wpsc-close {
  width: 34px;
  height: 34px;
  background: rgba(17, 24, 39, .08);
  color: #111827;
  font-size: 18px;
  box-shadow: none;
}

.wpsc-header-floating_pill .wpsc-close,
.wpsc-header-compact_center .wpsc-close {
  font-size: 24px;
}

.wpsc-header-floating_pill .wpsc-minimize,
.wpsc-header-compact_center .wpsc-minimize {
  font-size: 22px;
}

.wpsc-header-floating_pill .wpsc-brand {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  min-height: calc(var(--wpsc-header-logo-size, 34px) + 12px);
  max-width: min(220px, calc(100% - 176px));
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
  transform: translateX(-50%);
}

.wpsc-header-compact_center .wpsc-brand {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  min-height: calc(var(--wpsc-header-logo-size, 34px) + 8px);
  max-width: min(220px, calc(100% - 176px));
  padding: 5px 10px 5px 6px;
  border-radius: 16px;
  background: transparent;
  transform: translateX(-50%);
}

.wpsc-header-floating_pill .wpsc-brand > div,
.wpsc-header-compact_center .wpsc-brand > div {
  min-width: 0;
}

.wpsc-header-floating_pill.wpsc-header-hide-name .wpsc-brand,
.wpsc-header-compact_center.wpsc-header-hide-name .wpsc-brand {
  width: auto;
  max-width: none;
  gap: 0;
  padding: 6px;
  justify-content: center;
}

.wpsc-header-floating_pill.wpsc-header-hide-name .wpsc-brand > div,
.wpsc-header-compact_center.wpsc-header-hide-name .wpsc-brand > div {
  display: none;
}

.wpsc-header-floating_pill .wpsc-logo,
.wpsc-header-compact_center .wpsc-logo {
  width: var(--wpsc-header-logo-size, 34px);
  height: var(--wpsc-header-logo-size, 34px);
  background: rgba(23, 105, 170, .10);
}

.wpsc-header-floating_pill.wpsc-logo-shape-rectangle .wpsc-logo,
.wpsc-header-compact_center.wpsc-logo-shape-rectangle .wpsc-logo {
  width: var(--wpsc-header-logo-width, 76px);
  height: var(--wpsc-header-logo-size, 42px);
  border-radius: 0;
  background: transparent;
}

.wpsc-header-floating_pill.wpsc-logo-shape-rectangle .wpsc-brand {
  min-height: var(--wpsc-header-logo-size, 42px);
  padding: 0 15px 0 0;
  gap: 10px;
  overflow: hidden;
}

.wpsc-header-compact_center.wpsc-logo-shape-rectangle .wpsc-brand {
  min-height: var(--wpsc-header-logo-size, 42px);
  padding: 0 10px 0 0;
  gap: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .13);
}

.wpsc-header-floating_pill.wpsc-header-hide-name.wpsc-logo-shape-rectangle .wpsc-brand,
.wpsc-header-compact_center.wpsc-header-hide-name.wpsc-logo-shape-rectangle .wpsc-brand {
  padding: 0;
  min-height: var(--wpsc-header-logo-size, 42px);
}

.wpsc-header-hide-name.wpsc-logo-shape-rectangle .wpsc-logo {
  width: var(--wpsc-header-logo-width, 110px);
}

.wpsc-header-floating_pill .wpsc-brand strong,
.wpsc-header-compact_center .wpsc-brand strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpsc-header-floating_pill .wpsc-brand span,
.wpsc-header-compact_center .wpsc-brand span {
  display: none;
}

.wpsc-header-floating_pill .wpsc-header-status,
.wpsc-header-compact_center .wpsc-header-status {
  position: absolute;
  display: block;
  top: calc(var(--wpsc-header-logo-size, 34px) + 30px);
  left: 50%;
  width: min(260px, calc(100vw - 138px));
  max-width: none;
  margin: 0;
  overflow: visible;
  color: rgba(17, 24, 39, .68);
  font-size: 11px;
  line-height: 1.25;
  opacity: 1;
  text-align: center;
  text-overflow: clip;
  transform: translateX(-50%);
  white-space: normal;
}

.wpsc-header-floating_pill .wpsc-tools,
.wpsc-header-compact_center .wpsc-tools {
  top: 58px;
  left: 46px;
  right: auto;
}

.wpsc-messages {
  flex: 1;
  padding: 18px 16px;
  overflow: auto;
  background: var(--wpsc-surface-sub);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, .16) transparent;
  overscroll-behavior: contain;
}

.wpsc-messages::-webkit-scrollbar {
  width: 6px;
}

.wpsc-messages::-webkit-scrollbar-track {
  background: transparent;
}

.wpsc-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 23, 42, .22);
}

.wpsc-feedback-view {
  flex: 1;
  min-height: 0;
  background: #f4f5f7;
  overflow: auto;
}

.wpsc-feedback-body {
  min-height: 100%;
  box-sizing: border-box;
  padding: 24px 18px 22px;
}

.wpsc-closed-note {
  margin: 8px 0 20px;
  color: rgba(22, 32, 42, .62);
  font-size: 14px;
  text-align: center;
}

.wpsc-feedback-card {
  width: min(248px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.wpsc-feedback-card fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.wpsc-feedback-card legend,
.wpsc-feedback-comment {
  display: block;
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.35;
}

.wpsc-feedback-card legend span {
  color: #d63638;
}

.wpsc-feedback-card label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.3;
}

.wpsc-rating-options {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wpsc-rating-options label {
  margin: 0;
}

.wpsc-rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wpsc-rating-options span[aria-hidden="true"] {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 50%;
  background: #f8fafc;
  font-size: 17px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.wpsc-rating-options input:checked + span[aria-hidden="true"],
.wpsc-rating-options span[aria-hidden="true"]:hover {
  border-color: var(--wpsc-primary);
  background: rgba(23, 105, 170, .10);
  transform: translateY(-1px);
}

.wpsc-feedback-comment textarea {
  width: 100%;
  min-height: 74px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 10px;
  resize: vertical;
  font: inherit;
  font-size: 14px;
}

.wpsc-feedback-comment {
  display: block !important;
}

.wpsc-feedback-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}

.wpsc-feedback-submit,
.wpsc-feedback-skip {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.wpsc-feedback-submit {
  background: var(--wpsc-primary);
  color: #fff;
}

.wpsc-feedback-submit:disabled {
  cursor: wait;
  opacity: .72;
}

.wpsc-feedback-skip {
  background: transparent;
  color: rgba(22, 32, 42, .68);
}

.wpsc-feedback-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: rgba(22, 32, 42, .68);
  font-size: 12px;
  line-height: 1.4;
}

.wpsc-close-confirm {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: start center;
  padding: 22px 18px;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(1px);
}

.wpsc-close-confirm[hidden] {
  display: none !important;
}

.wpsc-close-dialog {
  position: relative;
  width: min(290px, calc(100% - 24px));
  box-sizing: border-box;
  padding: 28px 18px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .28);
  text-align: center;
}

.wpsc-close-confirm-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wpsc-close-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #111827;
}

.wpsc-close-icon span {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
}

.wpsc-close-icon span::before,
.wpsc-close-icon span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.wpsc-close-icon span::before {
  width: 13px;
}

.wpsc-close-icon span::after {
  left: 10px;
  width: 7px;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: right center;
}

.wpsc-close-confirm-title {
  margin: 0 0 22px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.wpsc-close-confirm-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--wpsc-secondary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

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

.wpsc-msg {
  max-width: 82%;
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  transform-origin: bottom left;
  animation: wpsc-msg-in .34s cubic-bezier(.34, 1.42, .5, 1) both;
}

@keyframes wpsc-msg-in {
  from { opacity: 0; transform: translateY(12px) scale(.92); }
  55% { opacity: 1; }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wpsc-msg-bot,
.wpsc-msg-system {
  background: var(--wpsc-surface);
  color: var(--wpsc-ink);
  border: 1px solid var(--wpsc-line);
  border-bottom-left-radius: 6px;
  box-shadow: var(--wpsc-shadow-sm);
}

/* Categorised quick actions in the welcome menu. */
.wpsc-qa-cat {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 4px 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #8b8aa4;
}
.wpsc-qa-cat:first-child { margin-top: 2px; }
.wpsc-qa-cat-icon { font-size: 15px; }
.wpsc-welcome-starter-dot.wpsc-qa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: transparent;
  width: 22px;
}
.wpsc-qa-back .wpsc-qa-back-arrow { font-size: 18px; font-weight: 700; }
.wpsc-qa-links a {
  display: block;
  color: var(--wpsc-primary);
  text-decoration: underline;
  margin: 2px 0;
  word-break: break-word;
}

/* Centered status line (e.g. an agent joining the chat). */
.wpsc-msg-notice {
  max-width: 90%;
  margin: 2px auto 14px;
  padding: 3px 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #8b8aa4;
  font-size: 12px;
  text-align: center;
  animation: none;
}

.wpsc-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 13px 15px;
}

.wpsc-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(22, 32, 42, .38);
  animation: wpsc-typing-bounce .95s ease-in-out infinite;
}

.wpsc-typing i:nth-child(2) {
  animation-delay: .14s;
}

.wpsc-typing i:nth-child(3) {
  animation-delay: .28s;
}

@keyframes wpsc-typing-bounce {
  0%, 60%, 100% { transform: translateY(0) scale(1); opacity: .5; }
  30% { transform: translateY(-5px) scale(1.18); opacity: 1; }
}

.wpsc-live-typing {
  align-self: flex-start;
  max-width: 84%;
  margin: 0 0 10px;
}

.wpsc-live-typing .wpsc-typing {
  margin-bottom: 4px;
}

#wpsc-chatbot-root .wpsc-live-typing-text {
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  color: rgba(22, 32, 42, .68) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-transform: none !important;
}

.wpsc-msg-image {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.wpsc-msg-file {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.wpsc-msg-image a,
.wpsc-msg-image img {
  display: block;
}

.wpsc-msg-image img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.wpsc-msg-file a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: #fff;
  color: var(--wpsc-text);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.wpsc-file-badge {
  min-width: 34px;
  padding: 4px 6px;
  border-radius: 7px;
  background: #d63638;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.wpsc-lead-card {
  max-width: 100%;
  width: calc(100% - 4px);
  box-sizing: border-box;
  padding: 16px;
  border-color: rgba(0, 0, 0, .07);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

.wpsc-msg-visitor,
.wpsc-msg-agent {
  margin-left: auto;
  background: var(--wpsc-primary);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: var(--wpsc-shadow-sm);
  transform-origin: bottom right;
}

.wpsc-msg-agent {
  display: grid;
  gap: 3px;
}

.wpsc-agent-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: .82;
}

.wpsc-message-text {
  display: block;
}

.wpsc-quick {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

/* No quick actions → no empty divider line above the composer. */
.wpsc-quick:empty {
  display: none;
}

.wpsc-quick-bubbles {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.wpsc-quick-cards {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
}

.wpsc-quick button {
  border: 1px solid color-mix(in srgb, var(--wpsc-primary) 32%, var(--wpsc-line-strong));
  background: var(--wpsc-surface);
  color: var(--wpsc-primary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--wpsc-shadow-sm);
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.wpsc-quick-bubbles button:hover,
.wpsc-quick-bubbles button:focus-visible {
  background: var(--wpsc-primary);
  border-color: var(--wpsc-primary);
  color: #fff;
  box-shadow: var(--wpsc-shadow-md);
}

.wpsc-quick-bubbles button:focus-visible {
  outline: 2px solid rgba(15, 23, 42, .35);
  outline-offset: 2px;
}

.wpsc-quick-bubbles button {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.wpsc-quick .wpsc-option-card {
  transition: transform .16s ease, box-shadow .16s ease;
}

.wpsc-quick .wpsc-option-card:hover,
.wpsc-quick .wpsc-option-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.wpsc-quick .wpsc-option-card {
  position: relative;
  display: block;
  flex: 0 0 152px;
  width: 152px;
  height: 152px;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  white-space: normal;
  min-width: 0;
  scroll-snap-align: start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.wpsc-option-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  background: #eef3f7;
}

.wpsc-card-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #eef3f7;
}

.wpsc-option-card span:not(.wpsc-card-placeholder) {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 9px;
  color: var(--wpsc-card-text, #111827);
  font-weight: 600;
  line-height: 1.2;
  font-size: 12px;
  overflow-wrap: anywhere;
  background: var(--wpsc-card-label-bg, rgba(17, 24, 39, .88));
}

.wpsc-option-card.wpsc-card-shape-landscape {
  height: 118px;
}

.wpsc-option-card.wpsc-card-shape-square {
  height: 152px;
}

.wpsc-option-card.wpsc-card-shape-portrait {
  height: 190px;
}

.wpsc-card-cover img,
.wpsc-card-cover .wpsc-card-placeholder,
.wpsc-card-split img,
.wpsc-card-split .wpsc-card-placeholder {
  width: 100%;
  height: 100%;
}

.wpsc-card-cover span:not(.wpsc-card-placeholder) {
  left: 8px;
  right: 8px;
  bottom: 8px;
  min-height: 0;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--wpsc-card-text, #fff);
  background: var(--wpsc-card-label-bg, rgba(0, 0, 0, .88));
}

.wpsc-card-cover.wpsc-card-text-center span:not(.wpsc-card-placeholder) {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  justify-content: center;
  text-align: center;
}

.wpsc-card-split.wpsc-card-text-center span:not(.wpsc-card-placeholder) {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  justify-content: center;
  text-align: center;
}

.wpsc-carousel {
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.wpsc-carousel-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eef3f7;
}

.wpsc-carousel-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wpsc-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wpsc-carousel-prev {
  left: 10px;
}

.wpsc-carousel-next {
  right: 10px;
}

.wpsc-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px 0;
}

.wpsc-carousel-dots button {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(0, 0, 0, .38);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.wpsc-carousel-dots button.is-active {
  background: var(--wpsc-primary);
  border-color: var(--wpsc-primary);
}

.wpsc-carousel-body {
  padding: 14px 16px 16px;
}

.wpsc-carousel-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--wpsc-text);
}

.wpsc-carousel-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

.wpsc-carousel-body ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 14px;
  padding-left: 18px;
  font-size: 14px;
}

.wpsc-carousel-cta {
  display: block;
  padding: 12px 14px;
  border-radius: var(--wpsc-carousel-button-radius, 2px);
  background: var(--wpsc-carousel-button-bg, var(--wpsc-primary));
  color: var(--wpsc-carousel-button-text, #fff);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.wpsc-composer,
.wpsc-lead {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--wpsc-line);
}

.wpsc-lead {
  padding: 0;
  border-top: 0;
  gap: 11px;
}

.wpsc-form-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--wpsc-text);
  line-height: 1.25;
  margin-bottom: 2px;
}

.wpsc-composer {
  grid-template-columns: 40px 1fr 40px 40px;
  align-items: center;
  background: #fff;
  gap: 7px;
}

.wpsc-composer input,
.wpsc-lead input,
.wpsc-lead select,
.wpsc-lead textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 10px;
  background-color: #f8fafc;
  color: var(--wpsc-text);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.wpsc-composer input {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  background-color: var(--wpsc-surface-sub);
  border-color: var(--wpsc-line-strong);
}

.wpsc-lead select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 12px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, .72) 50%),
    linear-gradient(135deg, rgba(15, 23, 42, .72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.wpsc-lead select option {
  padding: 8px 12px;
}

.wpsc-lead textarea {
  min-height: 86px;
  resize: vertical;
}

.wpsc-composer input:focus,
.wpsc-lead input:focus,
.wpsc-lead select:focus,
.wpsc-lead textarea:focus {
  border-color: var(--wpsc-primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .18);
  outline: 0;
}

.wpsc-lead input::placeholder,
.wpsc-lead textarea::placeholder,
.wpsc-composer input::placeholder {
  color: rgba(22, 32, 42, .52);
}

.wpsc-lead button {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--wpsc-secondary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}

.wpsc-composer button {
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--wpsc-secondary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}

.wpsc-lead button:hover,
.wpsc-composer button:hover {
  filter: brightness(.96);
  box-shadow: 0 2px 7px rgba(15, 23, 42, .12);
}

.wpsc-lead button:active,
.wpsc-composer button:active {
  transform: translateY(1px);
}

.wpsc-composer .wpsc-attachment-toggle {
  width: 40px;
  background: #eef3f7;
  color: #111827;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.wpsc-composer .wpsc-emoji-toggle {
  width: 36px;
  min-height: 36px;
  background: #eef1f4;
  color: #6b7280;
  font-size: 0;
  line-height: 1;
}

.wpsc-emoji-placeholder {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.wpsc-emoji-placeholder::before,
.wpsc-emoji-placeholder::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.wpsc-emoji-placeholder::before {
  left: 4px;
}

.wpsc-emoji-placeholder::after {
  right: 4px;
}

.wpsc-composer .wpsc-send {
  position: relative;
  width: 40px;
  min-width: 40px;
  overflow: hidden;
}

.wpsc-composer .wpsc-send span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wpsc-composer .wpsc-send::before,
.wpsc-composer .wpsc-send::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #fff;
  transform-origin: center;
}

.wpsc-composer .wpsc-send::before {
  top: 13px;
  width: 3px;
  height: 15px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.wpsc-composer .wpsc-send::after {
  top: 12px;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
}

.wpsc-emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 14px 10px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

.wpsc-media-menu {
  margin: 0 14px 10px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.wpsc-media-action {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  color: var(--wpsc-text);
  text-align: left;
  cursor: pointer;
}

.wpsc-media-action + .wpsc-media-action {
  margin-top: 6px;
}

.wpsc-media-action:hover,
.wpsc-media-action:focus-visible {
  background: #eef3f7;
  outline: 0;
}

.wpsc-media-action strong {
  font-size: 14px;
}

.wpsc-media-action span {
  color: rgba(22, 32, 42, .64);
  font-size: 12px;
  line-height: 1.35;
}

/* Protect the media chooser from broad theme button/grid rules. */
#wpsc-chatbot-root .wpsc-media-menu {
  margin: 0 14px 10px !important;
  padding: 8px !important;
}

#wpsc-chatbot-root .wpsc-media-menu:not([hidden]) {
  display: block !important;
}

#wpsc-chatbot-root .wpsc-media-action {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  color: var(--wpsc-text) !important;
  line-height: normal !important;
  text-align: left !important;
}

#wpsc-chatbot-root .wpsc-media-action + .wpsc-media-action {
  margin-top: 6px !important;
}

#wpsc-chatbot-root .wpsc-media-action:hover,
#wpsc-chatbot-root .wpsc-media-action:focus,
#wpsc-chatbot-root .wpsc-media-action:active {
  background: #eef3f7 !important;
  color: var(--wpsc-text) !important;
}

#wpsc-chatbot-root .wpsc-media-action strong,
#wpsc-chatbot-root .wpsc-media-action span {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

#wpsc-chatbot-root .wpsc-media-action span {
  margin-top: 3px !important;
}

.wpsc-pending-upload {
  margin: 0 14px 10px;
}

.wpsc-pending-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.wpsc-pending-card img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: #eef3f7;
}

.wpsc-pending-card .wpsc-file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #d92d20;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.wpsc-pending-card div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.wpsc-pending-card strong,
.wpsc-pending-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpsc-pending-card strong {
  color: var(--wpsc-text);
  font-size: 13px;
}

.wpsc-pending-card div span {
  color: rgba(22, 32, 42, .64);
  font-size: 12px;
}

.wpsc-pending-remove {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef3f7;
  color: #111827;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.wpsc-media-disabled .wpsc-media-upload,
.wpsc-media-upload-disabled .wpsc-media-upload,
.wpsc-media-disabled .wpsc-pending-upload {
  display: none !important;
}

.wpsc-emoji-picker button {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .14s ease, transform .14s ease;
}

.wpsc-emoji-picker button:hover,
.wpsc-emoji-picker button:focus-visible {
  background: #eef3f7;
  outline: 0;
  transform: translateY(-1px);
}

.wpsc-tools {
  position: absolute;
  right: 66px;
  top: 84px;
  z-index: 12;
  min-width: 208px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
  transform-origin: top right;
  animation: wpsc-tools-in .14s ease;
}

@keyframes wpsc-tools-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.wpsc-tools button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #1f2937;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color .13s ease, color .13s ease;
}

.wpsc-tools button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
  opacity: .62;
}

.wpsc-tools button:hover,
.wpsc-tools button:focus-visible {
  background: color-mix(in srgb, var(--wpsc-primary) 10%, #fff);
  color: var(--wpsc-primary);
  outline: none;
}

.wpsc-tools button:hover svg,
.wpsc-tools button:focus-visible svg {
  opacity: 1;
}

.wpsc-inline-form {
  align-self: flex-start;
  max-width: 92%;
  margin: 6px 0;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

.wpsc-inline-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.wpsc-inline-form-head strong {
  font-size: 14px;
  color: #111827;
}

.wpsc-inline-form-close {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.wpsc-inline-form-close:hover {
  color: #4b5563;
}

.wpsc-inline-form-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #6b7280;
}

.wpsc-inline-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  color: #111827;
}

.wpsc-inline-form textarea:focus {
  outline: none;
  border-color: var(--wpsc-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpsc-primary) 18%, transparent);
}

.wpsc-inline-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.wpsc-inline-form-submit {
  border: 0;
  border-radius: 9px;
  padding: 8px 16px;
  background: var(--wpsc-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .13s ease;
}

.wpsc-inline-form-submit:hover {
  filter: brightness(1.06);
}

.wpsc-inline-form-submit:disabled {
  opacity: .7;
  cursor: default;
}

@media (max-width: 520px) {
  .wpsc-chatbot-root,
  .wpsc-chatbot-root.wpsc-left {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .wpsc-panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
  }

  .wpsc-header {
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  }

  .wpsc-close {
    width: 48px;
    height: 48px;
    font-size: 32px;
  }

  .wpsc-minimize {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .wpsc-nudge {
    right: 0;
    bottom: 74px;
    max-width: calc(100vw - 24px);
  }

  .wpsc-header span {
    max-width: calc(100vw - 126px);
  }

  .wpsc-welcome {
    padding: 22px 20px 16px;
  }

  .wpsc-welcome h2,
  .wpsc-welcome-subtitle {
    font-size: 34px;
  }

  .wpsc-lead-card {
    margin-bottom: 12px;
  }
}

/* Note: the widget's animations intentionally play regardless of the
   prefers-reduced-motion setting, at the site owner's request, so the launcher
   morph, open/close, typing wave, and badge pulse are always visible. To make
   the widget honour reduced-motion again, reinstate a
   @media (prefers-reduced-motion: reduce) block that disables the transform
   animations and the .wpsc-launcher-morph, falling back to opacity fades. */

/* Keep option cards compact even when a theme/plugin has broad button or image rules. */
.wpsc-chatbot-root .wpsc-quick.wpsc-quick-cards {
  flex: 0 0 auto;
  max-height: 214px;
  box-sizing: border-box;
}

.wpsc-chatbot-root .wpsc-quick .wpsc-option-card {
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 152px !important;
  width: 152px !important;
  min-width: 152px !important;
  max-width: 152px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.wpsc-chatbot-root .wpsc-quick .wpsc-option-card img,
.wpsc-chatbot-root .wpsc-quick .wpsc-option-card .wpsc-card-placeholder {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.wpsc-chatbot-root .wpsc-quick .wpsc-option-card.wpsc-card-shape-landscape {
  height: 118px !important;
  max-height: 118px !important;
}

.wpsc-chatbot-root .wpsc-quick .wpsc-option-card.wpsc-card-shape-square {
  height: 152px !important;
  max-height: 152px !important;
}

.wpsc-chatbot-root .wpsc-quick .wpsc-option-card.wpsc-card-shape-portrait {
  height: 190px !important;
  max-height: 190px !important;
}

.wpsc-chatbot-root .wpsc-quick .wpsc-option-card span:not(.wpsc-card-placeholder) {
  box-sizing: border-box !important;
  position: absolute !important;
}

.wpsc-chatbot-root .wpsc-messages .wpsc-carousel,
.wpsc-chatbot-root .wpsc-messages .wpsc-carousel * {
  box-sizing: border-box;
}

.wpsc-chatbot-root .wpsc-messages .wpsc-carousel-media {
  height: auto !important;
  max-height: 240px;
  overflow: hidden;
}

.wpsc-chatbot-root .wpsc-messages .wpsc-carousel-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 240px;
  object-fit: cover !important;
}

/*
 * Last-line theme isolation for the fixed launcher and welcome screen. These
 * declarations intentionally use the root ID and !important: some commercial
 * themes ship global button rules with !important, including hover colours.
 */
#wpsc-chatbot-root > .wpsc-bubble {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--wpsc-launcher) !important;
  color: #fff !important;
  line-height: 1 !important;
}

#wpsc-chatbot-root > .wpsc-bubble:hover,
#wpsc-chatbot-root > .wpsc-bubble:focus,
#wpsc-chatbot-root > .wpsc-bubble:focus-visible,
#wpsc-chatbot-root > .wpsc-bubble:active {
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--wpsc-launcher) !important;
  color: #fff !important;
}

#wpsc-chatbot-root .wpsc-panel {
  padding: 0 !important;
  font-size: 16px;
  line-height: normal;
  text-align: left;
}

#wpsc-chatbot-root .wpsc-header button {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
  line-height: 1 !important;
}

#wpsc-chatbot-root .wpsc-header button:hover,
#wpsc-chatbot-root .wpsc-header button:focus,
#wpsc-chatbot-root .wpsc-header button:active {
  border: 0 !important;
  background: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
}

/* The floating-pill and compact-centre headers sit on the light panel, not a
   colour bar, so their controls must be dark to be visible. This has to beat
   the white-forcing theme-defence rule above (ID + extra class + !important). */
#wpsc-chatbot-root.wpsc-header-floating_pill .wpsc-header button,
#wpsc-chatbot-root.wpsc-header-compact_center .wpsc-header button {
  background: var(--wpsc-surface-sub) !important;
  color: var(--wpsc-ink-soft) !important;
  box-shadow: inset 0 0 0 1px var(--wpsc-line) !important;
}

#wpsc-chatbot-root.wpsc-header-floating_pill .wpsc-header button:hover,
#wpsc-chatbot-root.wpsc-header-floating_pill .wpsc-header button:focus,
#wpsc-chatbot-root.wpsc-header-compact_center .wpsc-header button:hover,
#wpsc-chatbot-root.wpsc-header-compact_center .wpsc-header button:focus {
  background: color-mix(in srgb, var(--wpsc-primary) 12%, #fff) !important;
  color: var(--wpsc-primary) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wpsc-primary) 24%, transparent) !important;
}

#wpsc-chatbot-root .wpsc-welcome {
  margin: 0 !important;
  text-align: left !important;
}

#wpsc-chatbot-root .wpsc-welcome h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 38px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  color: #111827 !important;
}

#wpsc-chatbot-root .wpsc-welcome-subtitle {
  margin: 2px 0 26px !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 36px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  color: #111827 !important;
}

#wpsc-chatbot-root .wpsc-welcome-card,
#wpsc-chatbot-root .wpsc-welcome-card p,
#wpsc-chatbot-root .wpsc-welcome-card strong {
  text-align: left !important;
  text-transform: none !important;
}

#wpsc-chatbot-root .wpsc-start-chat {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 47px !important;
  margin: 18px 0 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--wpsc-primary) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

#wpsc-chatbot-root .wpsc-start-chat:hover,
#wpsc-chatbot-root .wpsc-start-chat:focus,
#wpsc-chatbot-root .wpsc-start-chat:active {
  border: 0 !important;
  background: var(--wpsc-primary) !important;
  color: #fff !important;
}

@media (max-width: 480px) {
  #wpsc-chatbot-root .wpsc-welcome h2,
  #wpsc-chatbot-root .wpsc-welcome-subtitle {
    font-size: 34px !important;
  }
}

/* ============================================================================
   NOCTURNE REDESIGN LAYER — clean & minimal (per design handoff)
   Fixed neutral system + a single client-controlled accent (--wpsc-primary).
   Scoped under #wpsc-chatbot-root so it wins over the earlier rules.
   ========================================================================== */
@font-face {
  font-family: 'WPSCInter';
  src: url('../../admin/fonts/inter-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

#wpsc-chatbot-root.wpsc-chatbot-root {
  /* Accent (from client Appearance settings) + derived shades */
  --wpsc-accent: var(--wpsc-primary);
  --wpsc-accent-ink: color-mix(in srgb, var(--wpsc-primary) 66%, #14122b);
  --wpsc-accent-tint: color-mix(in srgb, var(--wpsc-primary) 12%, #ffffff);
  /* Fixed neutral system — the "clean minimal" ground */
  --nk-bg: #fbfbfe;
  --nk-surface: #fdfdff;
  --nk-ink: #2a2c38;
  --nk-muted: color-mix(in srgb, #2a2c38 55%, transparent);
  --nk-divider: color-mix(in srgb, #2a2c38 12%, transparent);
  --nk-input: #f3f5fe;
  --nk-tile: #292b31;
  --nk-sm: 0 1px 2px rgba(30, 30, 50, .06);
  --nk-md: 0 10px 24px rgba(30, 30, 50, .12);
  --nk-lg: 0 24px 56px rgba(30, 30, 50, .20);
  font-family: 'WPSCInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--nk-ink);
}

#wpsc-chatbot-root button,
#wpsc-chatbot-root input,
#wpsc-chatbot-root textarea,
#wpsc-chatbot-root select {
  font-family: 'WPSCInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Panel */
#wpsc-chatbot-root .wpsc-panel {
  width: min(400px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 36px));
  background: var(--nk-bg);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--nk-lg);
}

/* Header — flat surface, options left, brand centred, status line below */
#wpsc-chatbot-root .wpsc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 0 !important;
  padding: 11px 14px 9px !important;
  background: var(--nk-surface) !important;
  border-bottom: 1px solid var(--nk-divider);
  color: var(--nk-ink);
  justify-content: flex-start !important;
}
#wpsc-chatbot-root .wpsc-logo { position: static !important; }
#wpsc-chatbot-root .wpsc-header-left {
  display: inline-flex !important;
  order: 1; margin: 0;
  position: static !important; top: auto !important; left: auto !important;
}
/* Neutralise the floating-pill / compact-centre brand so it no longer floats
   over the messages — it becomes a plain centred inline lockup. */
#wpsc-chatbot-root .wpsc-brand {
  order: 2; flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; min-width: 0;
  position: static !important;
  top: auto !important; left: auto !important;
  transform: none !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#wpsc-chatbot-root .wpsc-header-actions {
  order: 3; display: inline-flex; gap: 2px;
  position: static !important; top: auto !important; right: auto !important;
}
#wpsc-chatbot-root .wpsc-header-status {
  order: 4; flex: 0 0 100%;
  position: static !important;
  transform: none !important;
  left: auto !important;
  margin: 0; padding: 0;
  text-align: center; font-size: 11px; line-height: 1.4; color: var(--nk-muted);
}
#wpsc-chatbot-root .wpsc-top-menu-right,
#wpsc-chatbot-root .wpsc-header-back { display: none !important; }

/* Brand lockup: logo in a tidy rounded chip + name (heading weight 500) */
#wpsc-chatbot-root .wpsc-brand > div { display: flex; align-items: center; min-width: 0; }
#wpsc-chatbot-root .wpsc-brand strong { font-weight: 500; font-size: 14px; color: var(--nk-ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wpsc-chatbot-root .wpsc-brand > div > span { display: none; }
#wpsc-chatbot-root .wpsc-logo {
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 999px; object-fit: cover;
  background: var(--wpsc-accent-tint);
}

/* Header icon buttons — ghost, muted ink, subtle hover */
#wpsc-chatbot-root .wpsc-header button {
  width: 30px !important; height: 30px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--nk-muted) !important;
  box-shadow: none !important;
  transition: background-color .14s ease, color .14s ease;
}
#wpsc-chatbot-root .wpsc-header button:hover,
#wpsc-chatbot-root .wpsc-header button:focus {
  background: var(--nk-input) !important;
  color: var(--nk-ink) !important;
}
#wpsc-chatbot-root .wpsc-top-menu { font-size: 20px !important; letter-spacing: 1px; }
#wpsc-chatbot-root .wpsc-close { font-size: 22px !important; }
#wpsc-chatbot-root .wpsc-minimize { font-size: 22px !important; }

/* Chat + message list ground — flex column so bubbles alternate L/R */
#wpsc-chatbot-root .wpsc-chat-view { background: var(--nk-bg); }
#wpsc-chatbot-root .wpsc-messages {
  background: var(--nk-bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scrollbar-color: color-mix(in srgb, var(--nk-ink) 18%, transparent) transparent;
}

/* Bubbles */
#wpsc-chatbot-root .wpsc-msg { max-width: 85%; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
#wpsc-chatbot-root .wpsc-msg-bot,
#wpsc-chatbot-root .wpsc-msg-system,
#wpsc-chatbot-root .wpsc-typing,
#wpsc-chatbot-root .wpsc-live-typing,
#wpsc-chatbot-root .wpsc-inline-form { align-self: flex-start; }
#wpsc-chatbot-root .wpsc-msg-visitor,
#wpsc-chatbot-root .wpsc-msg-agent { align-self: flex-end; margin-left: 0 !important; margin-right: 0; }
#wpsc-chatbot-root .wpsc-msg-bot,
#wpsc-chatbot-root .wpsc-msg-system {
  background: var(--nk-surface);
  color: var(--nk-ink);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--nk-sm);
}
#wpsc-chatbot-root .wpsc-msg-visitor,
#wpsc-chatbot-root .wpsc-msg-agent {
  max-width: 80%;
  padding: 10px 16px;
  background: var(--wpsc-accent);
  color: #fff;
  border-radius: 14px;
  box-shadow: none;
  font-weight: 500;
}
#wpsc-chatbot-root .wpsc-agent-label { font-weight: 600; opacity: .85; }
#wpsc-chatbot-root .wpsc-typing i { background: color-mix(in srgb, var(--nk-ink) 35%, transparent); }

/* Quick-reply chips — outlined accent pills */
#wpsc-chatbot-root .wpsc-quick { padding: 0 16px 12px; gap: 8px; }
#wpsc-chatbot-root .wpsc-quick button {
  border: 1px solid var(--wpsc-accent) !important;
  background: var(--nk-surface) !important;
  color: var(--wpsc-accent-ink) !important;
  border-radius: 999px !important;
  padding: 7px 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
#wpsc-chatbot-root .wpsc-quick-bubbles button:hover,
#wpsc-chatbot-root .wpsc-quick-bubbles button:focus-visible {
  background: var(--wpsc-accent) !important;
  color: #fff !important;
}

/* Composer — pill input, round attach + accent send; no emoji button */
#wpsc-chatbot-root .wpsc-composer {
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  padding: 11px 14px;
  background: var(--nk-surface);
  border-top: 1px solid var(--nk-divider);
}
#wpsc-chatbot-root .wpsc-emoji-toggle { display: none !important; }
#wpsc-chatbot-root .wpsc-composer input[name="message"] {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--nk-input);
  color: var(--nk-ink);
  font-size: 13px;
  padding: 10px 16px;
}
#wpsc-chatbot-root .wpsc-composer input[name="message"]:focus {
  border-color: color-mix(in srgb, var(--wpsc-accent) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpsc-accent) 16%, transparent);
}
#wpsc-chatbot-root .wpsc-attachment-toggle {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--nk-surface);
  border: 1px solid var(--nk-divider);
  color: var(--nk-muted);
  box-shadow: none;
}
#wpsc-chatbot-root .wpsc-attachment-toggle:hover { color: var(--nk-ink); background: var(--nk-input); }
#wpsc-chatbot-root .wpsc-send {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--wpsc-accent);
  color: #fff;
  box-shadow: none;
}

/* Options menu items — accent ink */
#wpsc-chatbot-root .wpsc-tools { border-radius: 8px; box-shadow: var(--nk-md); border-color: var(--nk-divider); }
#wpsc-chatbot-root .wpsc-tools button { color: var(--wpsc-accent-ink); font-size: 13px; }
#wpsc-chatbot-root .wpsc-tools button svg { fill: var(--wpsc-accent); opacity: .9; }
#wpsc-chatbot-root .wpsc-tools button:hover,
#wpsc-chatbot-root .wpsc-tools button:focus-visible { background: var(--wpsc-accent-tint); color: var(--wpsc-accent-ink); }

/* Lead / details form + inline report card */
#wpsc-chatbot-root .wpsc-lead input,
#wpsc-chatbot-root .wpsc-lead select,
#wpsc-chatbot-root .wpsc-lead textarea,
#wpsc-chatbot-root .wpsc-inline-form textarea {
  background: var(--nk-surface);
  border: 1px solid var(--nk-divider);
  border-radius: 8px;
  color: var(--nk-ink);
}
#wpsc-chatbot-root .wpsc-lead input:focus,
#wpsc-chatbot-root .wpsc-lead textarea:focus,
#wpsc-chatbot-root .wpsc-inline-form textarea:focus {
  border-color: color-mix(in srgb, var(--wpsc-accent) 50%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpsc-accent) 16%, transparent);
}
#wpsc-chatbot-root .wpsc-lead button[type="submit"],
#wpsc-chatbot-root .wpsc-inline-form-submit {
  background: var(--wpsc-accent);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 500;
}

/* Launcher bubble */
#wpsc-chatbot-root .wpsc-bubble {
  background: var(--wpsc-accent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--wpsc-accent) 32%, transparent), var(--nk-sm);
}

/* Welcome screen — same clean ground */
#wpsc-chatbot-root .wpsc-welcome { background: var(--nk-bg); }
#wpsc-chatbot-root .wpsc-welcome-card { background: var(--nk-surface); border: 1px solid var(--nk-divider); box-shadow: var(--nk-sm); }
#wpsc-chatbot-root .wpsc-start-chat { background: var(--wpsc-accent); border-radius: 999px; box-shadow: none; font-weight: 500; }
#wpsc-chatbot-root .wpsc-welcome-icon { background: var(--wpsc-accent); }

/* Chat history view */
#wpsc-chatbot-root .wpsc-history-view { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--nk-bg); }

/* "Show content" full page inside the widget. */
#wpsc-chatbot-root .wpsc-content-view { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--nk-bg, #fff); }
#wpsc-chatbot-root .wpsc-content-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--nk-border, #e6e6ef); }
#wpsc-chatbot-root .wpsc-content-head strong { font-size: 15px; font-weight: 600; color: var(--nk-ink); }
#wpsc-chatbot-root .wpsc-content-back { border: 1px solid var(--nk-border, #e6e6ef); background: transparent; color: var(--nk-ink); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
#wpsc-chatbot-root .wpsc-content-back:hover { background: var(--nk-inset, #f2f2f7); }
#wpsc-chatbot-root .wpsc-content-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--nk-bg, #fff); display: block; }
#wpsc-chatbot-root .wpsc-history-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
#wpsc-chatbot-root .wpsc-history-head strong { font-size: 15px; font-weight: 600; color: var(--nk-ink); }
#wpsc-chatbot-root .wpsc-history-back { border: 1px solid var(--nk-border, #e6e6ef); background: transparent; color: var(--nk-ink); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
#wpsc-chatbot-root .wpsc-history-back:hover { background: var(--nk-inset, #f2f2f7); }
#wpsc-chatbot-root .wpsc-history-new { margin-left: auto; border: 1px solid var(--wpsc-accent); background: var(--wpsc-accent); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
#wpsc-chatbot-root .wpsc-history-new:hover { filter: brightness(1.06); }
#wpsc-chatbot-root .wpsc-history-list { flex: 1; overflow-y: auto; padding: 0 12px 14px; display: flex; flex-direction: column; gap: 8px; }
#wpsc-chatbot-root .wpsc-history-item {
  display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--nk-line); border-radius: 12px;
  background: var(--nk-surface); color: var(--nk-ink); box-shadow: var(--nk-sm);
  transition: border-color .14s ease, box-shadow .14s ease;
}
#wpsc-chatbot-root .wpsc-history-item:hover { border-color: color-mix(in srgb, var(--wpsc-accent) 40%, var(--nk-line-strong)); box-shadow: var(--nk-md); }
#wpsc-chatbot-root .wpsc-history-item.is-current { border-color: var(--wpsc-accent); background: color-mix(in srgb, var(--wpsc-accent) 6%, #fff); }
#wpsc-chatbot-root .wpsc-history-snippet { font-size: 13px; line-height: 1.4; color: var(--nk-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#wpsc-chatbot-root .wpsc-history-meta { display: flex; align-items: center; gap: 8px; }
#wpsc-chatbot-root .wpsc-history-status { font-size: 11px; font-weight: 600; color: var(--wpsc-accent-ink); background: color-mix(in srgb, var(--wpsc-accent) 12%, #fff); padding: 2px 8px; border-radius: 999px; }
#wpsc-chatbot-root .wpsc-history-time { font-size: 11px; color: var(--nk-muted); }
#wpsc-chatbot-root .wpsc-history-empty { padding: 24px 16px; text-align: center; color: var(--nk-muted); font-size: 13px; }

/* Close dialog: End chat + Just minimise */
#wpsc-chatbot-root .wpsc-close-confirm-sub { margin: 4px 0 14px; font-size: 12.5px; color: var(--nk-muted); text-align: center; }
#wpsc-chatbot-root .wpsc-close-confirm-button { background: var(--wpsc-accent); border-radius: 10px; box-shadow: none; font-weight: 600; }
#wpsc-chatbot-root .wpsc-close-minimise {
  display: block; width: 100%; margin-top: 8px; padding: 10px 14px;
  border: 1px solid var(--nk-line-strong); border-radius: 10px;
  background: var(--nk-surface); color: var(--nk-ink); font: inherit; font-weight: 500; font-size: 13px; cursor: pointer;
}
#wpsc-chatbot-root .wpsc-close-minimise:hover { background: var(--nk-input); }
#wpsc-chatbot-root .wpsc-welcome h2 { font-family: 'WPSCInter', sans-serif; font-weight: 600 !important; font-size: 26px !important; letter-spacing: -.02em; color: var(--nk-ink); }
#wpsc-chatbot-root .wpsc-welcome-subtitle { font-weight: 500; color: var(--nk-muted); }
#wpsc-chatbot-root .wpsc-welcome-card strong { font-weight: 600; color: var(--nk-ink); }

/* Feedback survey — calm ink text (no harsh red) + tighter spacing */
#wpsc-chatbot-root .wpsc-feedback-view { background: var(--nk-bg); }
#wpsc-chatbot-root .wpsc-feedback-body { padding: 12px 14px 16px !important; }
#wpsc-chatbot-root .wpsc-feedback-card {
  width: 100% !important;
  padding: 16px !important;
  border-radius: 14px !important;
  background: var(--nk-surface);
  border: 1px solid var(--nk-divider);
  box-shadow: var(--nk-sm);
}
#wpsc-chatbot-root .wpsc-feedback-card fieldset { margin: 0 0 14px !important; }
#wpsc-chatbot-root .wpsc-feedback-card legend,
#wpsc-chatbot-root .wpsc-feedback-card legend span,
#wpsc-chatbot-root .wpsc-feedback-comment > span { color: var(--nk-ink) !important; font-weight: 500; font-size: 13px; }
#wpsc-chatbot-root .wpsc-feedback-card legend span[aria-hidden="true"] { color: var(--wpsc-accent) !important; }
#wpsc-chatbot-root .wpsc-feedback-submit { background: var(--wpsc-accent) !important; border-radius: 8px !important; box-shadow: none !important; font-weight: 500; }
#wpsc-chatbot-root .wpsc-feedback-skip { color: var(--nk-muted) !important; }
#wpsc-chatbot-root .wpsc-closed-note { color: var(--nk-muted); margin: 4px 0 12px !important; }

/* ---------- Premium welcome screen (brand-derived hero) ------------------- */
#wpsc-chatbot-root .wpsc-welcome { display: flex; flex-direction: column; padding: 0 !important; text-align: left; background: var(--nk-bg); overflow-y: auto; }
#wpsc-chatbot-root .wpsc-welcome-hero { position: relative; padding: 24px 22px 46px; background: linear-gradient(155deg, var(--wpsc-hero-from, #2a2170), var(--wpsc-hero-to, #171245)); color: #fff; overflow: hidden; }
#wpsc-chatbot-root .wpsc-welcome-hero::after { content: ""; position: absolute; top: -46px; right: -34px; width: 210px; height: 210px; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 62%); pointer-events: none; }
#wpsc-chatbot-root .wpsc-welcome.wpsc-hero-light .wpsc-welcome-hero { color: #16142e; }
#wpsc-chatbot-root .wpsc-welcome-brandrow { position: relative; display: flex; align-items: center; margin: 0 0 15px; }
#wpsc-chatbot-root .wpsc-welcome-badge { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; overflow: hidden; flex: none; }
#wpsc-chatbot-root .wpsc-welcome.wpsc-hero-light .wpsc-welcome-badge { background: rgba(0,0,0,.10); color: #16142e; }
#wpsc-chatbot-root .wpsc-welcome-badge img { width: 100%; height: 100%; object-fit: cover; }
#wpsc-chatbot-root .wpsc-welcome-online { margin-left: 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .85; }
#wpsc-chatbot-root .wpsc-welcome-online i { width: 7px; height: 7px; border-radius: 50%; background: #38e08f; box-shadow: 0 0 0 3px rgba(56,224,143,.22); }
#wpsc-chatbot-root .wpsc-welcome-title { position: relative; font-family: 'WPSCInter', sans-serif; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 700; color: inherit; text-wrap: balance; }
#wpsc-chatbot-root .wpsc-welcome-sub { position: relative; font-size: 14px; line-height: 1.5; margin: 0; opacity: .82; color: inherit; }
#wpsc-chatbot-root .wpsc-welcome-panel { position: relative; z-index: 1; padding: 0 16px 18px; background: var(--nk-bg); }
#wpsc-chatbot-root .wpsc-welcome-msgcard { position: relative; z-index: 2; width: 100%; margin-top: -30px; display: flex; align-items: center; gap: 8px; background: var(--nk-surface); border: 1px solid var(--nk-divider); border-radius: 16px; box-shadow: 0 14px 34px -18px rgba(19,16,57,.30); padding: 6px; cursor: pointer; }
#wpsc-chatbot-root .wpsc-welcome-msgcard > span { flex: 1; padding: 11px 14px; color: var(--nk-muted); font-size: 14px; text-align: left; }
#wpsc-chatbot-root .wpsc-welcome-send { width: 38px; height: 38px; border-radius: 12px; background: var(--wpsc-accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
#wpsc-chatbot-root .wpsc-welcome-send svg { width: 16px; height: 16px; }
#wpsc-chatbot-root .wpsc-welcome-starters-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--nk-muted); font-weight: 700; margin: 16px 4px 8px; }
#wpsc-chatbot-root .wpsc-welcome-starters { display: flex; flex-direction: column; gap: 4px; }

/* Category label sits above each group card. */
#wpsc-chatbot-root .wpsc-qa-cat { display: flex; align-items: center; gap: 7px; margin: 15px 4px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--nk-muted); }
#wpsc-chatbot-root .wpsc-qa-cat:first-child { margin-top: 4px; }
#wpsc-chatbot-root .wpsc-qa-cat-icon { font-size: 14px; }

/* Compact grouped card of rows: icon, label, chevron, hairline dividers. */
#wpsc-chatbot-root .wpsc-qa-group { background: var(--nk-surface); border: 1px solid var(--nk-divider); border-radius: 14px; overflow: hidden; }
#wpsc-chatbot-root .wpsc-welcome-starter { display: flex; align-items: center; gap: 11px; width: 100%; background: transparent; border: 0; padding: 13px 14px; cursor: pointer; text-align: left; transition: background .14s ease; }
#wpsc-chatbot-root .wpsc-qa-group .wpsc-welcome-starter + .wpsc-welcome-starter { border-top: 1px solid var(--nk-divider); }
#wpsc-chatbot-root .wpsc-welcome-starter:hover { background: var(--nk-inset, rgba(93,43,255,.05)); }
#wpsc-chatbot-root .wpsc-welcome-starter-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wpsc-accent); flex: none; margin: 0 6px; }
#wpsc-chatbot-root .wpsc-welcome-starter-dot.wpsc-qa-icon { width: 20px; height: auto; background: transparent; margin: 0; font-size: 16px; line-height: 1; text-align: center; }
#wpsc-chatbot-root .wpsc-welcome-starter-label { flex: 1; font-size: 13.5px; color: var(--nk-ink); font-weight: 500; line-height: 1.3; }
#wpsc-chatbot-root .wpsc-welcome-starter-arrow { color: var(--nk-muted); font-size: 17px; line-height: 1; flex: none; }

/* Submenu back row: plain link, not a card. */
#wpsc-chatbot-root .wpsc-welcome-starter.wpsc-qa-back { padding: 4px 4px 8px; }
#wpsc-chatbot-root .wpsc-welcome-starter.wpsc-qa-back:hover { background: transparent; }
#wpsc-chatbot-root .wpsc-qa-back .wpsc-welcome-starter-label { flex: 0 1 auto; color: var(--nk-muted); font-weight: 600; }
#wpsc-chatbot-root .wpsc-welcome .wpsc-start-chat { width: 100%; margin-top: 16px; border: 0; border-radius: 13px; padding: 14px; background: var(--wpsc-accent); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 12px 26px -10px rgba(93,43,255,.5); cursor: pointer; }
#wpsc-chatbot-root .wpsc-welcome .wpsc-start-chat:hover { filter: brightness(1.05); }

/* Home screen: keep the hero, message card and "Let's chat" button fixed, and
   scroll only the quick-action list between them, so a long list of quick
   actions no longer pushes the message card / hero off the top. */
#wpsc-chatbot-root .wpsc-welcome { overflow: hidden; }
#wpsc-chatbot-root .wpsc-welcome-hero { flex: 0 0 auto; }
#wpsc-chatbot-root .wpsc-welcome-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#wpsc-chatbot-root .wpsc-welcome-msgcard { flex: 0 0 auto; }
#wpsc-chatbot-root .wpsc-welcome-starters-label { flex: 0 0 auto; }
#wpsc-chatbot-root .wpsc-welcome-starters { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#wpsc-chatbot-root .wpsc-welcome .wpsc-start-chat { flex: 0 0 auto; }

/* A touch more panel height, and a more compact hero + rows, so the usual set
   of quick actions fits without the scroll strip clipping items mid-row. */
#wpsc-chatbot-root .wpsc-panel { height: min(680px, calc(100vh - 24px)); }
#wpsc-chatbot-root .wpsc-welcome-hero { padding: 18px 22px 32px; }
#wpsc-chatbot-root .wpsc-welcome-brandrow { margin: 0 0 12px; }
#wpsc-chatbot-root .wpsc-welcome-title { font-size: 21px; margin: 0 0 5px; }
#wpsc-chatbot-root .wpsc-welcome-sub { font-size: 13px; line-height: 1.45; }
#wpsc-chatbot-root .wpsc-welcome-msgcard { margin-top: -26px; }
#wpsc-chatbot-root .wpsc-qa-cat { margin: 12px 4px 6px; }
#wpsc-chatbot-root .wpsc-welcome-starter { padding: 11px 14px; }
#wpsc-chatbot-root .wpsc-welcome-starters { padding-bottom: 2px; }
#wpsc-chatbot-root .wpsc-welcome .wpsc-start-chat { margin-top: 12px; padding: 13px; }

/* The starters strip is a flex column, so its group cards default to
   flex-shrink:1 and get compressed (clipping the first item) when the list is
   taller than the strip. Pin them to their natural height so the strip
   overflows and scrolls instead. */
#wpsc-chatbot-root .wpsc-welcome-starters > * { flex: 0 0 auto; }

/* SVG icons for quick actions (replace the dot when an icon is chosen). */
#wpsc-chatbot-root .wpsc-welcome-starter-dot.wpsc-qa-svg { width: 20px; height: 20px; margin: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--wpsc-accent, #5d2bff); }
#wpsc-chatbot-root .wpsc-welcome-starter-dot.wpsc-qa-svg svg { width: 18px; height: 18px; display: block; }
#wpsc-chatbot-root .wpsc-qa-cat-icon.wpsc-qa-svg { color: var(--nk-muted); display: inline-flex; align-items: center; }
#wpsc-chatbot-root .wpsc-qa-cat-icon.wpsc-qa-svg svg { width: 14px; height: 14px; display: block; }
