/* Floating WhatsApp chat window */
.ev-chat-fab{position:fixed;right:calc(18px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:90;width:58px;height:58px;border-radius:50%;border:0;background:var(--ev-whatsapp);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.ev-chat-fab:hover{background:var(--ev-whatsapp-hover)}
.ev-chat-fab[hidden]{display:none}
.ev-chat-win{position:fixed;right:calc(18px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:91;width:min(340px,calc(100vw - 36px));background:var(--ev-bg);border:1px solid var(--ev-border);border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.25);overflow:hidden;font-size:14px;color:var(--ev-text)}
.ev-chat-win[hidden]{display:none}
.ev-chat-head{display:flex;align-items:center;gap:12px;padding:16px;background:#075e54;color:#fff}
.ev-chat-avatar{width:42px;height:42px;border-radius:50%;background:#128c7e;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;flex:0 0 auto}
.ev-chat-title{flex:1;display:flex;flex-direction:column;min-width:0}
.ev-chat-title strong{font-size:16px}
.ev-chat-title span{font-size:12px;opacity:.85}
.ev-chat-close{background:rgba(255,255,255,.12);border:0;color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ev-chat-body{padding:16px;background:var(--ev-surface);max-height:300px;overflow-y:auto}
.ev-chat-bubble{background:var(--ev-bg);border:1px solid var(--ev-border);border-radius:12px 12px 12px 4px;padding:12px 14px;line-height:1.5;margin-bottom:12px}
.ev-chat-opts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ev-chat-opt{border:1px solid var(--ev-border);background:var(--ev-bg);color:var(--ev-text);border-radius:999px;padding:8px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ev-chat-opt:hover{border-color:var(--ev-accent)}
.ev-chat-opt[aria-pressed="true"]{background:var(--ev-whatsapp);border-color:var(--ev-whatsapp);color:#fff}
.ev-chat-name-label{display:block;font-size:12px;color:var(--ev-muted)}
.ev-chat-name{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px 12px;border:1px solid var(--ev-border);border-radius:10px;background:var(--ev-bg);color:var(--ev-text);font:inherit;font-size:14px}
.ev-chat-foot{padding:14px 16px 16px;background:var(--ev-bg)}
.ev-chat-start{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:48px;border:0;border-radius:999px;background:var(--ev-whatsapp);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.ev-chat-start:hover{background:var(--ev-whatsapp-hover)}
.ev-chat-fab:focus-visible,.ev-chat-close:focus-visible,.ev-chat-opt:focus-visible,.ev-chat-start:focus-visible{outline:2px solid var(--ev-accent);outline-offset:2px}
/* Product page (phone): the sticky bar already has its own WhatsApp button, so hide the floating one */
@media (max-width:767px){
  body.single-product .ev-chat-fab{display:none}
  /* Checkout (phone): the floating button otherwise sits on top of the Place Order button */
  body.woocommerce-checkout .ev-chat-fab{bottom:92px}
}
