/* WBP Shop Tools 0.2.0 — customer-facing basket */
.wbp-custom-basket-page .wbp-shop-shell{padding-top:2.75rem}
.wbp-custom-basket-page .wbp-shop-content{max-width:1180px}
.wbp-custom-basket-page .woocommerce-breadcrumb{display:none!important}
.wbp-custom-basket-page .entry-title{display:none!important}
.wbp-custom-basket-page .wc-block-cart,
.wbp-custom-basket-page .wp-block-woocommerce-cart{display:none!important}

.wbp-basket{position:relative;color:#e5e7eb}
.wbp-basket a{text-decoration:none}
.wbp-basket-header{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin:0 0 1.25rem;padding:0 0 1.75rem;border-bottom:1px solid rgba(255,255,255,.09)}
.wbp-basket-eyebrow{margin:0 0 .45rem!important;color:#f87171!important;font-size:.72rem!important;font-weight:900!important;letter-spacing:.16em!important;text-transform:uppercase!important}
.wbp-basket-header h1{margin:0!important;color:#fff!important;font-size:clamp(2.25rem,4.5vw,3.7rem)!important;line-height:1!important;font-weight:900!important;letter-spacing:-.05em!important}
.wbp-basket-intro{margin:.8rem 0 0!important;color:#9ca3af!important;font-size:.98rem!important;line-height:1.65!important}
.wbp-basket-continue{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.05);padding:.7rem .95rem;color:#fff!important;font-size:.82rem;font-weight:850;transition:.18s ease}
.wbp-basket-continue:hover{border-color:rgba(248,113,113,.45);background:rgba(220,38,38,.12);transform:translateY(-1px)}
.wbp-basket-count{margin:0 0 1.2rem!important;color:#64748b!important;font-size:.8rem!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.1em}

.wbp-basket-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:1.5rem;align-items:start}
.wbp-basket-items{display:grid;gap:.85rem}
.wbp-basket-item{display:grid;grid-template-columns:126px minmax(0,1fr);gap:1.15rem;border:1px solid rgba(255,255,255,.09);border-radius:1.25rem;background:linear-gradient(145deg,rgba(17,24,39,.86),rgba(9,14,27,.78));padding:.9rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.wbp-basket-item-media{overflow:hidden;border-radius:.9rem;background:#0b1220;aspect-ratio:1/1}
.wbp-basket-item-media a{display:block;width:100%;height:100%}
.wbp-basket-item-media img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important;box-shadow:none!important}
.wbp-basket-item-details{min-width:0;padding:.15rem .25rem .1rem 0}
.wbp-basket-item-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.wbp-basket-item h2{margin:0!important;font-size:1.02rem!important;line-height:1.35!important;font-weight:900!important;letter-spacing:-.02em!important}
.wbp-basket-item h2 a{color:#fff!important}
.wbp-basket-item-subtotal{white-space:nowrap;color:#fff;font-size:1rem;font-weight:900}
.wbp-basket-item-meta{margin-top:.45rem;color:#9ca3af;font-size:.78rem;line-height:1.55}
.wbp-basket-item-meta dl,.wbp-basket-item-meta p{margin:0!important}
.wbp-basket-item-controls{display:flex;align-items:end;gap:.85rem;flex-wrap:wrap;margin-top:1.15rem}
.wbp-basket-qty{display:grid;gap:.3rem;color:#94a3b8;font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.wbp-basket-qty input{width:76px!important;height:40px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:.75rem!important;background:#070c16!important;color:#fff!important;padding:.45rem .65rem!important;font:inherit!important;font-size:.9rem!important;font-weight:800!important;outline:none!important;box-shadow:none!important}
.wbp-basket-qty input:focus{border-color:rgba(248,113,113,.7)!important;box-shadow:0 0 0 3px rgba(220,38,38,.14)!important}
.wbp-basket-unit-price{color:#64748b;font-size:.78rem;font-weight:700;padding-bottom:.55rem}
.wbp-basket-remove{margin-left:auto;color:#fca5a5!important;font-size:.78rem;font-weight:850;padding:.55rem 0}
.wbp-basket-remove:hover{color:#fff!important}
.wbp-basket-backorder{margin:.7rem 0 0!important;color:#fbbf24!important;font-size:.78rem!important;font-weight:800!important}

.wbp-basket-actions{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:.25rem;padding:1rem 0 0}
.wbp-basket-coupon{display:grid;gap:.35rem;min-width:min(100%,360px)}
.wbp-basket-coupon>label{color:#94a3b8;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.wbp-basket-coupon>div{display:flex}
.wbp-basket-coupon input{min-width:0;flex:1;height:42px;border:1px solid rgba(255,255,255,.12)!important;border-right:0!important;border-radius:.8rem 0 0 .8rem!important;background:#070c16!important;color:#fff!important;padding:.55rem .75rem!important;outline:none!important;box-shadow:none!important}
.wbp-basket-coupon button{height:42px;border:1px solid rgba(248,113,113,.42);border-radius:0 .8rem .8rem 0;background:rgba(220,38,38,.16);padding:0 .9rem;color:#fff;font-weight:850;cursor:pointer}
.wbp-basket-secondary{height:42px;border:1px solid rgba(255,255,255,.13);border-radius:.8rem;background:rgba(255,255,255,.06);padding:0 1rem;color:#fff;font-size:.82rem;font-weight:850;cursor:pointer}
.wbp-basket-secondary:hover,.wbp-basket-coupon button:hover{background:rgba(220,38,38,.24)}

.wbp-basket-summary{position:sticky;top:7.25rem;border:1px solid rgba(255,255,255,.1);border-radius:1.35rem;background:linear-gradient(160deg,rgba(17,24,39,.98),rgba(8,13,24,.96));padding:1.25rem;box-shadow:0 22px 70px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.05)}
.wbp-basket-summary h2{margin:0 0 1rem!important;color:#fff!important;font-size:1.35rem!important;font-weight:900!important;letter-spacing:-.03em!important}
.wbp-basket-summary dl{margin:0}
.wbp-basket-summary dl>div{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem;border-top:1px solid rgba(255,255,255,.07);padding:.75rem 0;color:#cbd5e1;font-size:.84rem;line-height:1.45}
.wbp-basket-summary dl>div:first-child{border-top:0}
.wbp-basket-summary dt{font-weight:700}
.wbp-basket-summary dd{margin:0;color:#fff;font-weight:850;text-align:right}
.wbp-basket-summary .wbp-basket-discount dt span{display:block;margin-top:.2rem;color:#64748b;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em}
.wbp-basket-summary .wbp-basket-discount dd{color:#86efac}
.wbp-basket-summary .wbp-basket-grand-total{margin-top:.2rem;border-top:1px solid rgba(255,255,255,.15);padding-top:1rem;font-size:1rem}
.wbp-basket-summary .wbp-basket-grand-total dt,.wbp-basket-summary .wbp-basket-grand-total dd{color:#fff;font-size:1.08rem;font-weight:950}
.wbp-basket-checkout{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;border-radius:.9rem;background:#d71920;padding:.85rem 1rem;color:#fff!important;font-size:.9rem;font-weight:900;box-shadow:0 14px 35px rgba(127,29,29,.25);transition:.18s ease}
.wbp-basket-checkout:hover{background:#ef2b32;transform:translateY(-1px)}
.wbp-basket-secure{margin:.75rem 0 0!important;color:#64748b!important;font-size:.7rem!important;line-height:1.55!important;text-align:center}

.wbp-basket-empty{max-width:760px;margin:2rem auto 0;border:1px solid rgba(255,255,255,.09);border-radius:1.4rem;background:linear-gradient(145deg,rgba(17,24,39,.86),rgba(9,14,27,.78));padding:2rem;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.wbp-basket-empty-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 1rem;border-radius:50%;background:rgba(215,25,32,.16);border:1px solid rgba(248,113,113,.3);color:#fff}
.wbp-basket-empty h2{margin:0!important;color:#fff!important;font-size:1.65rem!important;font-weight:900!important;letter-spacing:-.035em!important}
.wbp-basket-empty p{max-width:570px;margin:.7rem auto 1.2rem!important;color:#9ca3af!important;font-size:.92rem!important;line-height:1.65!important}
.wbp-basket-primary{display:inline-flex;align-items:center;justify-content:center;border-radius:.85rem;background:#d71920;padding:.78rem 1.1rem;color:#fff!important;font-size:.84rem;font-weight:900}

.wbp-basket-recommendations{margin-top:3rem}
.wbp-basket-section-heading{margin-bottom:1rem}
.wbp-basket-section-heading h2{margin:0!important;color:#fff!important;font-size:1.55rem!important;font-weight:900!important;letter-spacing:-.035em!important}
.wbp-basket-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.wbp-basket-product-card{overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:1rem;background:rgba(17,24,39,.74)}
.wbp-basket-product-image{display:block;aspect-ratio:4/3;overflow:hidden;background:#0b1220}
.wbp-basket-product-image img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important;box-shadow:none!important;transition:transform .25s ease}
.wbp-basket-product-card:hover img{transform:scale(1.035)}
.wbp-basket-product-copy{padding:.9rem}
.wbp-basket-product-copy h3{margin:0!important;font-size:.9rem!important;line-height:1.35!important;font-weight:900!important}
.wbp-basket-product-copy h3 a{color:#fff!important}
.wbp-basket-product-price{margin:.4rem 0 0!important;color:#fca5a5!important;font-size:.84rem!important;font-weight:850!important}

.wbp-basket .woocommerce-error,.wbp-basket .woocommerce-message,.wbp-basket .woocommerce-info{border:1px solid rgba(255,255,255,.11)!important;border-radius:1rem!important;background:#111827!important;color:#e5e7eb!important;padding:1rem 1.1rem 1rem 3rem!important;font-size:.84rem!important;box-shadow:none!important}
.wbp-basket .woocommerce-error::before,.wbp-basket .woocommerce-message::before,.wbp-basket .woocommerce-info::before{top:1rem!important;left:1rem!important;color:#f87171!important}

@media(max-width:900px){
  .wbp-basket-layout{grid-template-columns:1fr}
  .wbp-basket-summary{position:static}
  .wbp-basket-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .wbp-basket-header{align-items:flex-start;flex-direction:column;gap:1rem}
  .wbp-basket-header h1{font-size:clamp(2.05rem,10vw,2.75rem)!important}
  .wbp-basket-item{grid-template-columns:88px minmax(0,1fr);gap:.85rem;padding:.75rem}
  .wbp-basket-item-topline{display:block}
  .wbp-basket-item-subtotal{display:block;margin-top:.45rem}
  .wbp-basket-item-controls{gap:.65rem}
  .wbp-basket-remove{margin-left:0}
  .wbp-basket-actions{display:grid;grid-template-columns:1fr}
  .wbp-basket-coupon{min-width:0}
  .wbp-basket-secondary{width:100%}
  .wbp-basket-product-grid{grid-template-columns:1fr 1fr;gap:.75rem}
}


/* 0.3.0: tighter basket polish and clearer totals */
.wbp-basket-item{grid-template-columns:112px minmax(0,1fr);border-radius:1.35rem;padding:1rem}
.wbp-basket-item h2{font-size:1.08rem!important}
.wbp-basket-item-subtotal{font-size:1.05rem}
.wbp-basket-summary{padding:1.4rem;border-radius:1.5rem}
.wbp-basket-summary h2{margin:0 0 .85rem!important;font-size:1.5rem!important}
.wbp-basket-summary dl>div{padding:.82rem 0}
.wbp-basket-summary .wbp-basket-tax-note dd{color:#cbd5e1;font-weight:800}
.wbp-basket-checkout{margin-top:1.15rem;min-height:52px;padding:.95rem 1.1rem;font-size:.95rem}
.wbp-basket-secure{margin:.85rem 0 0!important;font-size:.74rem!important}
@media(max-width:640px){
  .wbp-basket-item{grid-template-columns:84px minmax(0,1fr)}
}

/* 0.4.0: pre-order indicators */
.wbp-preorder-badge{
  position:absolute;
  z-index:6;
  top:.8rem;
  left:.8rem;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:#d71920;
  padding:.35rem .6rem;
  color:#fff;
  font-size:.68rem;
  font-weight:950;
  line-height:1;
  letter-spacing:.05em;
  text-transform:uppercase;
  box-shadow:0 8px 24px rgba(0,0,0,.24);
}
.wbp-preorder-notice{
  display:grid;
  gap:.25rem;
  margin:1rem 0 1.15rem;
  border:1px solid rgba(248,113,113,.28);
  border-radius:1rem;
  background:rgba(215,25,32,.1);
  padding:.9rem 1rem;
  color:#fecaca;
}
.wbp-preorder-notice strong{
  color:#fff;
  font-size:.78rem;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.wbp-preorder-notice span{
  color:#e5e7eb;
  font-size:.86rem;
  line-height:1.5;
}


/* 0.5.0: checkout donation card */
.wbp-checkout-donation{
  margin:1.6rem 0;
  border:1px solid rgba(248,113,113,.28);
  border-radius:1.15rem;
  background:linear-gradient(145deg,rgba(127,29,29,.16),rgba(17,24,39,.72));
  padding:1.15rem;
  color:#e5e7eb;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.wbp-checkout-donation__intro{display:flex;align-items:flex-start;gap:.85rem}
.wbp-checkout-donation__icon{display:grid;place-items:center;flex:0 0 2.35rem;width:2.35rem;height:2.35rem;border-radius:999px;background:rgba(215,25,32,.18);border:1px solid rgba(248,113,113,.34);color:#fca5a5;font-size:1rem;line-height:1}
.wbp-checkout-donation h2{margin:0!important;color:#fff!important;font-size:1.15rem!important;line-height:1.25!important;font-weight:900!important;letter-spacing:-.025em!important}
.wbp-checkout-donation p{margin:.35rem 0 0!important;color:#9ca3af!important;font-size:.84rem!important;line-height:1.55!important}
.wbp-checkout-donation__choices{display:flex;align-items:stretch;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.wbp-donation-preset-form{margin:0}
.wbp-donation-choice,
.wbp-donation-custom-form button,
.wbp-checkout-donation__selected button{
  min-height:42px;border:1px solid rgba(255,255,255,.13);border-radius:.8rem;background:rgba(255,255,255,.055);padding:.65rem .95rem;color:#fff;font-family:inherit;font-size:.84rem;font-weight:900;line-height:1;cursor:pointer;transition:.18s ease;
}
.wbp-donation-choice:hover,.wbp-donation-custom-form button:hover{border-color:rgba(248,113,113,.45);background:rgba(220,38,38,.15)}
.wbp-donation-choice.is-selected{border-color:#ef4444;background:#d71920;box-shadow:0 0 0 3px rgba(215,25,32,.13)}
.wbp-donation-custom-form{display:flex;align-items:center;gap:.45rem;margin:0}
.wbp-donation-custom-form>label{color:#cbd5e1;font-size:.78rem;font-weight:800}
.wbp-donation-custom-field{display:flex;align-items:center;gap:.3rem;min-height:42px;border:1px solid rgba(255,255,255,.13);border-radius:.8rem;background:#070c16;padding:0 .65rem;color:#94a3b8}
.wbp-donation-custom-field input{width:78px!important;height:38px!important;border:0!important;background:transparent!important;color:#fff!important;padding:0!important;outline:0!important;box-shadow:none!important;font:inherit!important;font-size:.84rem!important;font-weight:800!important}
.wbp-donation-custom-field input::-webkit-inner-spin-button,.wbp-donation-custom-field input::-webkit-outer-spin-button{margin:0}
.wbp-checkout-donation__selected{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.9rem;border-top:1px solid rgba(255,255,255,.08);padding-top:.9rem;color:#bbf7d0;font-size:.82rem;font-weight:800}
.wbp-checkout-donation__selected form{margin:0}
.wbp-checkout-donation__selected button{min-height:0;border:0;background:transparent;padding:.25rem;color:#fca5a5;font-size:.76rem;text-decoration:underline;text-underline-offset:3px}
@media(max-width:640px){
  .wbp-checkout-donation{margin:1.25rem 0;padding:1rem;border-radius:1rem}
  .wbp-checkout-donation__choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
  .wbp-donation-preset-form,.wbp-donation-choice{width:100%}
  .wbp-donation-custom-form{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.5rem}
  .wbp-donation-custom-field{min-width:0}
  .wbp-donation-custom-field input{width:100%!important;min-width:0!important}
  .wbp-checkout-donation__selected{align-items:flex-start;flex-direction:column;gap:.55rem}
}


/* 0.5.1: make preset donation labels explicit and readable */
.wbp-donation-choice{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:58px!important;
  color:#fff!important;
  text-indent:0!important;
}
.wbp-donation-choice__amount{
  display:inline-block!important;
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  font-size:.86rem!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.wbp-donation-choice.is-selected .wbp-donation-choice__amount{color:#fff!important}
