:root{
  --bbx82-ink:#10213d;
  --bbx82-muted:#6e7d96;
  --bbx82-blue:#168df3;
  --bbx82-cyan:#17c9ef;
  --bbx82-purple:#7b43ef;
  --bbx82-line:#dde7f3;
  --bbx82-soft:#f7faff;
  --bbx82-white:#fff;
}

/* Deliberadamente NO toca header, wrapper general, widths globales ni el grid nativo de WooCommerce. */
body.bbx82-commerce{
  background:
    radial-gradient(circle at 95% 8%,rgba(82,186,255,.12),transparent 24%),
    radial-gradient(circle at 3% 58%,rgba(133,88,255,.08),transparent 24%),
    #fbfdff !important;
  color:var(--bbx82-ink);
}

body.bbx82-commerce .bbx82-intro{
  width:min(1180px,calc(100% - 32px));
  margin:20px auto 14px;
  padding:14px 18px;
  border:1px solid #dce8f7;
  border-radius:16px;
  background:linear-gradient(110deg,#fff 0%,#f4fbff 62%,#f8f2ff 100%);
  box-shadow:0 10px 28px rgba(35,76,128,.07);
  display:flex;
  align-items:center;
  gap:14px;
  box-sizing:border-box;
}
body.bbx82-commerce .bbx82-intro img{
  width:48px;height:48px;border-radius:50%;object-fit:cover;flex:0 0 48px;
}
body.bbx82-commerce .bbx82-intro-copy{min-width:0;flex:1}
body.bbx82-commerce .bbx82-intro strong{display:block;font-size:16px;line-height:1.2;color:#10213d}
body.bbx82-commerce .bbx82-intro span{display:block;margin-top:2px;font-size:12px;color:#6f7f99}
body.bbx82-commerce .bbx82-intro-rocket{font-size:25px;line-height:1;transform:rotate(-12deg);flex:0 0 auto}

/* WooCommerce Blocks: estética, sin remaquetar. */
body.bbx82-commerce .wc-block-components-main,
body.bbx82-commerce .wc-block-components-sidebar,
body.bbx82-commerce .wc-block-cart__main,
body.bbx82-commerce .wc-block-cart__sidebar,
body.bbx82-commerce .wc-block-checkout__main,
body.bbx82-commerce .wc-block-checkout__sidebar{
  background:#fff !important;
  border-color:var(--bbx82-line) !important;
  border-radius:16px !important;
  box-shadow:0 10px 30px rgba(43,78,124,.06) !important;
}

body.bbx82-commerce .wc-block-components-title,
body.bbx82-commerce .wc-block-components-checkout-step__title,
body.bbx82-commerce .wc-block-components-checkout-step__heading{
  color:var(--bbx82-ink) !important;
  font-weight:800 !important;
}

body.bbx82-commerce .wc-block-components-text-input input,
body.bbx82-commerce .wc-block-components-address-form input,
body.bbx82-commerce .wc-block-components-combobox-control input,
body.bbx82-commerce .wc-block-components-select-control select,
body.bbx82-commerce .wc-block-components-textarea{
  background:#fff !important;
  color:#10213d !important;
  border-color:#cfdbea !important;
  border-radius:10px !important;
}
body.bbx82-commerce .wc-block-components-text-input input:focus,
body.bbx82-commerce .wc-block-components-address-form input:focus,
body.bbx82-commerce .wc-block-components-combobox-control input:focus{
  border-color:#4e9ff5 !important;
  box-shadow:0 0 0 3px rgba(78,159,245,.12) !important;
}

body.bbx82-commerce .wc-block-components-product-image img,
body.bbx82-commerce .wc-block-components-order-summary-item__image img{
  object-fit:contain !important;
  background:#fff !important;
  border-radius:10px !important;
}

body.bbx82-commerce .wc-block-components-button,
body.bbx82-commerce .wc-block-cart__submit-button,
body.bbx82-commerce .wc-block-components-checkout-place-order-button{
  border-radius:11px !important;
  font-weight:800 !important;
}
body.bbx82-commerce .wc-block-cart__submit-button,
body.bbx82-commerce .wc-block-components-checkout-place-order-button{
  background:linear-gradient(100deg,#16c9eb,#4f83f3 52%,#8a49ef) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 8px 20px rgba(85,98,222,.16) !important;
}

body.bbx82-commerce .wc-block-components-radio-control__option{
  border-radius:10px !important;
}
body.bbx82-commerce .wc-block-components-radio-control__option--checked{
  background:#f4fbff !important;
  outline:2px solid rgba(27,177,238,.16) !important;
}

/* WooCommerce clásico: solo skin visual. */
body.bbx82-commerce .woocommerce-cart-form,
body.bbx82-commerce .cart-collaterals,
body.bbx82-commerce form.checkout.woocommerce-checkout,
body.bbx82-commerce #customer_details,
body.bbx82-commerce #order_review,
body.bbx82-commerce .woocommerce-checkout-review-order,
body.bbx82-commerce .woocommerce-form-coupon,
body.bbx82-commerce .woocommerce-order{
  background:#fff !important;
  border-color:var(--bbx82-line) !important;
  border-radius:16px !important;
  box-shadow:0 10px 30px rgba(43,78,124,.06) !important;
}

body.bbx82-commerce .woocommerce table.shop_table{
  border-color:#e2eaf4 !important;
}
body.bbx82-commerce .woocommerce table.shop_table th{
  background:#f7faff !important;
  color:#10213d !important;
}
body.bbx82-commerce .woocommerce table.shop_table td{
  border-color:#e7edf5 !important;
}
body.bbx82-commerce .woocommerce table.shop_table img{
  object-fit:contain !important;
  background:#fff !important;
  border-radius:10px !important;
}

body.bbx82-commerce .woocommerce .input-text,
body.bbx82-commerce .woocommerce select,
body.bbx82-commerce .woocommerce textarea{
  background:#fff !important;
  color:#10213d !important;
  border:1px solid #cfdbea !important;
  border-radius:10px !important;
}
body.bbx82-commerce .woocommerce .input-text:focus,
body.bbx82-commerce .woocommerce select:focus,
body.bbx82-commerce .woocommerce textarea:focus{
  border-color:#4e9ff5 !important;
  box-shadow:0 0 0 3px rgba(78,159,245,.12) !important;
  outline:0 !important;
}

body.bbx82-commerce .woocommerce .button,
body.bbx82-commerce .woocommerce button.button,
body.bbx82-commerce .woocommerce a.button,
body.bbx82-commerce #place_order{
  border-radius:10px !important;
  font-weight:800 !important;
}
body.bbx82-commerce #place_order,
body.bbx82-commerce .wc-proceed-to-checkout .checkout-button{
  background:linear-gradient(100deg,#16c9eb,#4f83f3 52%,#8a49ef) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 8px 20px rgba(85,98,222,.16) !important;
}

body.bbx82-commerce .woocommerce-message,
body.bbx82-commerce .woocommerce-info{
  background:#f1faff !important;
  color:#173553 !important;
  border-color:#bde8fb !important;
  border-radius:10px !important;
}
body.bbx82-commerce .woocommerce-error{border-radius:10px !important}

/* Nunca ocultar, mover, convertir en grid ni bloquear gateways/envíos. */
body.bbx82-commerce #payment,
body.bbx82-commerce .wc_payment_methods,
body.bbx82-commerce .payment_methods,
body.bbx82-commerce .woocommerce-shipping-methods,
body.bbx82-commerce .wc-block-components-shipping-rates-control{
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
body.bbx82-commerce #payment{
  border:1px solid #dce7f3 !important;
  border-radius:12px !important;
  background:#fbfdff !important;
}

/* Mobile: solo reduce adornos y espaciado; no modifica las columnas nativas de WooCommerce. */
@media (max-width:782px){
  body.bbx82-commerce .bbx82-intro{
    width:calc(100% - 20px);
    margin:12px auto 10px;
    padding:10px 12px;
    border-radius:12px;
    gap:10px;
  }
  body.bbx82-commerce .bbx82-intro img{width:38px;height:38px;flex-basis:38px}
  body.bbx82-commerce .bbx82-intro strong{font-size:13px}
  body.bbx82-commerce .bbx82-intro span{font-size:10px}
  body.bbx82-commerce .bbx82-intro-rocket{font-size:20px}

  body.bbx82-commerce .wc-block-components-main,
  body.bbx82-commerce .wc-block-components-sidebar,
  body.bbx82-commerce .wc-block-cart__main,
  body.bbx82-commerce .wc-block-cart__sidebar,
  body.bbx82-commerce .wc-block-checkout__main,
  body.bbx82-commerce .wc-block-checkout__sidebar,
  body.bbx82-commerce .woocommerce-cart-form,
  body.bbx82-commerce .cart-collaterals,
  body.bbx82-commerce form.checkout.woocommerce-checkout,
  body.bbx82-commerce #customer_details,
  body.bbx82-commerce #order_review{
    border-radius:12px !important;
    box-shadow:0 6px 18px rgba(43,78,124,.05) !important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.bbx82-commerce *{scroll-behavior:auto !important;transition:none !important;animation:none !important}
}


/* V8.2: checkout sin header comercial. No toca #wpadminbar ni el contenido del checkout. */
body.bbx82-checkout [data-bbx82-hidden-header="1"]{display:none!important}
body.bbx82-checkout{padding-top:0!important}
body.bbx82-checkout .bbx82-intro{margin-top:14px!important}
body.bbx82-checkout .bbx82-intro:before{content:"🔒";display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eef9ff;color:#168df3;font-size:17px;flex:0 0 34px}
body.bbx82-checkout .bbx82-intro img{width:42px!important;height:42px!important}
@media(max-width:782px){body.bbx82-checkout .bbx82-intro{margin-top:8px!important}}
