#yw-chat-root {
  --chat-ink: #f5f1e8;
  --chat-muted: #b9b8ae;
  --chat-gold: #dbb86b;
  --chat-surface: #171c1b;
  --chat-edge: rgba(224, 208, 168, 0.18);
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1000;
  font-family: inherit;
  color: var(--chat-ink);
  font-size: 14px;
  line-height: 1.5;
}
#yw-chat-root *,
#yw-chat-root *::before,
#yw-chat-root *::after {
  box-sizing: border-box;
}
#yw-chat-root button,
#yw-chat-root input,
#yw-chat-root textarea {
  font: inherit;
}
#yw-chat-root button {
  cursor: pointer;
}
#yw-chat-root button:focus-visible,
#yw-chat-root input:focus-visible,
#yw-chat-root textarea:focus-visible,
#yw-chat-root a:focus-visible {
  outline: 2px solid var(--chat-gold);
  outline-offset: 3px;
}
#yw-chat-root .yw-chat-launch {
  border: 1px solid rgba(224, 208, 168, 0.34);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #161c1b;
  color: var(--chat-ink);
  border-radius: 40px;
  padding: 7px 20px 7px 7px;
  min-height: 64px;
  box-shadow: 0 9px 30px #0005;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
#yw-chat-root .yw-chat-launch:hover {
  transform: translateY(-3px);
  border-color: var(--chat-gold);
  box-shadow: 0 12px 35px #0007;
}
#yw-chat-root .yw-chat-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: #242b2a url("benjamin-about.webp") 13% 7% / 330% auto
    no-repeat;
  border-radius: 50%;
  border: 1px solid #dbb86b6b;
}
#yw-chat-root .yw-chat-launch-copy {
  text-align: left;
}
#yw-chat-root .yw-chat-launch-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
#yw-chat-root .yw-chat-launch-copy small {
  display: block;
  color: var(--chat-muted);
  font-size: 11px;
}
#yw-chat-root .yw-chat-launch-icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  color: var(--chat-gold);
}
#yw-chat-root .yw-chat-panel {
  padding: 0;
  margin: 0;
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 374px;
  max-width: calc(100vw - 40px);
  height: min(600px, calc(100dvh - 130px));
  min-height: 290px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--chat-edge);
  border-radius: 22px;
  background: var(--chat-surface);
  box-shadow:
    0 25px 90px #0007,
    0 3px 16px #0003;
  overflow: hidden;
  transform-origin: 26px bottom;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.22s;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#yw-chat-root[data-open="true"] .yw-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
#yw-chat-root .yw-chat-header {
  position: static;
  width: 100%;
  height: auto;
  top: auto;
  backdrop-filter: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--chat-edge);
  background: linear-gradient(130deg, #26322b, #171d1b 80%);
  flex-shrink: 0;
}
#yw-chat-root .yw-chat-header h2 {
  font-family: inherit;
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
  color: var(--chat-ink);
  line-height: 1.4;
}
#yw-chat-root .yw-chat-header p {
  font-size: 11px;
  margin: 3px 0 0;
  color: #c7c9bd;
}
#yw-chat-root .yw-chat-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #c6cabf;
  padding: 0;
}
#yw-chat-root .yw-chat-close:hover {
  background: #ffffff12;
  color: #fff;
}
#yw-chat-root .yw-chat-close svg {
  width: 18px;
  height: 18px;
}
#yw-chat-root .yw-chat-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #6a6d59 transparent;
  padding: 22px 18px 14px;
}
#yw-chat-root .yw-chat-log {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#yw-chat-root .yw-chat-message {
  width: fit-content;
  max-width: 92%;
  animation: yw-chat-arrive 0.23s ease both;
}
#yw-chat-root .yw-chat-message-label {
  display: block;
  font-size: 10px;
  color: var(--chat-muted);
  margin: 0 0 5px 3px;
  letter-spacing: 0.015em;
}
#yw-chat-root .yw-chat-message-body {
  margin: 0;
  border: 1px solid #ffffff0d;
  background: #252c28;
  border-radius: 14px 14px 14px 4px;
  padding: 11px 13px;
  color: #eeeae0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
}
#yw-chat-root .yw-chat-message[data-role="user"] {
  margin-left: auto;
}
#yw-chat-root .yw-chat-message[data-role="user"] .yw-chat-message-label {
  text-align: right;
  margin-right: 3px;
}
#yw-chat-root .yw-chat-message[data-role="user"] .yw-chat-message-body {
  border-radius: 14px 14px 4px 14px;
  background: #dac18b;
  color: #22251d;
  border-color: #e6c88c;
}
#yw-chat-root .yw-chat-message[data-role="error"] .yw-chat-message-body {
  color: #ffd7c4;
  border-color: #e5a4773a;
  background: #44372d;
}
#yw-chat-root .yw-chat-suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}
#yw-chat-root .yw-chat-suggestions:empty {
  display: none;
}
#yw-chat-root .yw-chat-suggestion {
  font-size: 11px;
  color: #e3d3b0;
  background: #ffffff05;
  border: 1px solid #d7bd793d;
  border-radius: 40px;
  padding: 7px 11px;
  transition: background 0.15s;
}
#yw-chat-root .yw-chat-suggestion:hover {
  background: #c7a4601d;
}
#yw-chat-root .yw-chat-suggestion:disabled {
  opacity: 0.5;
  cursor: wait;
}
#yw-chat-root .yw-chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 15px;
  width: 50px;
  background: #252c28;
  border-radius: 14px 14px 14px 4px;
  margin-top: 15px;
}
#yw-chat-root .yw-chat-typing[hidden] {
  display: none;
}
#yw-chat-root .yw-chat-typing span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d5c48f;
  animation: yw-chat-dot 1s ease-in-out infinite;
}
#yw-chat-root .yw-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
#yw-chat-root .yw-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
#yw-chat-root .yw-chat-compose {
  display: flex;
  gap: 8px;
  padding: 13px 16px 9px;
  border-top: 1px solid var(--chat-edge);
  flex-shrink: 0;
  align-items: end;
}
#yw-chat-root .yw-chat-compose[hidden],
#yw-chat-root .yw-chat-footer[hidden] {
  display: none;
}
#yw-chat-root .yw-chat-compose textarea {
  overflow-y: hidden;
  height: 43px;
  min-height: 43px;
  max-height: 105px;
  resize: none;
  border-radius: 12px;
  padding: 11px 12px;
  width: 100%;
  border: 1px solid #ffffff16;
  background: #101614;
  color: #fffaf0;
  outline: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
#yw-chat-root .yw-chat-compose textarea::placeholder {
  color: #90968a;
  opacity: 1;
}
#yw-chat-root .yw-chat-send {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  border: 0;
  background: #d8b668;
  color: #18211c;
  padding: 0;
}
#yw-chat-root .yw-chat-send:hover {
  background: #ebcc88;
}
#yw-chat-root .yw-chat-send:disabled {
  opacity: 0.45;
  cursor: default;
}
#yw-chat-root .yw-chat-send svg {
  width: 18px;
  height: 18px;
}
#yw-chat-root .yw-chat-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 13px;
  gap: 5px;
  font-size: 10px;
  color: #a3aa9b;
  flex-shrink: 0;
}
#yw-chat-root .yw-chat-footer button {
  border: 0;
  color: #d6bc81;
  font-size: 10px;
  padding: 2px 3px;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#yw-chat-root .yw-chat-enquiry {
  padding: 5px 0 2px;
}
#yw-chat-root .yw-chat-enquiry[hidden],
#yw-chat-root .yw-chat-conversation[hidden] {
  display: none;
}
#yw-chat-root .yw-chat-enquiry h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--chat-ink);
}
#yw-chat-root .yw-chat-enquiry-intro {
  color: var(--chat-muted);
  font-size: 12px;
  margin: 0 0 16px;
}
#yw-chat-root .yw-chat-field {
  display: block;
  color: #deddd1;
  font-size: 12px;
  margin: 12px 0;
}
#yw-chat-root .yw-chat-field input,
#yw-chat-root .yw-chat-field textarea {
  display: block;
  width: 100%;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  background: #111713;
  color: #f5f1e8;
  padding: 10px 11px;
  margin: 5px 0 0;
  min-height: 42px;
  font-size: 13px;
}
#yw-chat-root .yw-chat-field textarea {
  resize: vertical;
  min-height: 96px;
  max-height: 200px;
}
#yw-chat-root .yw-chat-enquiry-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}
#yw-chat-root .yw-chat-enquiry-submit {
  background: #d8b668;
  color: #18211c;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 650;
  font-size: 12px;
}
#yw-chat-root .yw-chat-enquiry-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
#yw-chat-root .yw-chat-back {
  background: none;
  color: #cccbbb;
  border: 0;
  font-size: 12px;
  padding: 9px 2px;
}
#yw-chat-root .yw-chat-status {
  font-size: 12px;
  line-height: 1.6;
  color: #dac48e;
  margin: 14px 0 0;
}
#yw-chat-root .yw-chat-status[data-error="true"] {
  color: #ffc6aa;
}
#yw-chat-root .yw-chat-enquiry a {
  color: #dac48e;
}
@keyframes yw-chat-arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes yw-chat-dot {
  0%,
  60%,
  100% {
    opacity: 0.4;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (max-width: 500px) {
  #yw-chat-root {
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  #yw-chat-root .yw-chat-launch {
    min-height: 58px;
    padding: 6px 15px 6px 6px;
    gap: 9px;
  }
  #yw-chat-root .yw-chat-launch-copy small {
    display: none;
  }
  #yw-chat-root .yw-chat-launch-copy strong {
    font-size: 12px;
  }
  #yw-chat-root .yw-chat-avatar {
    width: 44px;
    height: 44px;
  }
  #yw-chat-root .yw-chat-panel {
    bottom: 73px;
    width: 374px;
    max-width: calc(100vw - 44px);
    height: min(560px, calc(100dvh - 109px));
    border-radius: 18px;
  }
  #yw-chat-root .yw-chat-compose textarea,
  #yw-chat-root .yw-chat-field input,
  #yw-chat-root .yw-chat-field textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #yw-chat-root *,
  #yw-chat-root *::before,
  #yw-chat-root *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
