/* bfpconcierge — front widget. BFP tokens (shared w/ Carrito & Checkout).
   All selectors scoped under #bfpc-root to avoid theme clashes. */
#bfpc-root{
  --bfpc-brand:#16a34a; --bfpc-brand-d:#15803d; --bfpc-green-l:#dcfce7;
  --bfpc-accent:#ea580c; --bfpc-ink:#1f2937; --bfpc-muted:#6b7280; --bfpc-line:#e8eaed;
  --bfpc-shadow:0 1px 2px rgba(16,24,40,.06),0 18px 40px -20px rgba(16,24,40,.30);
  --bfpc-btn-shadow:0 6px 16px -6px rgba(22,163,74,.6);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;
}
#bfpc-root *{box-sizing:border-box}

#bfpc-launch{position:fixed;right:20px;bottom:20px;z-index:9998;width:60px;height:60px;border-radius:50%;
  border:0;background:var(--bfpc-brand);color:#fff;cursor:pointer;box-shadow:var(--bfpc-shadow);
  display:flex;align-items:center;justify-content:center;font-size:26px;transition:.2s}
#bfpc-launch:hover{background:var(--bfpc-brand-d);transform:scale(1.05)}
#bfpc-launch .bfpc-dot{position:absolute;top:3px;right:3px;width:13px;height:13px;background:var(--bfpc-accent);
  border:2px solid #fff;border-radius:50%}

#bfpc-panel{position:fixed;right:20px;bottom:20px;z-index:9999;width:380px;max-width:calc(100vw - 24px);
  height:660px;max-height:calc(100vh - 40px);background:#fff;border-radius:18px;box-shadow:var(--bfpc-shadow);
  display:flex;flex-direction:column;overflow:hidden;animation:bfpc-rise .22s ease}
@keyframes bfpc-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

#bfpc-root .bfpc-head{background:linear-gradient(135deg,var(--bfpc-brand),var(--bfpc-brand-d));color:#fff;
  padding:13px 15px;display:flex;align-items:center;gap:11px}
#bfpc-root .bfpc-av{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;
  align-items:center;justify-content:center;font-size:20px}
#bfpc-root .bfpc-nm{font-weight:800;font-size:14.5px;letter-spacing:-.01em}
#bfpc-root .bfpc-st{font-size:11.5px;opacity:.92;display:flex;align-items:center;gap:5px}
#bfpc-root .bfpc-st i{width:8px;height:8px;border-radius:50%;background:#7ef0c4;display:inline-block}
#bfpc-root .bfpc-x{margin-left:auto;background:transparent;border:0;color:#fff;font-size:24px;cursor:pointer;
  line-height:1;opacity:.85}
#bfpc-root .bfpc-x:hover{opacity:1}

#bfpc-root .bfpc-body{flex:1;overflow-y:auto;padding:15px;background:#fafbfc;display:flex;flex-direction:column;gap:11px}
#bfpc-root .bfpc-row{display:flex;gap:8px}
#bfpc-root .bfpc-row.u{justify-content:flex-end}
#bfpc-root .bfpc-bub{padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.45;max-width:84%;
  white-space:pre-wrap;word-wrap:break-word}
#bfpc-root .bfpc-row.b .bfpc-bub{background:#fff;border:1px solid var(--bfpc-line);border-bottom-left-radius:4px;color:var(--bfpc-ink)}
#bfpc-root .bfpc-row.u .bfpc-bub{background:var(--bfpc-brand);color:#fff;border-bottom-right-radius:4px;font-weight:500}
#bfpc-root .bfpc-bav{width:28px;height:28px;border-radius:50%;background:var(--bfpc-green-l);flex:none;display:flex;
  align-items:center;justify-content:center;font-size:15px;align-self:flex-end}

#bfpc-root .bfpc-cards{display:flex;flex-direction:column;gap:9px;max-width:86%}
#bfpc-root .bfpc-card{background:#fff;border:1px solid var(--bfpc-line);border-radius:13px;padding:9px;display:flex;
  gap:10px;align-items:center;text-decoration:none;color:inherit}
#bfpc-root .bfpc-card:hover{border-color:var(--bfpc-brand)}
#bfpc-root .bfpc-cinfo{flex:1;min-width:0;text-decoration:none;color:inherit;display:block}
#bfpc-root .bfpc-cinfo:hover{text-decoration:none}
#bfpc-root .bfpc-add{flex:none;align-self:center;border:1.5px solid var(--bfpc-brand);background:var(--bfpc-brand);
  color:#fff;font-weight:800;font-size:11.5px;padding:7px 11px;border-radius:9px;cursor:pointer;white-space:nowrap}
#bfpc-root .bfpc-add:hover{background:var(--bfpc-brand-d);border-color:var(--bfpc-brand-d)}
#bfpc-root .bfpc-add:disabled{opacity:.75;cursor:default}
#bfpc-root .bfpc-add.bfpc-added{background:#fff;color:var(--bfpc-brand-d);border-color:var(--bfpc-green-l)}
#bfpc-root .bfpc-img{width:50px;height:50px;border-radius:9px;flex:none;background:#eef6f3 center/cover;display:flex;
  align-items:center;justify-content:center;font-size:24px;overflow:hidden}
#bfpc-root .bfpc-img img{width:100%;height:100%;object-fit:cover}
#bfpc-root .bfpc-ti{font-size:12.5px;font-weight:700;line-height:1.25}
#bfpc-root .bfpc-mt{font-size:11px;color:var(--bfpc-muted);margin-top:1px}
#bfpc-root .bfpc-pr{font-size:13.5px;font-weight:800;color:var(--bfpc-brand-d);margin-top:2px}
#bfpc-root .bfpc-pr s{color:var(--bfpc-muted);font-weight:500;font-size:11px;margin-right:5px}
#bfpc-root .bfpc-stk{display:inline-flex;align-items:center;gap:3px;font-size:10.5px;font-weight:800;padding:2px 8px;
  border-radius:999px;margin-top:3px}
#bfpc-root .bfpc-stk.ok{background:var(--bfpc-green-l);color:#166534}
#bfpc-root .bfpc-stk.no{background:#fee2e2;color:#991b1b}

#bfpc-root .bfpc-ship{background:linear-gradient(180deg,#fff,#fbfdfb);border:1.5px solid var(--bfpc-green-l);
  border-radius:13px;padding:11px 13px;max-width:86%;font-size:12px;font-weight:700;color:var(--bfpc-brand-d)}
#bfpc-root .bfpc-ship .t{height:8px;background:#eef1f4;border-radius:999px;margin-top:8px;overflow:hidden}
#bfpc-root .bfpc-ship .t>i{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#16a34a);border-radius:999px}

/* Ración + comparador de coste/ración */
#bfpc-root .bfpc-racion{background:#fff;border:1.5px solid var(--bfpc-green-l);border-radius:13px;
  padding:10px 12px;max-width:88%;font-size:12.5px;color:var(--bfpc-ink)}
#bfpc-root .bfpc-rhd{font-weight:800;color:var(--bfpc-brand-d);margin-bottom:7px;font-size:13px;display:flex;align-items:center;gap:7px}
#bfpc-root .bfpc-ricon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;
  border-radius:50%;background:var(--bfpc-brand);color:#fff;font-size:12px;font-weight:800;flex:none}
#bfpc-root .bfpc-rrow,#bfpc-root .bfpc-crow{display:flex;align-items:center;gap:8px;padding:6px 8px;
  border-radius:8px;margin:3px 0;background:#f6faf8}
#bfpc-root .bfpc-rbest{background:var(--bfpc-green-l);font-weight:700}
#bfpc-root .bfpc-rkg,#bfpc-root .bfpc-cname{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bfpc-root .bfpc-rday,#bfpc-root .bfpc-cday{font-weight:800;color:var(--bfpc-brand-d);white-space:nowrap}
#bfpc-root .bfpc-rdur,#bfpc-root .bfpc-cdur{color:var(--bfpc-muted);font-size:11px;white-space:nowrap}
#bfpc-root .bfpc-cmuted{color:var(--bfpc-muted);font-size:11px}
#bfpc-root .bfpc-rtag{background:var(--bfpc-brand);color:#fff;font-size:10px;font-weight:800;
  padding:1px 7px;border-radius:999px}
#bfpc-root .bfpc-rcomp{display:block;width:100%;margin-top:8px;border:1.5px dashed var(--bfpc-brand);
  background:#f6faf8;color:var(--bfpc-brand-d);font-weight:700;font-size:12px;font-family:inherit;
  padding:8px 10px;border-radius:10px;cursor:pointer;text-align:center;transition:background .15s,border-color .15s}
#bfpc-root .bfpc-rcomp:hover{background:var(--bfpc-green-l);border-style:solid}
#bfpc-root .bfpc-rcomp:disabled{opacity:.7;cursor:default}

#bfpc-root .bfpc-mandate{background:#fff;border:2px solid var(--bfpc-brand);border-radius:14px;padding:12px;max-width:86%}
#bfpc-root .bfpc-mhd{display:flex;align-items:center;gap:7px;font-weight:800;font-size:13px;color:var(--bfpc-brand-d);margin-bottom:6px}
#bfpc-root .bfpc-mline{display:flex;justify-content:space-between;font-size:13px;padding:6px 0;border-bottom:1px dashed var(--bfpc-line)}
#bfpc-root .bfpc-mline.bfpc-mtot{font-weight:800;border-bottom:none;padding-top:8px;font-size:15px}
#bfpc-root .bfpc-lock{font-size:11px;color:var(--bfpc-muted);display:flex;align-items:center;gap:4px;margin:6px 0 10px}
#bfpc-root .bfpc-go{width:100%;border:0;background:var(--bfpc-brand);color:#fff;font-weight:800;font-size:14px;
  padding:11px;border-radius:11px;cursor:pointer;box-shadow:var(--bfpc-btn-shadow)}
#bfpc-root .bfpc-go:hover{background:var(--bfpc-brand-d)}

#bfpc-root .bfpc-typing{display:flex;gap:4px;padding:11px 13px}
#bfpc-root .bfpc-typing span{width:7px;height:7px;border-radius:50%;background:#c4c9cf;animation:bfpc-bln 1s infinite}
#bfpc-root .bfpc-typing span:nth-child(2){animation-delay:.15s}
#bfpc-root .bfpc-typing span:nth-child(3){animation-delay:.3s}
@keyframes bfpc-bln{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

#bfpc-root .bfpc-input{display:flex;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid var(--bfpc-line)}
#bfpc-root .bfpc-input input{flex:1;border:1.5px solid var(--bfpc-line);border-radius:999px;padding:10px 14px;
  font-size:14px;outline:none;color:var(--bfpc-ink)}
#bfpc-root .bfpc-input input:focus{border-color:var(--bfpc-brand)}
#bfpc-root .bfpc-send{width:42px;height:42px;border-radius:50%;border:0;background:var(--bfpc-brand);color:#fff;
  cursor:pointer;flex:none;font-size:17px;box-shadow:var(--bfpc-btn-shadow)}
#bfpc-root .bfpc-send:hover{background:var(--bfpc-brand-d)}
#bfpc-root .bfpc-disc{font-size:10px;color:var(--bfpc-muted);text-align:center;padding:6px 0;background:#fff}

@media(max-width:480px){
  #bfpc-panel{right:0;bottom:0;width:100vw;height:100vh;max-height:100vh;border-radius:0}
}
