/* Partivo AI Pro 2.0 — accessibility, ranked results and production additions */


/* ===== Partivo AI Pro 1.0 accessibility and search confidence UI ===== */
#paib-box #paib-theme-toggle.paib-theme-toggle{
  width:auto;
  min-width:86px;
  height:30px;
  padding:3px 8px 3px 34px;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  font-size:10px;
  line-height:1;
  white-space:nowrap;
}
#paib-box #paib-theme-toggle .paib-theme-toggle-label{
  display:inline-block;
  position:relative;
  z-index:2;
  pointer-events:none;
  color:inherit;
  font-weight:700;
}
#paib-box #paib-theme-toggle .paib-theme-toggle-knob{
  right:auto;
  left:5px;
  top:5px;
  width:20px;
  height:20px;
}
#paib-box.paib-theme-light #paib-theme-toggle .paib-theme-toggle-knob{
  transform:none;
}
#paib-box .paib-header-tool{
  width:32px;
  height:32px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:inherit;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
#paib-box .paib-header-tool.active{ box-shadow:0 0 0 2px rgba(52,211,153,.35); }
#paib-box #paib-voice-conversation.active{background:rgba(16,185,129,.2);box-shadow:0 0 0 2px rgba(16,185,129,.38)}
#paib-box #paib-voice-conversation.listening{animation:paibVoicePulse 1s infinite alternate;background:rgba(239,68,68,.24)}
#paib-box .paib-voice-input{
  flex:0 0 38px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  cursor:pointer;
  background:rgba(148,163,184,.18);
  font-size:18px;
}
#paib-box .paib-voice-input.listening{
  animation:paibVoicePulse 1s infinite alternate;
  background:rgba(239,68,68,.22);
}
#paib-box .paib-voice-status{
  min-height:0;
  padding:0 14px;
  font-size:10px;
  opacity:.8;
  text-align:right;
}
@keyframes paibVoicePulse{from{transform:scale(1)}to{transform:scale(1.08)}}
#paib-box .paib-match-label{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin-top:5px;
  padding:3px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  background:rgba(148,163,184,.16);
}
#paib-box .paib-match-confirmed{background:rgba(16,185,129,.16);color:#059669}
#paib-box .paib-match-likely{background:rgba(59,130,246,.15);color:#2563eb}
#paib-box .paib-match-verify{background:rgba(245,158,11,.17);color:#b45309}
#paib-box .paib-btn-view{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 10px;
  border-radius:8px;
  text-decoration:none;
  background:rgba(148,163,184,.18);
  color:inherit;
  font-size:11px;
  font-weight:700;
}
@media (max-width:600px){
  #paib-box #paib-theme-toggle.paib-theme-toggle{min-width:76px;font-size:9px;padding-right:6px}
  #paib-box .paib-header-tool{width:28px;height:28px}
}
/* Partivo AI Pro — ranked replacement-video cards */
#paib-box .paib-video {
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(17,24,39,.72);
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden;
}
#paib-box.paib-theme-light .paib-video {
  border-color: rgba(15,23,42,.11);
  background: rgba(255,255,255,.96);
  color: #111827;
}
#paib-box .paib-video-loading {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: .85;
}
#paib-box .paib-video-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: paib-video-spin .8s linear infinite;
}
@keyframes paib-video-spin { to { transform: rotate(360deg); } }
#paib-box .paib-video-head,
#paib-box .paib-video-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#paib-box .paib-video-head { margin-bottom: 7px; }
#paib-box .paib-video-source,
#paib-box .paib-video-confidence {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
#paib-box .paib-video-source { background: rgba(59,130,246,.16); color: #93c5fd; }
#paib-box.paib-theme-light .paib-video-source { color: #1d4ed8; }
#paib-box .paib-video-confidence-high { background: rgba(34,197,94,.18); color: #86efac; }
#paib-box.paib-theme-light .paib-video-confidence-high { color: #15803d; }
#paib-box .paib-video-confidence-medium { background: rgba(245,158,11,.18); color: #fcd34d; }
#paib-box.paib-theme-light .paib-video-confidence-medium { color: #a16207; }
#paib-box .paib-video-confidence-low { background: rgba(239,68,68,.17); color: #fca5a5; }
#paib-box.paib-theme-light .paib-video-confidence-low { color: #b91c1c; }
#paib-box .paib-video-title {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.75;
}
#paib-box .paib-video-channel,
#paib-box .paib-video-reasons,
#paib-box .paib-video-warning,
#paib-box .paib-video-no-result {
  margin: 4px 0;
  font-size: 10.5px;
  line-height: 1.7;
}
#paib-box .paib-video-channel { opacity: .72; }
#paib-box .paib-video-reasons { color: #86efac; }
#paib-box.paib-theme-light .paib-video-reasons { color: #166534; }
#paib-box .paib-video-warning { color: #fcd34d; }
#paib-box.paib-theme-light .paib-video-warning { color: #92400e; }
#paib-box .paib-video iframe {
  display: block;
  width: 100%;
  height: 220px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: #000;
}
#paib-box .paib-video-actions { margin-top: 8px; }
#paib-box .paib-video-actions a,
#paib-box .paib-video > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(59,130,246,.16);
  color: #bfdbfe;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}
#paib-box.paib-theme-light .paib-video-actions a,
#paib-box.paib-theme-light .paib-video > a { color: #1d4ed8; }
#paib-box .paib-video-alternatives {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148,163,184,.2);
}
#paib-box .paib-video-alt-title {
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  opacity: .8;
}
#paib-box .paib-video-alt-btn {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 7px 9px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: inherit;
  text-align: right;
  font: inherit;
  font-size: 10.5px;
  line-height: 1.6;
  cursor: pointer;
}
#paib-box.paib-theme-light .paib-video-alt-btn { background: #f8fafc; }
#paib-box .paib-video-alt-btn:hover { filter: brightness(1.08); }
@media (max-width: 520px) {
  #paib-box .paib-video iframe { height: 200px; }
}
/* Partivo AI Pro 2.0 – production additions */
.paib-consent{display:flex;align-items:flex-start;gap:8px;margin:8px 0;font-size:11px;line-height:1.75;color:inherit;cursor:pointer}
.paib-consent input{flex:0 0 auto;margin-top:4px}
.paib-diagnostic-confidence{display:inline-flex;margin-inline-start:8px;padding:2px 7px;border-radius:999px;background:rgba(43,124,255,.12);font-size:10px;font-weight:700}
.paib-prod-sku{font-size:10px;opacity:.72;margin-top:3px;direction:ltr;text-align:right}
.paib-prod-warning{font-size:10px;line-height:1.6;margin-top:4px;color:#9a5a00}
.paib-theme-dark .paib-prod-warning{color:#ffd17a}
.paib-request-btn:focus-visible,.paib-theme-toggle:focus-visible,.paib-header-tool:focus-visible,.paib-voice-input:focus-visible,#paib-send:focus-visible{outline:3px solid rgba(43,124,255,.35);outline-offset:2px}
@media (prefers-reduced-motion:reduce){#paib-box *,#paib-open *{scroll-behavior:auto;animation-duration:.01ms;animation-iteration-count:1;transition-duration:.01ms}}
.paib-privacy-link{color:inherit;text-decoration:underline;text-underline-offset:2px}
.paib-privacy-link:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:3px}
