/* Carrinho lateral (drawer) - Box Play Brasil */
#bpb-cart-root, #bpb-cart-root * { box-sizing: border-box; }
#bpb-cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 2147483000;
}
#bpb-cart-overlay.open { opacity: 1; visibility: visible; }
#bpb-cart-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 92vw;
  background: #fff; color: #1c1c1c; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 2147483001; box-shadow: -8px 0 40px rgba(0,0,0,.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#bpb-cart-overlay.open #bpb-cart-panel { transform: translateX(0); }
#bpb-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid #ededed;
}
#bpb-cart-header .bpb-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #222; }
#bpb-cart-header .bpb-title svg { width: 22px; height: 22px; stroke: #333; }
#bpb-cart-close { background: none; border: 0; cursor: pointer; padding: 6px; line-height: 0; color: #444; border-radius: 8px; }
#bpb-cart-close:hover { background: #f3f3f3; }
#bpb-cart-close svg { width: 22px; height: 22px; }
#bpb-cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
#bpb-cart-empty { padding: 48px 8px; text-align: center; color: #888; font-size: 15px; }
.bpb-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #f0f0f0; }
.bpb-item__img { width: 74px; height: 74px; border-radius: 10px; object-fit: contain; background: #f5f5f5; flex-shrink: 0; padding: 4px; }
.bpb-item__info { flex: 1; min-width: 0; }
.bpb-item__title { font-size: 14px; line-height: 1.35; color: #222; margin: 0 0 6px; font-weight: 500; }
.bpb-item__price { font-size: 15px; font-weight: 700; color: #111; }
.bpb-item__compare { font-size: 13px; color: #9a9a9a; text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.bpb-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.bpb-qty { display: inline-flex; align-items: center; border: 1px solid #e2e2e2; border-radius: 8px; overflow: hidden; }
.bpb-qty button { width: 30px; height: 30px; border: 0; background: #fff; cursor: pointer; font-size: 17px; color: #444; line-height: 1; }
.bpb-qty button:hover { background: #f4f4f4; }
.bpb-qty span { width: 34px; text-align: center; font-size: 14px; font-weight: 600; }
.bpb-item__remove { background: none; border: 0; color: #6b7280; font-size: 12.5px; cursor: pointer; padding: 0; text-decoration: underline; }
.bpb-item__remove:hover { color: #ef4444; }
#bpb-cart-footer { border-top: 1px solid #ededed; padding: 20px 22px calc(20px + env(safe-area-inset-bottom)); }
#bpb-cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
#bpb-cart-total .bpb-total-label { font-size: 17px; font-weight: 700; color: #1c1c1c; }
#bpb-cart-total .bpb-total-value { font-size: 20px; font-weight: 800; color: #1c1c1c; }
#bpb-cart-installment { text-align: right; font-size: 12.5px; color: #7a7a7a; margin-bottom: 16px; }
#bpb-cart-installment b { color: #555; font-weight: 600; }
.bpb-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
  padding: 15px 16px; letter-spacing: .3px; }
.bpb-btn svg { width: 17px; height: 17px; }
.bpb-btn--primary { background: #00a651; color: #fff; margin-bottom: 10px; }
.bpb-btn--primary:hover { background: #009149; }
.bpb-btn--secondary { background: #00a651; color: #fff; opacity: .92; }
.bpb-btn--secondary:hover { opacity: 1; }
.bpb-btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  #bpb-cart-panel { width: 100%; max-width: 100vw; }
  #bpb-cart-header { padding: 16px; }
  #bpb-cart-items, #bpb-cart-footer { padding-left: 16px; padding-right: 16px; }
}
