/*
 * WebsDocs Voice Agent Widget
 * File: /voice-agent/widget/websdocs-voice-agent.css
 *
 * Premium WebsDocs panel refresh
 * - Keeps existing working classes and JS hooks
 * - Adds WebsDocs logo support in panel header
 * - Uses WebsDocs home theme colors: navy, cyan, lime, glass
 * - More compact panel so it does not fight the site header
 */

.wdva-root {
  --wdva-navy-1: #0b1322;
  --wdva-navy-2: #111c31;
  --wdva-navy-3: #16253d;
  --wdva-ink: #0f172a;
  --wdva-text: #152033;
  --wdva-muted: #64748b;
  --wdva-soft: #94a3b8;
  --wdva-line: rgba(15, 23, 42, 0.10);
  --wdva-line-soft: rgba(15, 23, 42, 0.07);
  --wdva-white: #ffffff;
  --wdva-cyan: #38bdf8;
  --wdva-cyan-2: #7ee7ff;
  --wdva-lime: #b7df52;
  --wdva-lime-2: #c5e864;
  --wdva-danger: #b42318;
  --wdva-success: #067647;
  --wdva-warning: #b54708;

  position: fixed;
  z-index: 2147483000;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wdva-text);
}

.wdva-root[data-position="bottom-right"] {
  right: 22px;
  bottom: 22px;
}

.wdva-root[data-position="bottom-left"] {
  left: 22px;
  bottom: 22px;
}

.wdva-root[data-position="top-right"] {
  right: 22px;
  top: 96px;
}

.wdva-root[data-position="top-left"] {
  left: 22px;
  top: 96px;
}

/* =========================================================
   LAUNCHER — TRANSPARENT WEBP ONLY
   ========================================================= */

.wdva-launcher {
  width: 86px;
  height: 86px;
  position: fixed;
  right: 18px;
  bottom: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  cursor: pointer;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.wdva-launcher:hover {
  transform: translateY(-3px) scale(1.025);
}

.wdva-launcher:active {
  transform: translateY(0) scale(0.97);
}

.wdva-launcher:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.55);
  outline-offset: 5px;
  border-radius: 18px;
}

.wdva-launcher-img {
  display: block;
  width: 66%;
  height: 66%;
  object-fit: contain;
  background: transparent !important;
  border: 0;
  box-shadow: none !important;
  pointer-events: none;
  user-select: none;
  transform: translateY(-4px);
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.22));
}

.wdva-root.is-call-active .wdva-launcher-img {
  filter:
    drop-shadow(0 18px 28px rgba(15, 23, 42, 0.24))
    drop-shadow(0 0 20px rgba(56, 189, 248, 0.30));
}

.wdva-launcher-fallback {
  width: 86px;
  height: 86px;
  display: block;
  fill: rgba(15, 23, 42, 0.95);
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: transparent;
}

/* =========================================================
   PREMIUM PANEL
   ========================================================= */

.wdva-panel {
  position: absolute;
  width: min(376px, calc(100vw - 28px));
  max-height: calc(100vh - 118px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 28px 84px rgba(15, 23, 42, 0.22),
    0 12px 28px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.wdva-root.is-call-active .wdva-panel {
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.24),
    0 0 42px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.wdva-root[data-position="bottom-right"] .wdva-panel,
.wdva-root[data-position="bottom-left"] .wdva-panel {
  bottom: 38px;
}

.wdva-root[data-position="top-right"] .wdva-panel,
.wdva-root[data-position="top-left"] .wdva-panel {
  top: 0;
}

.wdva-root[data-position="bottom-right"] .wdva-panel,
.wdva-root[data-position="top-right"] .wdva-panel {
  right: 0;
}

.wdva-root[data-position="bottom-left"] .wdva-panel,
.wdva-root[data-position="top-left"] .wdva-panel {
  left: 0;
}

/* =========================================================
   PANEL HEADER
   ========================================================= */

.wdva-panel-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  min-height: 78px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 0%, rgba(126, 231, 255, 0.28), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(183, 223, 82, 0.16), transparent 34%),
    linear-gradient(135deg, #0b1322 0%, #111c31 48%, #16253d 100%);
}

.wdva-panel-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(183, 223, 82, 0) 0%,
      rgba(183, 223, 82, 0.35) 50%,
      rgba(183, 223, 82, 0) 100%
    );
  pointer-events: none;
}

.wdva-panel-head::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -48px;
  height: 96px;
  background:
    linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.16), rgba(183, 223, 82, 0.10), transparent);
  filter: blur(18px);
  pointer-events: none;
}

.wdva-agent {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wdva-agent-mark {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #0b1322;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 245, 250, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow:
    0 13px 26px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.wdva-agent-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wdva-agent-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #0b1322;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.wdva-root.is-call-active .wdva-agent-mark {
  animation: wdvaAgentPulse 1.6s ease-in-out infinite;
}

.wdva-agent-copy {
  min-width: 0;
}

.wdva-agent strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wdva-agent span {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.80);
}

.wdva-close {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.16s ease, transform 0.16s ease;
}

.wdva-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.03);
}

/* =========================================================
   BODY + STATUS
   ========================================================= */

.wdva-body {
  max-height: calc(100vh - 196px);
  overflow-y: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(248, 250, 252, 0.98));
}

.wdva-body::-webkit-scrollbar {
  width: 8px;
}

.wdva-body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
}

.wdva-status-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wdva-status-card::after {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 48px;
  margin-top: 12px;
  border-radius: 18px;
  background:
    linear-gradient(
      90deg,
      rgba(56, 189, 248, 0.00) 0%,
      rgba(56, 189, 248, 0.16) 22%,
      rgba(183, 223, 82, 0.16) 50%,
      rgba(56, 189, 248, 0.13) 78%,
      rgba(56, 189, 248, 0.00) 100%
    );
  border: 1px solid rgba(15, 23, 42, 0.06);
  opacity: 0.70;
}

.wdva-status-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 30px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 3%, rgba(56, 189, 248, .78) 3% 5%, transparent 5% 8%),
    linear-gradient(90deg, transparent 0 10%, rgba(183, 223, 82, .82) 10% 12%, transparent 12% 15%),
    linear-gradient(90deg, transparent 0 17%, rgba(14, 165, 233, .68) 17% 19%, transparent 19% 22%),
    linear-gradient(90deg, transparent 0 25%, rgba(56, 189, 248, .78) 25% 27%, transparent 27% 30%),
    linear-gradient(90deg, transparent 0 34%, rgba(183, 223, 82, .82) 34% 36%, transparent 36% 39%),
    linear-gradient(90deg, transparent 0 44%, rgba(14, 165, 233, .68) 44% 46%, transparent 46% 49%),
    linear-gradient(90deg, transparent 0 54%, rgba(56, 189, 248, .78) 54% 56%, transparent 56% 59%),
    linear-gradient(90deg, transparent 0 65%, rgba(183, 223, 82, .82) 65% 67%, transparent 67% 70%),
    linear-gradient(90deg, transparent 0 76%, rgba(14, 165, 233, .68) 76% 78%, transparent 78% 81%),
    linear-gradient(90deg, transparent 0 88%, rgba(56, 189, 248, .78) 88% 90%, transparent 90% 100%);
  transform-origin: center bottom;
  transform: scaleY(0.42);
  opacity: 0.42;
  filter: blur(0.1px);
  pointer-events: none;
}

.wdva-root.is-call-active .wdva-status-card::before {
  opacity: 1;
  animation: wdvaSpectrum 0.95s ease-in-out infinite;
}

.wdva-root.is-call-active .wdva-status-card::after {
  opacity: 1;
  animation: wdvaGlowFlow 2.2s linear infinite;
}

.wdva-label,
.wdva-timer span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  color: rgba(100, 116, 139, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

#wdvaStatus {
  display: block;
  font-size: 14px;
  line-height: 1.42;
  color: var(--wdva-text);
}

#wdvaStatus[data-tone="success"] {
  color: var(--wdva-success);
}

#wdvaStatus[data-tone="warning"] {
  color: var(--wdva-warning);
}

#wdvaStatus[data-tone="error"] {
  color: var(--wdva-danger);
}

.wdva-timer {
  min-width: 76px;
  padding: 8px 9px;
  text-align: right;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.wdva-timer strong {
  display: block;
  font-size: 20px;
  color: #111c31;
  letter-spacing: -0.04em;
}

.wdva-help {
  margin: 13px 0 0;
  color: rgba(51, 65, 85, 0.82);
  font-size: 12.5px;
  line-height: 1.55;
}

/* =========================================================
   CALL META — elapsed / started / session
   ========================================================= */

.wdva-meta-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.wdva-meta-item {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.wdva-meta-item span {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 950;
  color: rgba(100, 116, 139, 0.86);
}

.wdva-meta-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
  color: #111c31;
}

.wdva-root.is-call-active .wdva-meta-item {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.wdva-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.wdva-btn {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.wdva-btn:hover {
  transform: translateY(-1px);
}

.wdva-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.wdva-btn-start {
  flex: 1;
  color: #111827;
  background:
    linear-gradient(135deg, #dfff45 0%, #b7df52 46%, #38d6c9 100%);
  box-shadow:
    0 14px 30px rgba(56, 189, 248, 0.22),
    0 10px 24px rgba(183, 223, 82, 0.24);
}

.wdva-btn-start:hover {
  filter: brightness(1.03);
  box-shadow:
    0 18px 38px rgba(56, 189, 248, 0.28),
    0 12px 30px rgba(183, 223, 82, 0.28);
}

.wdva-btn-end {
  flex: 1;
  color: #ffffff;
  background:
    linear-gradient(135deg, #ef4444 0%, #b42318 100%);
  box-shadow: 0 14px 30px rgba(180, 35, 24, 0.22);
}

.wdva-small {
  margin: 13px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(100, 116, 139, 0.72);
}

#wdvaRemoteAudio {
  display: none;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes wdvaSpectrum {
  0% {
    transform: scaleY(0.42);
    filter: hue-rotate(0deg);
  }

  18% {
    transform: scaleY(0.88);
  }

  36% {
    transform: scaleY(0.54);
  }

  52% {
    transform: scaleY(1);
    filter: hue-rotate(12deg);
  }

  72% {
    transform: scaleY(0.62);
  }

  100% {
    transform: scaleY(0.42);
    filter: hue-rotate(0deg);
  }
}

@keyframes wdvaGlowFlow {
  0% {
    filter: hue-rotate(0deg) saturate(1);
  }

  50% {
    filter: hue-rotate(12deg) saturate(1.18);
  }

  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
}

@keyframes wdvaAgentPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 13px 26px rgba(0, 0, 0, 0.18),
      0 0 0 rgba(56, 189, 248, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  50% {
    transform: scale(1.045);
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.22),
      0 0 22px rgba(56, 189, 248, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .wdva-root[data-position="bottom-right"],
  .wdva-root[data-position="top-right"] {
    right: 14px;
  }

  .wdva-root[data-position="bottom-left"],
  .wdva-root[data-position="top-left"] {
    left: 14px;
  }

  .wdva-root[data-position="bottom-right"],
  .wdva-root[data-position="bottom-left"] {
    bottom: 14px;
  }

  .wdva-root[data-position="top-right"],
  .wdva-root[data-position="top-left"] {
    top: 82px;
  }

  .wdva-launcher {
    width: 76px;
    height: 76px;
    right: 18px;
    bottom: 66px;
  }

  .wdva-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 104px);
    border-radius: 26px;
  }

  .wdva-root[data-position="bottom-right"] .wdva-panel,
  .wdva-root[data-position="bottom-left"] .wdva-panel {
    bottom: 90px;
  }

  .wdva-panel-head {
    min-height: 72px;
    padding: 12px 14px;
  }

  .wdva-agent-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .wdva-agent strong {
    max-width: 210px;
    font-size: 14px;
  }

  .wdva-agent span {
    max-width: 210px;
  }

  .wdva-body {
    max-height: calc(100vh - 178px);
    padding: 14px;
  }

  .wdva-status-card {
    padding: 13px;
  }

  .wdva-meta-grid {
    grid-template-columns: 1fr;
  }

  .wdva-status-card::before {
    left: 22px;
    right: 22px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .wdva-launcher,
  .wdva-launcher:hover,
  .wdva-btn,
  .wdva-close,
  .wdva-root.is-call-active .wdva-status-card::before,
  .wdva-root.is-call-active .wdva-status-card::after,
  .wdva-root.is-call-active .wdva-agent-mark {
    animation: none !important;
    transition: none !important;
  }
}


/* =========================================================
   VERIFIED HUMAN HANDOFF — OTP MODAL
   ========================================================= */


.wdva-handoff-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 19, 34, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wdva-handoff-overlay[hidden] {
  display: none !important;
}

.wdva-handoff-dialog {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 34px 100px rgba(15, 23, 42, 0.32),
    0 14px 34px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 18px;
}

.wdva-handoff-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  cursor: pointer;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  font-size: 22px;
  line-height: 1;
}

.wdva-handoff-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  padding-right: 36px;
  margin-bottom: 16px;
}

.wdva-handoff-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #111827;
  background:
    linear-gradient(135deg, #dfff45 0%, #b7df52 52%, #38d6c9 100%);
  font-size: 22px;
  font-weight: 950;
  box-shadow:
    0 12px 24px rgba(183, 223, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.wdva-handoff-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.wdva-handoff-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
}

.wdva-handoff-form,
.wdva-handoff-otp {
  display: grid;
  gap: 11px;
}

.wdva-handoff-form[hidden],
.wdva-handoff-otp[hidden] {
  display: none !important;
}

.wdva-handoff-form label,
.wdva-handoff-otp label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.wdva-handoff-form input,
.wdva-handoff-form select,
.wdva-handoff-form textarea,
.wdva-handoff-otp input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.wdva-handoff-form input,
.wdva-handoff-form select,
.wdva-handoff-otp input {
  min-height: 44px;
  padding: 0 13px;
}

.wdva-handoff-form textarea {
  min-height: 98px;
  resize: vertical;
  padding: 12px 13px;
  line-height: 1.45;
}

.wdva-handoff-form input:focus,
.wdva-handoff-form select:focus,
.wdva-handoff-form textarea:focus,
.wdva-handoff-otp input:focus {
  border-color: rgba(14, 165, 233, 0.42);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.wdva-handoff-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.wdva-handoff-note,
.wdva-handoff-otp-copy {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.5;
}

.wdva-handoff-otp-copy strong {
  color: #0f172a;
}

.wdva-handoff-notice {
  min-height: 18px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.wdva-handoff-notice[data-tone="success"] {
  color: #067647;
}

.wdva-handoff-notice[data-tone="warning"] {
  color: #b54708;
}

.wdva-handoff-notice[data-tone="error"] {
  color: #b42318;
}

.wdva-handoff-submit,
.wdva-handoff-back {
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.wdva-handoff-submit {
  border: 0;
  color: #111827;
  background:
    linear-gradient(135deg, #dfff45 0%, #b7df52 48%, #38d6c9 100%);
  box-shadow:
    0 14px 28px rgba(56, 189, 248, 0.20),
    0 10px 22px rgba(183, 223, 82, 0.22);
}

.wdva-handoff-back {
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #334155;
  background: rgba(255, 255, 255, 0.78);
}

.wdva-handoff-submit:hover,
.wdva-handoff-back:hover {
  transform: translateY(-1px);
}

.wdva-handoff-submit:disabled,
.wdva-handoff-back:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.wdva-handoff-otp-actions {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .wdva-handoff-overlay {
    align-items: end;
    padding: 12px;
  }

  .wdva-handoff-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 24px;
    padding: 16px;
  }

  .wdva-handoff-head {
    grid-template-columns: 42px 1fr;
  }

  .wdva-handoff-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .wdva-handoff-otp-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wdva-handoff-trigger,
  .wdva-handoff-submit,
  .wdva-handoff-back {
    transition: none !important;
  }
}

/* =========================================================
   URGENT HANDOFF BUTTON — NOTICEABLE SOLID COLOR
   ========================================================= */

.wdva-handoff-trigger {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
  box-shadow:
    0 16px 34px rgba(234, 88, 12, 0.30),
    0 7px 18px rgba(194, 65, 12, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font: inherit;
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.wdva-handoff-trigger:hover,
.wdva-handoff-trigger:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 20px 40px rgba(234, 88, 12, 0.36),
    0 9px 22px rgba(194, 65, 12, 0.26),
    0 0 0 4px rgba(249, 115, 22, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  outline: none;
}

.wdva-handoff-trigger:active {
  transform: translateY(0) scale(0.985);
}

.wdva-root.is-call-active .wdva-handoff-trigger {
  animation: wdvaHandoffPulse 1.85s ease-in-out infinite;
}

@keyframes wdvaHandoffPulse {
  0%,
  100% {
    box-shadow:
      0 16px 34px rgba(234, 88, 12, 0.30),
      0 7px 18px rgba(194, 65, 12, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  50% {
    box-shadow:
      0 18px 40px rgba(234, 88, 12, 0.44),
      0 0 0 5px rgba(249, 115, 22, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}


@media (prefers-reduced-motion: reduce) {
  .wdva-root.is-call-active .wdva-handoff-trigger {
    animation: none !important;
  }
}
