
.wk-chat :is(button,input) { font: inherit; }
.wk-chat button { cursor: pointer; }
.wk-chat-open {
  position: fixed; z-index: 15; bottom: max(1rem, env(safe-area-inset-bottom));
  right: 1rem; border: 1px solid #e98350; border-radius: 999px;
  padding: .72rem 1rem; background: #2a1a13; color: #fff6e8;
  font-weight: 700 !important; box-shadow: 0 5px 20px #2a1a1333;
}
dialog.wk-chat-dialog {
  position: fixed; inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(26rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  max-width: none; margin: 0; padding: 0; border: 1px solid #dfc8b5;
  border-radius: 1rem; background: #fffaf2; color: #24150f;
  box-shadow: 0 12px 38px #21120b40; overflow: hidden;
}
.wk-chat-dialog[open] { display: flex; flex-direction: column; }
.wk-chat-dialog::backdrop { background: #22171145; }
.wk-chat-dialog header {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: #2a1a13; color: #fff6e8; padding: .7rem 1rem;
}
.wk-chat-dialog h2 { font-size: 1.28rem; margin: 0; color: inherit; }
.wk-chat-close { border: 0; background: none; color: inherit; font-size: 1.6rem !important; min-width: 44px; min-height: 44px; }
.wk-chat-log { min-height: 4rem; max-height: min(18rem, 38dvh); overflow: auto; padding: .75rem 1rem; }
.wk-chat-log > div { padding: .58rem .75rem; margin-bottom: .6rem; border-radius: .65rem; }
.wk-chat-answer { background: #f4e8d9; }
.wk-chat-question { background: #fbe0cf; margin-left: 1.3rem; }
.wk-chat-log p { margin: 0; color: inherit; }
.wk-chat-log a { display: block; margin-top: .45rem; text-decoration: underline; color: #853412; font-weight: 700; }
.wk-chat-topics { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .65rem; }
.wk-chat-topics button {
  padding: .35rem .6rem; border: 1px solid #bf8a6f; border-radius: 999px;
  background: #fffaf2; color: #612a15; font-size: .8rem;
}
.wk-chat-form { padding: .7rem 1rem; border-top: 1px solid #dfc8b5; }
.wk-chat-form label { display: block; margin-bottom: .25rem; font-size: .85rem; }
.wk-chat-form > div { display: flex; gap: .4rem; }
.wk-chat-form input {
  min-width: 0; flex: 1; border: 1px solid #bf8a6f; border-radius: .42rem;
  background: white; color: #24150f; padding: .45rem .55rem;
}
.wk-chat-form button {
  border: 0; border-radius: .42rem; background: #883615; color: white; padding: .45rem .75rem;
}
.wk-chat [hidden] { display: none !important; }
.wk-chat-conversation { min-height: 0; overflow: auto; }
.wk-chat-log button, .wk-chat-back {
  display: block; margin-top: .45rem; padding: .15rem 0; border: 0;
  background: transparent; color: #853412; text-decoration: underline; font-weight: 700 !important;
}
.wk-chat-quote { min-height: 0; overflow: auto; padding: .75rem 1rem 1rem; }
.wk-chat-quote h3 { margin: .6rem 0 .8rem; }
.wk-chat-inquiry { display: grid; gap: .65rem; }
.wk-chat-inquiry label { display: grid; gap: .2rem; font-size: .9rem; }
.wk-chat-inquiry :is(input, textarea) {
  font: inherit; width: 100%; min-width: 0; padding: .45rem .55rem;
  border: 1px solid #bf8a6f; border-radius: .42rem; background: white; color: #24150f;
}
.wk-chat-inquiry textarea { resize: vertical; }
.wk-chat-submit {
  justify-self: start; border: 0; border-radius: .42rem; background: #883615;
  color: white; padding: .55rem .8rem;
}
.wk-chat-status, .wk-chat-help { margin: .5rem 0 0; }
.wk-chat-status:empty { display: none; }
