.cpwa-guide-root {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  --cpwa-guide-accent: #d9485f;
  --cpwa-guide-accent-strong: #b7364b;
  --cpwa-guide-ink: #f9f3eb;
  --cpwa-guide-paper: rgba(18, 24, 33, 0.72);
  --cpwa-guide-shadow: 0 14px 30px rgba(7, 10, 15, 0.22);
}

.cpwa-guide-overlay,
.cpwa-guide-fab,
.cpwa-guide-pill,
.cpwa-guide-bubble,
.cpwa-guide-contact-link {
  pointer-events: auto;
}

.cpwa-guide-mounted .cpwa-guide-target-active {
  position: relative;
  z-index: 1401;
}

.cpwa-guide-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 20, 28, 0.34);
}

.cpwa-guide-fab {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #f2b05e 0%, #d9485f 55%, #b7364b 100%);
  color: #fff8ef;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 32px rgba(185, 54, 75, 0.28);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.cpwa-guide-fab.is-dragging {
  cursor: grabbing;
}

.cpwa-guide-pill {
  position: absolute;
  max-width: 220px;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 18px;
  background: rgba(31, 37, 48, 0.94);
  color: #fffaf2;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 18, 24, 0.18);
}

.cpwa-guide-bubble {
  position: absolute;
  width: min(248px, calc(100vw - 32px));
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: var(--cpwa-guide-paper);
  box-shadow: var(--cpwa-guide-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cpwa-guide-bubble__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cpwa-guide-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cpwa-guide-avatar-slot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.cpwa-guide-avatar-slot__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.cpwa-guide-avatar-slot[data-guide-avatar-state="human"] {
  border-style: solid;
  border-color: rgba(242, 176, 94, 0.72);
}

.cpwa-guide-avatar-slot[data-guide-avatar-state="calm"] .cpwa-guide-avatar-slot__dot {
  background: rgba(79, 120, 187, 0.58);
}

.cpwa-guide-bubble__heading {
  min-width: 0;
}

.cpwa-guide-bubble__title {
  margin: 0;
  color: var(--cpwa-guide-ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.cpwa-guide-bubble__subtitle {
  margin: 3px 0 0;
  color: rgba(249, 243, 235, 0.72);
  font-size: 0.74rem;
  line-height: 1.25;
}

.cpwa-guide-bubble__close {
  min-height: 28px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(249, 243, 235, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
}

.cpwa-guide-wheel {
  display: grid;
  gap: 8px;
}

.cpwa-guide-wheel__hint {
  margin: 0;
  color: rgba(249, 243, 235, 0.62);
  font-size: 0.7rem;
}

.cpwa-guide-wheel__track {
  display: grid;
  gap: 4px;
  padding: 4px 0;
}

.cpwa-guide-wheel__option {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: rgba(249, 243, 235, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
}

.cpwa-guide-wheel__option--current,
.cpwa-guide-wheel__option.is-active {
  border-color: rgba(242, 176, 94, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cpwa-guide-wheel__option--prev,
.cpwa-guide-wheel__option--next {
  opacity: 0.62;
}

.cpwa-guide-hint {
  display: grid;
  gap: 3px;
}

.cpwa-guide-hint__eyebrow {
  margin: 0;
  color: rgba(242, 176, 94, 0.92);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cpwa-guide-hint__title {
  margin: 0;
  color: var(--cpwa-guide-ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.cpwa-guide-hint__text {
  margin: 0;
  color: rgba(249, 243, 235, 0.88);
  font-size: 0.8rem;
  line-height: 1.28;
}

.cpwa-guide-helper {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.cpwa-guide-helper__link {
  min-height: 28px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: rgba(242, 176, 94, 0.92);
  font-size: 0.73rem;
  font-weight: 700;
}

.cpwa-guide-other,
.cpwa-guide-reply,
.cpwa-guide-human {
  display: grid;
  gap: 8px;
}

.cpwa-guide-other__label,
.cpwa-guide-reply__eyebrow,
.cpwa-guide-human__label {
  margin: 0;
  color: rgba(249, 243, 235, 0.76);
  font-size: 0.74rem;
  line-height: 1.28;
}

.cpwa-guide-reply__eyebrow {
  color: rgba(242, 176, 94, 0.92);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cpwa-guide-reply__text {
  margin: 0;
  padding: 8px 10px;
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(249, 243, 235, 0.9);
  font-size: 0.78rem;
  line-height: 1.28;
}

.cpwa-guide-reply__options {
  display: grid;
  gap: 8px;
}

.cpwa-guide-reply__option {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(249, 243, 235, 0.88);
  font-size: 0.77rem;
  font-weight: 700;
  text-align: left;
}

.cpwa-guide-other__input,
.cpwa-guide-human__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cpwa-guide-ink);
  font: inherit;
}

.cpwa-guide-human__input {
  min-height: 84px;
  resize: vertical;
}

.cpwa-guide-other__input {
  min-height: 38px;
}

.cpwa-guide-other__actions,
.cpwa-guide-human__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cpwa-guide-other__submit,
.cpwa-guide-human__submit,
.cpwa-guide-other__cancel,
.cpwa-guide-human__cancel {
  min-height: 36px;
  border: 0;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

.cpwa-guide-other__submit,
.cpwa-guide-human__submit {
  background: linear-gradient(135deg, #f2b05e 0%, #d9485f 100%);
  color: #fff9f2;
}

.cpwa-guide-other__cancel,
.cpwa-guide-human__cancel {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(249, 243, 235, 0.82);
}

.cpwa-guide-other__status,
.cpwa-guide-human__status {
  margin: 0;
  color: rgba(249, 243, 235, 0.68);
  font-size: 0.76rem;
  line-height: 1.35;
}

.cpwa-guide-human__links {
  display: grid;
  gap: 8px;
}

.cpwa-guide-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cpwa-guide-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.cpwa-guide-contact-link--primary {
  background: linear-gradient(135deg, #f2b05e 0%, #d9485f 100%);
  color: #fff9f2;
}

.cpwa-guide-spotlight,
.cpwa-guide-pulse,
.cpwa-guide-arrow {
  position: absolute;
  pointer-events: none;
}

.cpwa-guide-spotlight {
  border: 2px solid rgba(217, 72, 95, 0.84);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(217, 72, 95, 0.16);
}

.cpwa-guide-pulse {
  border: 2px solid rgba(242, 176, 94, 0.92);
  border-radius: 999px;
  animation: cpwa-guide-pulse 1.4s ease-out infinite;
}

.cpwa-guide-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(31, 37, 48, 0.9);
  color: #fff8ef;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 18, 24, 0.2);
}

.is-hidden {
  display: none !important;
}

@keyframes cpwa-guide-pulse {
  0% {
    opacity: 0.95;
    transform: scale(0.88);
  }
  70% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@media (min-width: 821px) {
  .cpwa-guide-root {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .cpwa-guide-bubble {
    width: min(236px, calc(100vw - 24px));
    padding: 10px;
  }
}
