/* Order assistant chat window: sits where the video used to be. */
.oa-box {
  width: 90%;
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
  /* Same footprint as the video it replaces: 90% wide, 16:9 */
  aspect-ratio: 16 / 9;
  min-height: 210px;
  background: rgba(224, 224, 224, 0.6);
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #222;
  overflow: hidden;
}
.oa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.oa-title { font-weight: bold; font-size: 14px; color: rgba(0, 0, 0, 0.75); }
.oa-head-btns button {
  background: none; border: none; cursor: pointer; font-size: 12px;
  color: #333; padding: 2px 6px; border-radius: 4px;
}
.oa-head-btns button:hover { background: rgba(0, 0, 0, 0.08); }
.oa-log {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.oa-msg {
  max-width: 85%;
  padding: 7px 10px;
  border-radius: 10px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.oa-bot { background: #fff; align-self: flex-start; border: 1px solid rgba(0, 0, 0, 0.08); }
.oa-me  { background: #3a3a3a; color: #fff; align-self: flex-end; }
.oa-note { align-self: center; font-size: 11px; color: #666; text-align: center; }
.oa-err { background: #fdecea; color: #b00020; border: 1px solid #f5c6cb; align-self: flex-start; }
.oa-typing { color: #666; font-style: italic; }
.oa-input {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  align-items: flex-end;
}
.oa-input textarea {
  flex: 1;
  resize: none;
  height: 32px;
  max-height: 60px;
  padding: 6px 8px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
}
.oa-input button {
  height: 32px;
  min-width: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  background: #3a3a3a;
  color: #fff;
  padding: 0 10px;
}
.oa-input button:disabled { opacity: 0.5; cursor: default; }
.oa-mic { background: #fff !important; color: #333 !important; border: 1px solid #bbb !important; font-size: 16px !important; }
.oa-mic.oa-listening { background: #b00020 !important; color: #fff !important; border-color: #b00020 !important; }
.oa-filled { transition: background-color 0.4s; background-color: #fff3b0 !important; }
.oa-privacy { font-size: 9px; color: #777; text-align: center; padding: 0 8px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
