/* Wilson front-desk chat — motif tokens, hero-only-artwork rule respected */

.wchat-launch {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  font-family: Baskerville, "Big Caslon", Charter, Georgia, serif;
  font-variant-caps: small-caps;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: #2b211a;
  background: #fcf0e0;
  border: 1px solid #9c8b74;
  border-radius: 2px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(43, 33, 26, 0.14);
}
.wchat-launch:hover { border-color: #c6a464; }

.wchat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 41;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(30rem, calc(100vh - 3rem));
  display: none;
  flex-direction: column;
  font-family: Baskerville, "Big Caslon", Charter, Georgia, serif;
  color: #584a3c;
  background: #fcf0e0;
  border: 1px solid #9c8b74;
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(43, 33, 26, 0.2);
}
.wchat-panel.open { display: flex; }

.wchat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(156, 139, 116, 0.45);
}
.wchat-head b {
  font-weight: 500;
  font-variant-caps: small-caps;
  letter-spacing: 0.16em;
  color: #2b211a;
}
.wchat-head small {
  font-size: 0.7rem;
  font-variant-caps: small-caps;
  letter-spacing: 0.14em;
  color: #9c8b74;
}
.wchat-close {
  background: none;
  border: none;
  color: #9c8b74;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  font-family: inherit;
}
.wchat-close:hover { color: #2b211a; }

.wchat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.wchat-msg { max-width: 88%; padding: 0.45rem 0.7rem; border-radius: 3px; white-space: pre-wrap; }
.wchat-msg.user { align-self: flex-end; background: rgba(232, 213, 176, 0.55); color: #2b211a; }
.wchat-msg.wilson { align-self: flex-start; border: 1px solid rgba(156, 139, 116, 0.45); }
.wchat-msg.pending { color: #9c8b74; font-style: italic; }

.wchat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid rgba(156, 139, 116, 0.45);
}
.wchat-form input {
  flex: 1;
  font-family: inherit;
  font-size: 0.95rem;
  color: #2b211a;
  background: #fff9ef;
  border: 1px solid rgba(156, 139, 116, 0.6);
  border-radius: 2px;
  padding: 0.45rem 0.6rem;
}
.wchat-form input:focus { outline: none; border-color: #c6a464; }
.wchat-form button {
  font-family: inherit;
  font-variant-caps: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #fcf0e0;
  background: #584a3c;
  border: none;
  border-radius: 2px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.wchat-form button:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  .wchat-panel { right: 0.5rem; bottom: 0.5rem; }
}
