/* Nancy voice-call overlay styling (nancy-voice build, 2026-07-19).
   The overlay shell itself (.pepper-call-overlay, .pc-orb, .pc-name, .pc-status, .pc-timer,
   .pc-talk, .pc-hang, .pc-legal) is still built and inline-styled inside pepper-call.js on
   purpose - that keeps the call screen fully functional even if this stylesheet fails to load.
   This file ONLY carries the new live-caption styling (build item #3), scoped so it can't
   collide with anything the site's own pepper-chat.css defines. No selectors were moved out of
   pepper-chat.css - an audit of that file found no existing call-overlay rules to move (the
   overlay has always been 100% inline in pepper-call.js); see deploy-notes.md. */

.pepper-call-overlay .pc-captions {
  width: 100%;
  max-width: 300px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.pepper-call-overlay .pc-captions.pc-captions--active {
  opacity: 1;
  transform: translateY(0);
}

.pepper-call-overlay .pc-cap-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: left;
  min-height: 1.6em;
}

.pepper-call-overlay .pc-cap-line.pc-cap-empty {
  display: none;
}

.pepper-call-overlay .pc-cap-role {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.6;
}

.pepper-call-overlay .pc-cap-user .pc-cap-role {
  color: #5eead4;
}

.pepper-call-overlay .pc-cap-assistant .pc-cap-role {
  color: #ffd9a8;
}

.pepper-call-overlay .pc-cap-text {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 380px) {
  .pepper-call-overlay .pc-captions {
    max-width: 240px;
  }
}
