/* Asistentul „Nea Petrilă” — independent de temă */
.bpc-chat{--c-ink:#1b1a19;--c-ink2:#2a2927;--c-bg:#faf8f4;--c-line:#e6e1d8;--c-gold:#b99b6b;--c-gold-h:#cbb184;--c-text:#2b2a28;--c-mute:#6f6a63;
  position:fixed;right:24px;bottom:24px;z-index:9990;font-family:inherit;font-size:15px;line-height:1.45;color:var(--c-text)}
.bpc-chat *,.bpc-chat *::before,.bpc-chat *::after{box-sizing:border-box}
.bpc-chat--stack{bottom:96px}
@media (max-width:639px){.bpc-chat{right:12px;bottom:16px}.bpc-chat--stack{bottom:84px}}
.bpc-chat__btn{display:flex;align-items:center;gap:10px;min-height:56px;margin-left:auto;padding:5px 18px 5px 5px;border:0;border-radius:999px;background:var(--c-ink);color:#fff;font:inherit;font-weight:600;font-size:14px;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.25);transition:transform .2s}
.bpc-chat__btn:hover{transform:translateY(-2px)}
.bpc-chat__btn:focus-visible{outline:2px solid var(--c-gold);outline-offset:3px}
.bpc-chat__ava{width:46px;height:46px;border-radius:50%;display:block}
.bpc-chat__btn svg{margin-left:10px}
@media (max-width:639px){.bpc-chat__btn{padding:4px;min-height:52px}.bpc-chat__btn span{display:none}.bpc-chat__ava{width:44px;height:44px}}
.bpc-chat.is-open .bpc-chat__btn{display:none}
.bpc-chat__panel{width:min(380px,calc(100vw - 24px));height:min(600px,calc(100vh - 140px));display:flex;flex-direction:column;background:var(--c-bg);border:1px solid var(--c-line);border-radius:14px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.28)}
.bpc-chat__panel[hidden]{display:none}
@media (max-width:639px){.bpc-chat.is-open{right:0;left:0;bottom:0}.bpc-chat__panel{width:100%;height:min(88vh,640px);border-radius:14px 14px 0 0}}
.bpc-chat__head{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;background:var(--c-ink);color:#fff}
.bpc-chat__head > div{flex:1;min-width:0}
.bpc-chat__head-ava{width:44px;height:44px;border-radius:50%;flex:none}
.bpc-chat__title{margin:0;font-family:"Playfair Display",Georgia,serif;font-size:18px;color:#fff}
.bpc-chat__sub{margin:0;font-size:12px;color:rgba(255,255,255,.65)}
.bpc-chat__x{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:16px;cursor:pointer}
.bpc-chat__x:hover{background:rgba(255,255,255,.12)}
.bpc-chat__log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.bpc-chat__row{display:flex;align-items:flex-end;gap:8px;max-width:92%}
.bpc-chat__mini{width:28px;height:28px;border-radius:50%;flex:none}
.bpc-chat__msg{padding:10px 12px;border-radius:12px;white-space:pre-line;word-wrap:break-word;max-width:88%}
.bpc-chat__row .bpc-chat__msg{max-width:100%}
.bpc-chat__msg--bot{background:#fff;border:1px solid var(--c-line);border-bottom-left-radius:4px;align-self:flex-start}
.bpc-chat__msg--me{background:var(--c-ink2);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.bpc-chat__msg a{color:#7d6640;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.bpc-chat__note{margin:0 0 6px;font-size:12px;color:var(--c-mute)}
.bpc-chat__typing{color:var(--c-mute);letter-spacing:3px}
.bpc-chat__links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;white-space:normal}
.bpc-chat__msg .bpc-chat__link{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:999px;background:var(--c-ink);color:#fff;text-decoration:none;font-size:13px}
.bpc-chat__msg .bpc-chat__link:hover{background:var(--c-ink2)}
.bpc-chat__cards{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px;white-space:normal}
.bpc-chat__cards a{display:flex;gap:10px;align-items:center;padding:6px;border:1px solid var(--c-line);border-radius:8px;text-decoration:none!important;color:var(--c-text)!important;font-weight:400!important}
.bpc-chat__cards a:hover{border-color:var(--c-gold)}
.bpc-chat__cards img{width:44px;height:44px;border-radius:6px;object-fit:cover;flex:none}
.bpc-chat__card-t{display:grid;min-width:0}
.bpc-chat__card-t strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bpc-chat__card-t small{font-size:12px;color:var(--c-mute)}
.bpc-chat__quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px}
.bpc-chat__quick[hidden]{display:none}
.bpc-chat__chip{min-height:36px;padding:0 12px;border:1px solid var(--c-line);border-radius:999px;background:#fff;color:var(--c-text);font:inherit;font-size:13px;cursor:pointer}
.bpc-chat__chip:hover{border-color:var(--c-gold)}
.bpc-chat__form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--c-line);background:#fff}
.bpc-chat__form input{flex:1;min-width:0;height:44px;padding:0 12px;border:1px solid var(--c-line);border-radius:8px;font:inherit;font-size:16px;background:var(--c-bg);color:var(--c-text)}
.bpc-chat__form input:focus{outline:none;border-color:var(--c-gold)}
.bpc-chat__form button{width:44px;height:44px;border:0;border-radius:8px;background:var(--c-gold);color:var(--c-ink);font-size:16px;cursor:pointer}
.bpc-chat__form button:hover{background:var(--c-gold-h)}
.bpc-chat__foot{margin:0;padding:0 12px 10px;background:#fff;font-size:11px;color:var(--c-mute)}
.bpc-chat__foot a{color:var(--c-mute)}
.bpc-chat__sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media (prefers-reduced-motion:reduce){.bpc-chat *{transition:none!important}}
.bpc-chat__voice{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:18px;cursor:pointer}
.bpc-chat__voice[hidden],.bpc-chat__mic[hidden]{display:none}
.bpc-chat__voice:hover,.bpc-chat__voice[aria-pressed=true]{background:rgba(255,255,255,.14)}
.bpc-chat__form .bpc-chat__mic{background:#fff;border:1px solid var(--c-line);color:var(--c-text)}
.bpc-chat__form .bpc-chat__mic.is-on{background:#c0392b;border-color:#c0392b;color:#fff;animation:bpc-pulse 1.2s infinite}
.bpc-chat.is-speaking .bpc-chat__head-ava{animation:bpc-talk .35s ease-in-out infinite alternate}
@keyframes bpc-talk{from{transform:scale(1) rotate(-2deg)}to{transform:scale(1.07) rotate(2deg)}}
@keyframes bpc-pulse{0%,100%{box-shadow:0 0 0 0 rgba(192,57,43,.5)}50%{box-shadow:0 0 0 6px rgba(192,57,43,0)}}
@media (prefers-reduced-motion:reduce){.bpc-chat.is-speaking .bpc-chat__head-ava,.bpc-chat__mic.is-on{animation:none}}
