.wpsc-chatbot-root {
  --wpsc-primary: #1769aa;
  --wpsc-secondary: #16a085;
  --wpsc-text: #16202a;
  --wpsc-bg: #fff;
  --wpsc-launcher: var(--wpsc-primary);
  --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(380px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
  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: 14px;
  overflow: auto;
  background: #f5f7f8;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, .22) 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: 84%;
  margin: 0 0 10px;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  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: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-top-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.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-top-right-radius: 5px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
  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);
}

.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,
.wpsc-tools button {
  border: 1px solid var(--wpsc-primary);
  background: #fff;
  color: var(--wpsc-primary);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.wpsc-quick-bubbles button:hover,
.wpsc-quick-bubbles button:focus-visible,
.wpsc-tools button:hover,
.wpsc-tools button:focus-visible {
  background: var(--wpsc-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .14);
}

.wpsc-quick-bubbles button:focus-visible,
.wpsc-tools 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;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.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 14px;
  font-size: 13px;
}

.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: 6;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

@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;
}

#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;
  }
}
