/* Herbal Product Finder: chat bubble booking (v3.1.1) */
.hpf-chat{position:fixed;right:20px;bottom:20px;z-index:2147483000;font-family:var(--hpf-font,inherit);color:var(--hpf-text,#2C3E2D)}
.hpf-chat.is-left{right:auto;left:20px}
.hpf-chat.is-left .hpf-chat-launch{margin-left:0;margin-right:auto}
.hpf-chat *{box-sizing:border-box}
.hpf-chat-launch{display:flex;align-items:center;gap:10px;margin-left:auto;border:0;border-radius:var(--hpf-r-field);padding:12px 20px 12px 14px;background:var(--hpf-primary,#4A5D23);color:var(--hpf-btn-text,#fff);font:inherit;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 10px 30px rgba(44,62,45,.28)}
.hpf-chat-launch:hover{filter:brightness(1.08)}
.hpf-chat-launch:focus-visible{outline:3px solid var(--hpf-secondary,#8A9A5B);outline-offset:3px}
.hpf-chat-launch-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.18);font-size:18px}
.hpf-chat.is-open .hpf-chat-launch{display:none}
.hpf-chat-panel{width:370px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:#fff;border-radius:var(--hpf-r-card);overflow:hidden;box-shadow:0 22px 60px rgba(44,62,45,.30)}
.hpf-chat-panel[hidden]{display:none}
.hpf-chat-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--hpf-primary,#4A5D23);color:var(--hpf-btn-text,#fff)}
.hpf-chat-head div{flex:1;display:flex;flex-direction:column;line-height:1.25}
.hpf-chat-head strong{font-size:16px}
.hpf-chat-head span{font-size:12px;opacity:.85}
.hpf-chat-avatar{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:20px}
.hpf-chat-close{background:none;border:0;color:inherit;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}
.hpf-chat-log{flex:1;overflow-y:auto;padding:16px;background:var(--hpf-bg,#F9F8F5);display:flex;flex-direction:column;gap:8px}
.hpf-chat-msg{max-width:85%;padding:10px 14px;border-radius:var(--hpf-r-card);font-size:15px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.hpf-chat-msg:empty{display:none}
.hpf-chat-msg.is-bot{align-self:flex-start;background:var(--hpf-card,#fff);border:1px solid rgba(0,0,0,.08);border-bottom-left-radius:4px}
.hpf-chat-msg.is-me{align-self:flex-end;background:var(--hpf-primary,#4A5D23);color:var(--hpf-btn-text,#fff);border-bottom-right-radius:4px}
.hpf-chat-msg.is-typing{display:flex;gap:4px;padding:14px}
.hpf-chat-msg.is-typing span{width:7px;height:7px;border-radius:50%;background:#9aa69c;animation:hpfChatDot 1s infinite ease-in-out}
.hpf-chat-msg.is-typing span:nth-child(2){animation-delay:.15s}
.hpf-chat-msg.is-typing span:nth-child(3){animation-delay:.3s}
@keyframes hpfChatDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.hpf-chat-choices{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px;max-height:180px;overflow-y:auto;background:var(--hpf-bg,#F9F8F5)}
.hpf-chat-choices:not(:empty){padding:10px 16px 14px;border-top:1px solid rgba(0,0,0,.07)}
.hpf-chat-chip{border:2px solid var(--hpf-primary,#4A5D23);background:#fff;color:var(--hpf-primary,#4A5D23);border-radius:var(--hpf-r-field);padding:8px 14px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.hpf-chat-chip:hover{background:var(--hpf-primary,#4A5D23);color:#fff}
.hpf-chat-chip.is-secondary{border-color:color-mix(in srgb,var(--hpf-primary,#4A5D23) 30%,transparent);color:#5c665e}
.hpf-chat-chip.is-secondary:hover{background:#eef1ea;color:#2C3E2D}
.hpf-chat-chip.is-time{min-width:88px}
.hpf-chat-input{display:flex;gap:8px;padding:10px 12px;border-top:1px solid rgba(0,0,0,.07);background:#fff}
.hpf-chat-input[hidden]{display:none}
.hpf-chat-input input{flex:1;min-width:0;border:1px solid color-mix(in srgb,var(--hpf-primary,#4A5D23) 25%,transparent);border-radius:var(--hpf-r-field);padding:10px 14px;font:inherit;font-size:16px}
.hpf-chat-input input:focus{outline:2px solid var(--hpf-secondary,#8A9A5B);border-color:transparent}
.hpf-chat-send{width:42px;height:42px;border-radius:50%;border:0;background:var(--hpf-primary,#4A5D23);color:#fff;font-size:16px;cursor:pointer}
.hpf-chat-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
@media (max-width:600px){
  .hpf-chat{right:12px;bottom:12px}
  .hpf-chat.is-left{right:auto;left:12px}
  .hpf-chat.is-open,.hpf-chat.is-left.is-open{left:0;right:0;bottom:0}
  .hpf-chat.is-open .hpf-chat-panel{width:100%;max-width:100%;height:85vh;max-height:85vh;border-radius:var(--hpf-r-card) var(--hpf-r-card) 0 0}
  .hpf-chat-launch-label{display:none}
  .hpf-chat-launch{padding:12px}
}
@media (prefers-reduced-motion:reduce){.hpf-chat-msg.is-typing span{animation:none}}
