/* SR-15 Stuck? Ask us. Keep in sync with src/shared/stuckUi.js stuckCss. */
.stuck-root {
  position: fixed;
  right: 16px;
  bottom: calc(16px + var(--suite-tabs-h, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(360px, calc(100vw - 24px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.stuck-root[hidden] { display: none !important; }
.stuck-root.is-video-hidden { visibility: hidden; pointer-events: none; }
.stuck-panel {
  width: min(360px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  color: #1d1d1f;
  border: 2px solid #FDC8F5;
  border-radius: 18px;
  box-shadow:
    0 0 0 2px rgba(253, 200, 245, 0.45),
    0 4px 20px rgba(245, 154, 232, 0.35),
    0 0 40px rgba(253, 200, 245, 0.28);
}
html.dark .stuck-panel,
.dark .stuck-panel {
  background: #0a0a0c;
  color: #fcfdff;
  border: 2px solid rgba(11, 166, 223, 0.72);
  box-shadow:
    0 0 0 2px rgba(11, 166, 223, 0.28),
    0 4px 20px rgba(11, 166, 223, 0.22),
    0 0 40px rgba(11, 166, 223, 0.16);
}
.stuck-panel[hidden] { display: none !important; }
.stuck-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
}
.stuck-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.stuck-chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f5f5f7;
  color: #1d1d1f;
  border-radius: 999px;
  padding: 7px 11px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.stuck-chip[aria-pressed="true"] {
  background: #FCE4F1;
  border-color: #FDC8F5;
  color: #8A1157;
  font-weight: 600;
}
html.dark .stuck-chip,
.dark .stuck-chip {
  background: #121216;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fcfdff;
}
html.dark .stuck-chip[aria-pressed="true"],
.dark .stuck-chip[aria-pressed="true"] {
  background: rgba(11, 166, 223, 0.18);
  border-color: rgba(11, 166, 223, 0.72);
  color: #c9ecff;
}
.stuck-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.stuck-question {
  width: 100%;
  box-sizing: border-box;
  min-height: 88px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  background: #fff;
  color: #1d1d1f;
}
html.dark .stuck-question,
.dark .stuck-question {
  background: #121216;
  border-color: rgba(255, 255, 255, 0.16);
  color: #fcfdff;
}
.stuck-question:focus-visible {
  outline: 2px solid #0BA6DF;
  outline-offset: 2px;
}
.stuck-send {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  background: #c7c7cc;
  cursor: not-allowed;
}
.stuck-send.is-ready {
  cursor: pointer;
  background: linear-gradient(90deg, #E86FD4, #FDC8F5, #E86FD4);
  background-size: 200% 200%;
  animation: stuck-gradient 3s ease infinite;
}
html.dark .stuck-send.is-ready,
.dark .stuck-send.is-ready {
  background: linear-gradient(90deg, #0f6ae6, #c9ecff, #0f6ae6);
  background-size: 200% 200%;
}
@keyframes stuck-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .stuck-send.is-ready { animation: none; }
}
.stuck-faq {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6e6e73;
}
html.dark .stuck-faq,
.dark .stuck-faq { color: #a1a1a6; }
.stuck-faq a { color: #8A1157; font-weight: 600; }
html.dark .stuck-faq a,
.dark .stuck-faq a { color: #0BA6DF; }
.stuck-rule {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 12px 0;
}
html.dark .stuck-rule,
.dark .stuck-rule { border-top-color: rgba(255, 255, 255, 0.12); }
.stuck-prefer {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6e6e73;
}
html.dark .stuck-prefer,
.dark .stuck-prefer { color: #a1a1a6; }
.stuck-prefer a { color: inherit; font-weight: 600; }
.stuck-sent {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.stuck-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b42318;
  font-weight: 600;
}
html.dark .stuck-error,
.dark .stuck-error { color: #ff8d85; }
.stuck-again {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}
html.dark .stuck-again,
.dark .stuck-again { border-color: rgba(255, 255, 255, 0.16); }
.stuck-pill {
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  background: #1d1d1f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  white-space: nowrap;
}
html.dark .stuck-pill,
.dark .stuck-pill {
  background: #fcfdff;
  color: #030303;
}
.stuck-pill:focus-visible {
  outline: 2px solid #0BA6DF;
  outline-offset: 3px;
}
