#wf-chatbot {
  --wf-wine: #772d46;
  --wf-paper: #fff9f5;
  color: #291e24;
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(16px, env(safe-area-inset-right));
  z-index: 9999;
  font: 16px/1.45 system-ui, sans-serif;
}
#wf-chatbot [hidden] { display: none !important; }
#wf-chatbot button, #wf-chatbot input {
  font: inherit; margin: 0; letter-spacing: normal;
  text-transform: none; min-height: 0; box-shadow: none;
}
#wf-chatbot button { cursor: pointer; border: 0; }
#wf-chatbot .wf-chat-toggle, #wf-chatbot form button {
  background: var(--wf-wine); color: white; border-radius: 24px; padding: 10px 16px;
}
#wf-chatbot .wf-chat-toggle { box-shadow: 0 5px 20px #291e2433; }
#wf-chat-panel {
  position: absolute; bottom: calc(100% + 10px); right: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: min(570px, calc(100dvh - 95px));
  display: flex; flex-direction: column; background: white;
  border: 1px solid #e3d8dd; border-radius: 16px;
  box-shadow: 0 12px 40px #291e2433; overflow: hidden;
}
#wf-chat-panel header { display:flex; align-items:center; justify-content:space-between; padding: 12px 16px; background:var(--wf-wine); color:white; }
#wf-chatbot .wf-chat-close { background:transparent; color:white; font-size:25px; line-height:1; padding:4px 8px; }
#wf-chatbot .wf-chat-messages { min-height:85px; overflow:auto; padding:12px; }
#wf-chatbot .wf-chat-messages p { padding:9px 12px; margin:0 0 8px; border-radius:12px; overflow-wrap:anywhere; }
#wf-chatbot .wf-chat-answer { background: var(--wf-paper); }
#wf-chatbot .wf-chat-visitor { background:#efdee6; margin-left:16% !important; }
#wf-chatbot .wf-chat-messages a { display:block; color:var(--wf-wine); text-decoration:underline; margin-top:5px; }
#wf-chatbot .wf-chat-topics, #wf-chatbot form { display:flex; padding:8px 12px; gap:6px; margin:0; }
#wf-chatbot .wf-chat-topics { flex-wrap:wrap; }
#wf-chatbot .wf-chat-topics button { background: white; color:var(--wf-wine); border:1px solid #b48697; border-radius:20px; padding:5px 9px; font-size:14px; }
#wf-chatbot form { border-top:1px solid #efe4e9; }
#wf-chatbot form input { flex:1; min-width:0; background:white; color:#291e24; border:1px solid #b48697; border-radius:8px; padding:8px; height:auto; }
#wf-chatbot :focus-visible { outline:2px solid #214c93; outline-offset:2px; }
#wf-chatbot .wf-chat-product {
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px;
  padding:10px; background:var(--wf-paper); border-radius:12px; margin-bottom:8px;
}
#wf-chatbot .wf-chat-product img { width:62px; height:98px; object-fit:contain; background:white; }
#wf-chatbot .wf-chat-product > div { grid-column:-2/-1; }
#wf-chatbot .wf-chat-product strong { display:block; margin-bottom:4px; }
#wf-chatbot .wf-chat-product div { overflow-wrap:anywhere; font-size:14px; }
