/* Everlit Care: chat + floating helpers, copied 1:1 from the partner site (style.css), scoped to the widgets.
   Our site squares every corner (* {border-radius:0!important}); these rules restore his rounded shapes. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400..800&display=swap');
.chat, .floaters { --accent:#9c6a3c; --accent-soft:#f6eee4; --glow:#f3c98b; --wash:#faf7f3; --ink:#17140f; --ink-2:#4a443d; --ink-3:#807870;
  --shadow-1:0 1px 2px rgba(23,20,15,.04),0 8px 22px rgba(23,20,15,.06); --ease:cubic-bezier(.23,1,.32,1); --drawer:cubic-bezier(.32,.72,0,1);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif; color:var(--ink); }
.chat *, .floaters * { box-sizing:border-box; font-family:inherit; }
.chat-panel, .a11y-panel { -webkit-font-smoothing:antialiased; }
/* Buttons */
.chat .btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius:999px !important; border: 0; cursor: pointer; background: var(--ink); color: #fff; font-size: 16.5px; font-weight: 700; letter-spacing: -.005em; box-shadow: 0 10px 26px -12px rgba(23,20,15,.5); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .6s var(--ease); }
.chat .btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.26) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.chat .btn:active { transform: scale(.98); }
.chat .btn.accent { background: var(--accent); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.chat .btn.ghost { background: var(--wash); color: var(--ink); box-shadow: none; }
.chat .btn.block { width: 100%; }
.chat .input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius:14px !important; border: 0; background: var(--wash); box-shadow: inset 0 0 0 1px rgba(23,20,15,.07); font-size: 16px; font-weight: 500; transition: box-shadow .3s, background .3s; }
.chat .input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* AI chat */
.chat-fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border: 0; border-radius:999px !important; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(23,20,15,.55); transition: transform .2s var(--ease), opacity .2s ease, translate .3s var(--ease); }
.chat-fab svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.7; }
.chat.on .chat-fab { opacity: 0; transform: scale(.8); pointer-events: none; }
body:has(.ev-lifted) .chat-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
.chat-panel { padding: 0; position: fixed; z-index: 75; right: 0; bottom: 0; left: 0; height: min(86vh, 640px); background: #fff; border-radius:24px 24px 0 0 !important; box-shadow: 0 -20px 60px -20px rgba(23,20,15,.35); display: flex; flex-direction: column; transform: translateY(105%); transition: transform .24s var(--ease), visibility 0s .24s; visibility: hidden; }
.chat-panel.open { transform: none; visibility: visible; transition: transform .36s var(--drawer); }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 12px 20px; background: linear-gradient(180deg, var(--accent-soft), #fff); border-radius:24px 24px 0 0 !important; }
.chat-panel header b { display: block; font-size: 17px; font-weight: 800; }
.chat-panel header span { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.chat-panel header span i { width: 8px; height: 8px; border-radius:50% !important; background: #3fa66b; }
.chat-x { width: 38px; height: 38px; border: 0; border-radius:50% !important; background: rgba(255,255,255,.9); font-size: 24px; cursor: pointer; }
.chat-log { flex: 1; overflow: auto; padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chat .msg { max-width: 86%; padding: 10px 14px; border-radius:18px !important; font-size: 14.5px; line-height: 1.5; animation: rise .25s var(--ease) both; overflow-wrap: anywhere; }
.chat .msg.bot { background: var(--wash); border-bottom-left-radius: 6px; align-self: flex-start; }
.chat .msg.me { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.chat .msg a { color: var(--accent); font-weight: 650; }
.chat .msg.typing { display: inline-flex; gap: 4px; padding: 14px; }
.chat .msg.typing i { width: 7px; height: 7px; border-radius:50% !important; background: var(--ink-3); animation: dot 1.2s infinite; }
.chat .msg.typing i:nth-child(2) { animation-delay: .15s; }
.chat .msg.typing i:nth-child(3) { animation-delay: .3s; }
.chat .handoff { display: grid; gap: 8px; max-width: 100%; }
.chat .handoff .input { min-height: 44px; font-size: 14.5px; background: #fff; }
.chat .handoff .btn { min-height: 44px; font-size: 14.5px; }
.chat-quick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius:999px !important; cursor: pointer; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 14px; }
.chat-form .input { min-height: 48px; }
.chat-form .btn { min-height: 48px; width: 48px; padding: 0; }
.chat-form .btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 16px calc(12px + env(safe-area-inset-bottom)); font-size: 11.5px; color: var(--ink-3); }
.chat-human { border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; white-space: nowrap; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@media (min-width: 720px) {
.chat-fab { right: 22px; bottom: 22px; }
.chat-panel { left: auto; right: 22px; bottom: 22px; width: 390px; height: min(640px, calc(100vh - 44px)); border-radius:24px !important; box-shadow: 0 30px 80px -24px rgba(23,20,15,.4); transform: translateY(12px) scale(.97); opacity: 0; transition: transform .18s var(--ease), opacity .18s ease, visibility 0s .18s; }
.chat-panel.open { transform: none; opacity: 1; transition: transform .28s var(--ease), opacity .2s ease; }
}
/* Floating helpers */
.floaters > button, .floaters > a { position: fixed; z-index: 49; transition: translate .3s var(--ease), opacity .25s ease, transform .25s var(--ease); }
.fl-a11y, .fl-top { left: 14px; width: 48px; height: 48px; border-radius:50% !important; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(23,20,15,.45); }
.fl-a11y { bottom: calc(14px + env(safe-area-inset-bottom)); background: var(--ink); }
.fl-a11y svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.fl-a11y svg circle { fill: #fff; stroke: none; }
.fl-top { bottom: calc(72px + env(safe-area-inset-bottom)); background: #fff; opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none; }
.fl-top.on { opacity: 1; transform: none; pointer-events: auto; }
.fl-top svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; }
.fl-wa { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius:50% !important; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(37,211,102,.6); }
.fl-wa svg { width: 30px; height: 30px; }
.fl-wa-tip { position: absolute; right: 62px; top: 50%; translate: 0 -50%; white-space: nowrap; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; padding: 8px 12px; border-radius:12px !important; box-shadow: var(--shadow-1); opacity: 0; transition: opacity .3s; pointer-events: none; }
@media (hover: hover) {
.fl-wa:hover .fl-wa-tip { opacity: 1; }
}
body:has(.ev-lifted) .fl-a11y { bottom: calc(86px + env(safe-area-inset-bottom)); }
body:has(.ev-lifted) .fl-top { bottom: calc(144px + env(safe-area-inset-bottom)); }
body:has(.ev-lifted) .fl-wa { bottom: calc(148px + env(safe-area-inset-bottom)); }
body:has(.ev-lifted) .chat-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
.a11y-panel { position: fixed; left: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 76; width: min(300px, calc(100vw - 28px)); background: #fff; border-radius:20px !important; box-shadow: 0 24px 60px -20px rgba(23,20,15,.4); padding: 14px 16px; display: grid; gap: 8px; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; }
.a11y-head b { font-size: 16px; font-weight: 800; }
.a11y-x { border: 0; background: var(--wash); width: 32px; height: 32px; border-radius:50% !important; font-size: 20px; cursor: pointer; }
.a11y-size { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 650; }
.a11y-size div { display: flex; align-items: center; gap: 6px; }
.a11y-size button { border: 0; background: var(--wash); border-radius:10px !important; min-width: 40px; height: 36px; font-weight: 800; cursor: pointer; }
.a11y-size output { min-width: 44px; text-align: center; font-size: 13px; }
.a11y-panel label { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 8px 10px; background: var(--wash); border-radius:12px !important; cursor: pointer; }
.a11y-panel input { accent-color: var(--accent); width: 18px; height: 18px; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding-top: 4px; }
.a11y-foot a { color: var(--accent); font-weight: 650; }
.a11y-reset { border: 0; background: none; font-weight: 700; text-decoration: underline; cursor: pointer; }
html.a11y-contrast { --ink-2: #1a1a1a; --ink-3: #333; --accent: #6b3f17; }
html.a11y-contrast body { color: #000; }
html.a11y-contrast .muted, html.a11y-contrast .lede, html.a11y-contrast p { color: #111 !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius:4px !important; }
html.a11y-spacing body { letter-spacing: .04em; word-spacing: .12em; line-height: 1.9; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L9.5 21z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
.chat .handoff .wa-btn { background: #25d366; box-shadow: none; }
.chat .handoff .or { font-size: 12.5px; color: var(--ink-3); text-align: center; }
/* lift above our sticky bars (product page bar, homepage mobile CTA, editor buy bar) */
/* the lift is a translate (GPU), not a bottom change, so sliding over a sticky bar never re-lays out the page */
.chat-fab{bottom:calc(14px + env(safe-area-inset-bottom))}
.fl-wa{bottom:calc(76px + env(safe-area-inset-bottom))}
.fl-a11y{bottom:calc(14px + env(safe-area-inset-bottom))}
.fl-top{bottom:calc(72px + env(safe-area-inset-bottom))}
.chat-fab,.fl-wa,.fl-a11y,.fl-top{translate:0 calc(-1 * var(--care-lift-m,0px))}
@media (min-width:720px){
  .chat-fab{bottom:22px}
  .fl-wa{bottom:84px}
  .fl-a11y{bottom:22px}
  .fl-top{bottom:80px}
  .chat-fab,.fl-wa,.fl-a11y,.fl-top{translate:0 calc(-1 * var(--care-lift,0px))}
}
@media (prefers-reduced-motion:reduce){
  .chat-panel,.chat-panel.open{transition:opacity .2s ease,visibility 0s;transform:none}
  .chat-panel:not(.open){opacity:0}
  .chat .msg{animation:none}
  .floaters > button,.floaters > a,.chat-fab{transition:opacity .2s ease}
}
.chat-panel{z-index:160}
.a11y-panel{z-index:160}

.floaters [hidden], .chat [hidden]{display:none!important}

/* no floating WhatsApp button: WhatsApp and email are offered inside the chat when a person is needed */
.fl-wa{display:none!important}
.chat .handoff .mail-btn{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.chat .handoff a.wa-btn{color:#fff!important;text-decoration:none!important;background:#25d366!important}
.chat .handoff a.mail-btn{color:var(--ink)!important;text-decoration:none!important}
/* close button: a drawn cross, centred exactly (the × glyph sits low in this font) */
.chat .chat-x{position:relative;font-size:0!important;line-height:0;padding:0;display:block}
.chat .chat-x::before,.chat .chat-x::after{content:'';position:absolute;left:50%;top:50%;width:16px;height:2px;background:var(--ink);border-radius:2px!important;transform:translate(-50%,-50%) rotate(45deg)}
.chat .chat-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
.a11y-x{position:relative;font-size:0!important;line-height:0;padding:0}
.a11y-x::before,.a11y-x::after{content:'';position:absolute;left:50%;top:50%;width:13px;height:2px;background:var(--ink);border-radius:2px!important;transform:translate(-50%,-50%) rotate(45deg)}
.a11y-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
