#wt24-peppe-root {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 2147483000 !important;
  margin: 0 !important;
  pointer-events: none;
}

.wt24-peppe-shell {
  position: static;
  pointer-events: none;
}

.wt24-peppe-bubble {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 18px 0 0 18px;
  padding: 14px 18px 14px 16px;
  background: linear-gradient(135deg, #251f5f 0%, #4338a0 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(37, 31, 95, 0.35);
  font-weight: 700;
  cursor: pointer;
  z-index: 2147483001 !important;
  pointer-events: auto;
}

.wt24-peppe-bubble-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #6fffb8;
  box-shadow: 0 0 0 0 rgba(111, 255, 184, 0.5);
  animation: wt24PeppePulse 1.8s infinite;
}

.wt24-peppe-panel {
  position: fixed !important;
  right: 76px !important;
  top: 50% !important;
  left: auto !important;
  bottom: auto !important;
  width: min(460px, calc(100vw - 32px));
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 10, 20, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(5, 10, 30, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-12px, -50%) scale(0.98);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 2147483000 !important;
  pointer-events: none;
}

.wt24-peppe-shell.is-open .wt24-peppe-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}

.wt24-peppe-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, rgba(67, 56, 160, 0.96) 0%, rgba(32, 25, 82, 0.96) 100%);
}

.wt24-peppe-header strong {
  display: block;
  font-size: 17px;
}

.wt24-peppe-header p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.wt24-peppe-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.wt24-peppe-avatar {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wt24-peppe-avatar-stage {
  position: relative;
  width: 190px;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, rgba(95, 72, 255, 0.34), rgba(13, 15, 29, 0.98) 66%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wt24-peppe-avatar-orb {
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 50% 50%, rgba(111, 90, 255, 0.96), rgba(67, 56, 160, 0.95) 60%, rgba(18, 24, 54, 0.98) 100%);
  box-shadow: 0 0 0 0 rgba(111, 90, 255, 0.35), 0 12px 36px rgba(67, 56, 160, 0.35);
  animation: wt24PeppeGlow 2.8s infinite ease-in-out;
}

.wt24-peppe-avatar-canvas,
.wt24-peppe-avatar-video-wrap,
.wt24-peppe-avatar-video {
  width: 100%;
  height: 100%;
}

.wt24-peppe-avatar-canvas,
.wt24-peppe-avatar-video-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

.wt24-peppe-avatar-stage.is-live .wt24-peppe-avatar-canvas,
.wt24-peppe-avatar-stage.is-live .wt24-peppe-avatar-video-wrap {
  opacity: 1;
}

.wt24-peppe-avatar-stage.is-live .wt24-peppe-avatar-orb,
.wt24-peppe-avatar-stage.is-live .wt24-peppe-avatar-placeholder {
  opacity: 0;
}

.wt24-peppe-avatar-video {
  object-fit: cover;
  background: #080a14;
}

.wt24-peppe-avatar-placeholder {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8, 10, 20, 0.72);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  transition: opacity .25s ease;
}

.wt24-peppe-avatar-copy strong {
  display: block;
  margin-bottom: 4px;
}

.wt24-peppe-avatar-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.wt24-peppe-avatar-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.wt24-peppe-avatar-start,
.wt24-peppe-avatar-stop {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.wt24-peppe-avatar-start {
  background: linear-gradient(135deg, #4338a0 0%, #251f5f 100%);
  color: #fff;
}

.wt24-peppe-avatar-stop {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wt24-peppe-avatar-start[disabled],
.wt24-peppe-avatar-stop[disabled] {
  opacity: 0.55;
  cursor: default;
}

.wt24-peppe-avatar-status {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.4;
}

.wt24-peppe-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 4px;
}

.wt24-peppe-starter {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.wt24-peppe-messages {
  max-height: 340px;
  overflow: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wt24-peppe-message {
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 13px;
}

.wt24-peppe-message a {
  color: #8ecbff;
  text-decoration: underline;
  word-break: break-word;
}

.wt24-peppe-message-assistant {
  background: rgba(255, 255, 255, 0.08);
  border-top-left-radius: 6px;
}

.wt24-peppe-message-user {
  background: linear-gradient(135deg, #4338a0 0%, #251f5f 100%);
  border-top-right-radius: 6px;
}

.wt24-peppe-composer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wt24-peppe-composer textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.wt24-peppe-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.wt24-peppe-send,
.wt24-peppe-voice {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.wt24-peppe-send {
  background: #fff;
  color: #1f2452;
  cursor: pointer;
}

.wt24-peppe-voice {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wt24-peppe-voice[disabled] {
  opacity: 0.6;
}

@keyframes wt24PeppePulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 255, 184, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(111, 255, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 255, 184, 0); }
}

@keyframes wt24PeppeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 90, 255, 0.24), 0 12px 36px rgba(67, 56, 160, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(111, 90, 255, 0.06), 0 18px 48px rgba(67, 56, 160, 0.5); }
}

@media (max-width: 767px) {
  #wt24-peppe-root {
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    transform: none !important;
  }

  .wt24-peppe-bubble {
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    transform: none !important;
    border-radius: 999px;
    padding: 12px 18px;
  }

  .wt24-peppe-panel {
    position: fixed !important;
    width: min(390px, calc(100vw - 24px));
    right: 12px !important;
    top: auto !important;
    bottom: 70px !important;
    transform: translateY(14px) scale(0.98);
  }

  .wt24-peppe-shell.is-open .wt24-peppe-panel {
    transform: translateY(0) scale(1);
  }

  .wt24-peppe-avatar {
    grid-template-columns: 1fr;
  }

  .wt24-peppe-avatar-stage {
    width: 100%;
    height: 260px;
  }
}
