/* TC Park Assistant widget styles. Scoped via .tc-pa-* prefix.
   Literal colours are correct here: this renders on the park's own website,
   where Team Captain's design tokens do not exist. Type inherits from the
   host page on purpose. */

.tc-pa {
  box-sizing: border-box;
  max-width: 720px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2933;
}

.tc-pa *,
.tc-pa *::before,
.tc-pa *::after { box-sizing: inherit; }

.tc-pa-head { font-size: 1.2em; font-weight: 600; margin: 0 0 4px; }
.tc-pa-note { margin: 0 0 12px; font-size: 0.9em; color: #52606d; }
.tc-pa-note a { color: #1d6fd8; text-decoration: underline; }

.tc-pa-thread { max-height: 420px; overflow-y: auto; }
.tc-pa-msg { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; line-height: 1.45; }
.tc-pa-msg p { margin: 0; white-space: pre-line; }
.tc-pa-msg-user { background: #eef2f7; margin-left: 15%; }
.tc-pa-msg-assistant { background: #f7f9fb; border: 1px solid #e2e8f0; margin-right: 15%; }
.tc-pa-msg a { color: #1d6fd8; text-decoration: underline; }

.tc-pa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.tc-pa-chip {
  font: inherit;
  font-size: 0.9em;
  padding: 6px 12px;
  border: 1px solid #c9d3df;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2933;
  cursor: pointer;
}
.tc-pa-chip:hover { background: #eef2f7; }

.tc-pa-label { display: block; font-size: 0.9em; font-weight: 600; margin: 0 0 4px; }
.tc-pa-row { display: flex; gap: 8px; }
.tc-pa-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #c9d3df;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2933;
}
.tc-pa-send {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: #1d6fd8;
  color: #ffffff;
  cursor: pointer;
}
.tc-pa-send:disabled { opacity: 0.6; cursor: default; }

.tc-pa-error { margin: 8px 0 0; color: #b42318; font-size: 0.9em; }
.tc-pa-error[hidden] { display: none; }

.tc-pa-register { display: inline-block; margin: 12px 0 0; color: #1d6fd8; font-weight: 600; }
.tc-pa-powered { margin: 8px 0 0; font-size: 0.8em; color: #7b8794; }

@media (max-width: 480px) {
  .tc-pa { padding: 12px; }
  .tc-pa-msg-user { margin-left: 0; }
  .tc-pa-msg-assistant { margin-right: 0; }
}
