/*
 * In-phone live demo. Every rule is scoped to the overlay that is added only
 * after Call Alexander is clicked. Idle markup is not restyled.
 */
.alex-call__disclosure {
  margin: 8px 0 0;
  color: #3d4a3a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.alex-call__phone-card > .alex-live-disclosure {
  position: absolute;
  z-index: 4;
  top: 48px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 16px 18px 20px;
  background: #fff;
  color: #051d3d;
  text-align: center;
  overflow: auto;
  font-family: Inter, "Segoe UI", sans-serif;
}

.alex-live-disclosure__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.alex-live-disclosure__body {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.alex-live-disclosure__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.alex-live-disclosure__actions button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 9999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.alex-live-disclosure__cancel {
  border: 1px solid #051d3d;
  background: #fff;
  color: #051d3d;
}

.alex-live-disclosure__continue {
  border: 0;
  background: #051d3d;
  color: #fff;
}

.alex-live-disclosure__actions button:focus-visible {
  outline: 2px solid #d2f002;
  outline-offset: 2px;
}

.alex-call__phone-card > .alex-live {
  position: absolute;
  z-index: 3;
  top: 48px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 16px 22px 24px;
  background: #fff;
  color: #051d3d;
  text-align: center;
  overflow: hidden;
  font-family: Inter, "Segoe UI", sans-serif;
}

.alex-live__preview {
  margin: 0;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #051d3d;
  color: #d2f002;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.alex-live__logo {
  width: 113px;
  height: 12px;
  object-fit: contain;
}

.alex-live__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #f9f9f9;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.alex-live__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d2f002;
}

.alex-live__timer {
  margin: 2px 0 0;
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.alex-live__wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: min(240px, 100%);
  height: 48px;
}

.alex-live__wave span {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 99px;
  background: #d2f002;
}

.alex-live__note,
.alex-live__mic,
.alex-live__remaining,
.alex-live__error {
  margin: 0;
  max-width: 28ch;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #051d3d;
}

.alex-live__remaining,
.alex-live__mic {
  color: #676767;
}

.alex-live__captions {
  width: 100%;
  max-height: 112px;
  overflow: auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f6f6f6;
  text-align: left;
}

.alex-live__caption {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.alex-live__who {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alex-live__caption--assistant .alex-live__who { color: #2d380e; }
.alex-live__caption.is-partial { opacity: 0.72; }
.alex-live__caption--empty { color: #676767; text-align: center; }

.alex-live__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.alex-live__actions button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 9999px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.alex-live__mute,
.alex-live__captions-toggle,
.alex-live__retry {
  border: 1px solid #051d3d;
  background: #fff;
  color: #051d3d;
}

.alex-live__end {
  border: 0;
  background: #051d3d;
  color: #fff;
}

.alex-live__actions button:focus-visible {
  outline: 2px solid #d2f002;
  outline-offset: 2px;
}

.alex-live__turnstile {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.alex-live[data-phase="connecting"] .alex-live__dot {
  box-shadow: 0 0 0 4px rgba(210, 240, 2, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .alex-live[data-phase="connecting"] .alex-live__dot {
    box-shadow: none;
  }

  .alex-live__wave span {
    transition: none;
  }
}
