/* Ask Selah widget */
.selah{--cream:#F5F0E8;--ink:#2B2B2B;--terra:#A4553B;--terra-d:#7E3F2B;--line:#D8CEC1;--soft:#5F5A53;font-family:'Inter',system-ui,sans-serif}
.selah *{box-sizing:border-box}
.selah-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.selah-fab{position:fixed;right:24px;bottom:24px;z-index:9998;display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:0 22px 0 12px;border:0;border-radius:999px;background:var(--ink);color:var(--cream);font:inherit;font-size:15px;cursor:pointer;box-shadow:0 14px 34px rgba(43,43,43,.22);transition:transform .4s cubic-bezier(.2,.8,.2,1),box-shadow .4s ease}
.selah-fab:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(43,43,43,.28)}
.selah-fab:focus-visible,.selah-chip:focus-visible,.selah-send:focus-visible,.selah-close:focus-visible{outline:2px solid var(--terra);outline-offset:3px}
.selah-fab img{width:34px;height:34px;object-fit:contain;animation:selah-breathe 3.2s ease-in-out infinite}
.selah-spark{color:#E2A58F;animation:selah-twinkle 3.6s ease-in-out infinite}
.selah.is-open .selah-fab{opacity:0;pointer-events:none}
.selah-panel{position:fixed;right:24px;bottom:24px;z-index:9999;width:400px;max-width:calc(100vw - 32px);height:620px;max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:var(--cream);color:#333;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 30px 70px rgba(43,43,43,.25);animation:selah-in .45s cubic-bezier(.2,.8,.2,1) both}
.selah-panel[hidden]{display:none}
.selah-head{display:flex;align-items:center;gap:14px;padding:16px 16px 16px 20px;background:var(--ink);color:var(--cream)}
.selah-head img{width:44px;height:44px;object-fit:contain}
.selah-titles{flex:1}
.selah-titles h2{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:400;font-size:26px;line-height:1.1}
.selah-titles p{margin:2px 0 0;font-size:12px;letter-spacing:.08em;color:var(--line)}
.selah-close{width:44px;height:44px;border:0;background:transparent;color:var(--cream);cursor:pointer;border-radius:50%}
.selah-close:hover{background:rgba(245,240,232,.1)}
.selah-log{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;font-size:15px;line-height:1.55;overscroll-behavior:contain}
.selah-msg{max-width:86%;padding:12px 16px;animation:selah-rise .35s ease both;word-wrap:break-word}
.selah-bot{align-self:flex-start;background:#fff;border-radius:4px 16px 16px 16px}
.selah-me{align-self:flex-end;background:var(--terra);color:#fff;border-radius:16px 4px 16px 16px}
.selah-bot a{color:var(--terra-d);text-decoration:underline;text-underline-offset:2px}
.selah-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.selah-chip{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--terra);background:transparent;color:var(--terra-d);font:inherit;font-size:14px;cursor:pointer;transition:background .3s ease,color .3s ease}
.selah-chip:hover{background:var(--terra);color:#fff}
.selah-typing{display:inline-flex;gap:5px;align-items:center;padding:16px 18px}
.selah-typing span{width:7px;height:7px;border-radius:50%;background:#B9AE9F;animation:selah-dot 1.2s ease-in-out infinite}
.selah-typing span:nth-child(2){animation-delay:.15s}.selah-typing span:nth-child(3){animation-delay:.3s}
.selah-form{display:flex;align-items:flex-end;gap:10px;padding:12px 14px;border-top:1px solid var(--line);background:#fff}
.selah-form textarea{flex:1;min-height:44px;max-height:120px;padding:11px 4px;border:0;background:transparent;resize:none;font:inherit;font-size:16px;color:#333;line-height:1.4;outline:none}
.selah-send{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--terra);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .3s ease}
.selah-send:hover{background:var(--terra-d)}
.selah-foot{margin:0;padding:8px 16px 12px;background:#fff;font-size:12px;line-height:1.5;color:var(--soft);text-align:center}
.selah-foot a{color:var(--terra-d)}
.selah-foot span{font-size:11px;color:#8A8277}
@keyframes selah-in{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}
@keyframes selah-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes selah-dot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-5px);opacity:1}}
@keyframes selah-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes selah-twinkle{0%,100%{opacity:.4;transform:scale(.8)}50%{opacity:1;transform:scale(1.1) rotate(45deg)}}
@media (max-width:600px){
.selah-fab{right:14px;bottom:14px;width:54px;height:54px;min-height:0;padding:0;justify-content:center;gap:0}
.selah-fab img{width:36px;height:36px}
.selah-fab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.selah-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}
}
@media (prefers-reduced-motion:reduce){.selah *,.selah-panel{animation:none!important;transition:none!important}}
