.order-chat-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  margin: 16px 0;
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
}
.order-chat-dialog {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
.order-chat-dialog::backdrop {
  background: #18202b66;
}
.chat-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.chat-heading small {
  color: var(--muted);
  font-size: 11px;
}
.chat-heading h2 {
  margin: 6px 0 12px;
  font-size: 21px;
}
.chat-close {
  font: inherit;
  font-size: 28px;
  line-height: 1;
  padding: 0 4px;
}
.chat-notice {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}
.chat-connection {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 14px;
}
.chat-messages {
  max-height: 35dvh;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 2px;
}
.chat-empty {
  font-size: 13px;
  color: var(--muted);
}
.chat-bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1eee9;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.chat-bubble.chat-own {
  background: #fce8da;
  align-self: flex-end;
}
.chat-bubble strong {
  font-size: 11px;
}
.chat-bubble p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-bubble small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #665d54;
}
.chat-error {
  color: #a03737;
  font-size: 12px;
  line-height: 1.5;
}
.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.chat-compose label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
}
.chat-compose textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
}
.chat-compose button {
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 14px;
}
.chat-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.chat-actions button {
  color: var(--muted);
  text-decoration: underline;
  font-size: 11px;
  padding: 4px 0;
  min-height: 32px;
}
