/*
 * Sacola da Black 11.11 (inc/gaveta-black.php): o board "Sacola · order bump" do design do dono, com as medidas dele.
 * Solto, só enquanto a home for a da Black. Cores: rosa #E8478D, rosa texto #B0285F, rosa claro #FCE6EF, preto #111.
 * Sobe pelo painel de sempre da gaveta (xoo-wsc-*); aqui só o interior.
 */
.xoo-wsc-container.sb{--sb-ac:#E8478D;--sb-ac2:#B0285F;--sb-cl:#FCE6EF;font-family:Inter,system-ui,sans-serif;color:#111}
.xoo-wsc-container.sb ::selection{background:#FCE6EF;color:#111}
.sb .xoo-wsc-body.sb-corpo{display:block;padding:0 0 18px;gap:0;scrollbar-width:thin;scrollbar-color:#E8C2D3 transparent}

/* topo */
.sb .sb-topo{display:flex;align-items:center;justify-content:space-between;padding:16px 18px}
.sb .sb-topo b{font:800 18px/1.2 Inter,sans-serif;letter-spacing:-.01em}
.sb .sb-topo em{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-weight:400;color:var(--sb-ac)}
.sb .sb-x{display:inline-flex;width:40px;height:40px;border-radius:99px;background:#F2F2F2;border:0;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}
.sb .sb-x:hover{background:#E6E6E6}
.sb .sb-x svg{width:16px;height:16px;fill:none;stroke:#111;stroke-width:2;stroke-linecap:round}

/* vagas e contagem */
.sb .sb-esc{margin:0 18px;background:#111;color:#fff;border-radius:16px;padding:14px 16px}
.sb .sb-esc-l{display:flex;justify-content:space-between;align-items:center;gap:8px;font:700 13px/1.3 Inter,sans-serif}
.sb .sb-esc-l > span:first-child b{color:var(--sb-ac);font-size:18px;font-weight:900}
.sb .sb-esc-t{font-size:12px;font-weight:400;color:#BBB;white-space:nowrap}
.sb .sb-esc-t b{background:var(--sb-ac);color:#fff;font-weight:800;padding:3px 7px;border-radius:6px;font-variant-numeric:tabular-nums}
.sb .sb-trilho{height:8px;background:#333;border-radius:99px;margin-top:10px;overflow:hidden}
.sb .sb-trilho i{display:block;height:100%;background:var(--sb-ac);border-radius:99px;transition:width .9s cubic-bezier(.22,1,.36,1)}
/* a vaga que cai: o número sai para cima e o novo entra de baixo, com um brilho (gaveta-black.js, classe cai) */
.sb [data-vagas-n]{display:inline-block;font-variant-numeric:tabular-nums}
.sb [data-vagas-n].cai{animation:sb-vaga .7s cubic-bezier(.22,1,.36,1)}
@keyframes sb-vaga{0%{transform:translateY(-70%);opacity:0;filter:blur(2px)}55%{transform:translateY(8%);opacity:1;filter:none;text-shadow:0 0 12px var(--sb-ac)}100%{transform:none;text-shadow:none}}
@media (prefers-reduced-motion:reduce){.sb [data-vagas-n].cai{animation:none}.sb .sb-trilho i{transition:none}}
.sb .sb-esc p{margin:8px 0 0;font:400 11.5px/1.35 Inter,sans-serif;color:#BBB}

/* nécessaire */
.sb .sb-nec{margin:12px 18px 0;background:var(--sb-cl);border-radius:16px;padding:12px 14px;display:flex;gap:12px;align-items:center}
.sb .sb-nec img{width:74px;height:56px;object-fit:contain;background:#fff;border-radius:10px;flex-shrink:0}
.sb .sb-nec > div{flex:1;min-width:0}
.sb .sb-nec p{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0;font:700 13.5px/1.3 Inter,sans-serif;color:#4A2236}
.sb .sb-nec p b{font-weight:900;color:var(--sb-ac2)}
.sb .sb-seg{display:flex;gap:6px;margin-top:10px}
.sb .sb-seg i{flex:1;height:8px;border-radius:99px;background:#fff;transition:background .4s ease}
.sb .sb-seg i.on{background:var(--sb-ac)}

/* itens */
.sb .sb-itens{margin:16px 18px 0;display:flex;flex-direction:column;gap:14px}
.sb .sb-item{display:flex;gap:12px;align-items:center;padding:0;border:0;background:none}
.sb .sb-item figure{margin:0;width:80px;height:80px;flex-shrink:0;background:var(--sb-cl);border-radius:14px;display:grid;place-items:center;overflow:hidden}
.sb .sb-item figure img{width:100%;height:100%;object-fit:contain}
.sb .sb-item-m{flex:1;min-width:0;display:flex;flex-direction:column}
.sb .sb-item-m b{font:800 15px/1.25 Inter,sans-serif}
.sb .sb-item-m span{font:400 12px/1.35 Inter,sans-serif;color:#666}
.sb .sb-item-m .sb-de{margin-top:4px;font-size:12.5px;color:#8A8A8A}
.sb .sb-item-m s,.sb .sb-tot s,.sb .sb-bump-p s{text-decoration-color:var(--sb-ac);text-decoration-thickness:2px}
.sb .sb-item-p{text-align:right;display:flex;flex-direction:column;align-items:flex-end}
.sb .sb-item-p small{font:700 10.5px/1.2 Inter,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--sb-ac2)}
.sb .sb-item-p strong{font:900 20px/1.15 Inter,sans-serif;font-variant-numeric:tabular-nums}
.sb .sb-rm{margin-top:4px;background:none;border:0;padding:2px 0;font:500 11.5px/1 Inter,sans-serif;color:#8A8A8A;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sb .sb-rm:hover{color:#111}
.sb .sb-vazio{margin:16px 18px 0;font:400 14px/1.5 Inter,sans-serif;color:#555}

/* completar a nécessaire */
.sb .sb-up{margin:16px 18px 0;border:2px dashed var(--sb-ac);border-radius:16px;padding:14px}
.sb .sb-up small{display:block;font:800 10.5px/1.3 Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--sb-ac2)}
.sb .sb-up > b{display:block;margin-top:2px;font:800 15px/1.3 Inter,sans-serif}
.sb .sb-up > p{margin:2px 0 0;font:400 12px/1.4 Inter,sans-serif;color:#666}
.sb .sb-sugs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.sb .sb-sug{background:#fff;border:1px solid #F0E0E8;border-radius:12px;padding:8px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.sb .sb-sug img{width:64px;height:64px;object-fit:contain}
.sb .sb-sug b{font:800 11.5px/1.15 Inter,sans-serif}
.sb .sb-sug span{font:900 13px/1.2 Inter,sans-serif;font-variant-numeric:tabular-nums}
.sb .sb-add{width:100%;background:#111;color:#fff;border:0;border-radius:8px;font:800 11.5px/1 Inter,sans-serif;padding:9px 4px;cursor:pointer;transition:background .2s}
.sb .sb-add:hover{background:#333}
.sb .sb-add.indo{opacity:.6;pointer-events:none}
.sb .sb-up a{display:block;text-align:center;margin-top:10px;font:700 12.5px/1.3 Inter,sans-serif;color:var(--sb-ac);text-decoration:none}
.sb .sb-up a:hover{color:#C2306F}

/* order bump */
.sb .sb-bumps{margin:18px 18px 0}
.sb .sb-bumps > b{display:block;font:800 16px/1.3 Inter,sans-serif}
.sb .sb-bumps > p{margin:3px 0 10px;font:400 12.5px/1.4 Inter,sans-serif;color:#666}
.sb .sb-bump{display:flex;gap:12px;align-items:center;border:2px solid #EDEDED;background:#fff;border-radius:16px;padding:12px;cursor:pointer;transition:border-color .25s,background .25s}
.sb .sb-bump + .sb-bump{margin-top:10px}
.sb .sb-bump.on{border-color:var(--sb-ac);background:#FFF5F9}
.sb .sb-bump input{width:22px;height:22px;accent-color:var(--sb-ac);flex-shrink:0;margin:0;cursor:pointer}
.sb .sb-bump img{width:56px;height:56px;border-radius:12px;background:#fff;border:1px solid #F0E0E8;object-fit:contain;flex-shrink:0}
.sb .sb-bump-t{flex:1;min-width:0;display:flex;flex-direction:column}
.sb .sb-bump-t b{font:800 14.5px/1.25 Inter,sans-serif}
.sb .sb-bump-p{display:flex;align-items:baseline;gap:8px;margin-top:3px}
.sb .sb-bump-p strong{font:900 19px/1 Inter,sans-serif;font-variant-numeric:tabular-nums}
.sb .sb-bump-p s{font:400 12.5px/1 Inter,sans-serif;color:#9A9A9A}
.sb .sb-bump-s{margin-top:3px;font:700 12px/1.3 Inter,sans-serif;color:#777}
.sb .sb-bump.on .sb-bump-s{color:var(--sb-ac2)}
.sb .sb-off{background:var(--sb-ac);color:#fff;font:900 13px/1 Inter,sans-serif;padding:6px 7px;border-radius:99px;flex-shrink:0}

/* cupom automático */
.sb .sb-cupom{margin:16px 18px 0;background:#F6F6F6;border-radius:14px;padding:13px 14px;display:flex;align-items:center;gap:10px}
.sb .sb-cupom > span{display:inline-flex;width:30px;height:30px;border-radius:99px;background:var(--sb-ac);align-items:center;justify-content:center;flex-shrink:0}
.sb .sb-cupom > span svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sb .sb-cupom > div{flex:1;display:flex;flex-direction:column}
.sb .sb-cupom b{font:800 14px/1.3 Inter,sans-serif}
.sb .sb-cupom small{font:400 12px/1.35 Inter,sans-serif;color:#666}
.sb .sb-cupom em{font:900 14px/1 Inter,sans-serif;font-style:normal;color:var(--sb-ac2)}

/* totais */
.sb .sb-tot{margin:16px 18px 0;display:flex;flex-direction:column;gap:8px;font:400 14px/1.3 Inter,sans-serif;font-variant-numeric:tabular-nums}
.sb .sb-tot p{display:flex;justify-content:space-between;gap:12px;margin:0}
.sb .sb-tot p > span:first-child{color:#555}
.sb .sb-tot s{color:#8A8A8A}
.sb .sb-tot em{font-style:normal;font-weight:700;color:var(--sb-ac2)}
.sb .sb-gratis{font-weight:800;color:#1F7A4D}
.sb .sb-total{align-items:baseline;border-top:1px solid #EEE;padding-top:12px;margin-top:4px!important}
.sb .sb-total > span:first-child{font-size:16px;font-weight:800;color:#111!important}
.sb .sb-total strong{font:900 28px/1 Inter,sans-serif;letter-spacing:-.04em}
.sb .sb-eco{margin:12px 18px 0;background:#111;color:#fff;border-radius:12px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.sb .sb-eco span{font:600 13px/1.3 Inter,sans-serif}
.sb .sb-eco strong{font:900 20px/1 Inter,sans-serif;color:var(--sb-ac);font-variant-numeric:tabular-nums}

/* pódio */
.sb .sb-podio{margin:12px 18px 0;display:flex;gap:10px;align-items:center;font:400 12.5px/1.4 Inter,sans-serif;color:#4A2236;background:var(--sb-cl);border-radius:12px;padding:11px 13px}
.sb .sb-podio svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:var(--sb-ac2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* pé */
.sb .xoo-wsc-footer.sb-pe{padding:16px 18px 26px;border-top:1px solid #EEE;background:#fff}
.sb .sb-bt{display:block;text-align:center;background:var(--sb-ac);color:#fff;text-decoration:none;font:900 15.5px/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;padding:19px;border-radius:12px;transition:background .2s,transform .2s}
.sb .sb-bt:hover{background:#C2306F;color:#fff}
.sb .sb-bt:active{transform:scale(.99)}
.sb .sb-pe p{margin:10px 0 0;text-align:center;font:400 12px/1.4 Inter,sans-serif;color:#666}

/* foco do teclado na cor da Black */
.sb a:focus-visible,.sb button:focus-visible,.sb input:focus-visible{outline:2px solid var(--sb-ac);outline-offset:2px}
@media (min-width:768px){.xoo-wsc-modal .xoo-wsc-container.sb{width:420px;max-width:100%}}
/* o item vence a grade antiga da gaveta (.xoo-wsc-product do Side Cart) */
.xoo-wsc-container.sb .xoo-wsc-product.sb-item{display:flex;grid-template-columns:none;padding:0;margin:0;border:0;box-shadow:none;min-height:0}
.sb .sb-item-m .sb-de{white-space:nowrap}
.sb .sb-item-p{flex-shrink:0}
/* sugestões: botões sempre alinhados embaixo */
.sb .sb-sug b{min-height:2.3em;display:flex;align-items:center}
.sb .sb-add{margin-top:auto}

/* botão do checkout enquanto a oferta da B4You é criada */
.sb a.sb-bt.indo{opacity:.75;pointer-events:none;cursor:progress}
