/* Site fixes layered on top of the mirrored WordPress CSS. */

/* The transparent header overlays the first section (hero/banner), so the
   content area must NOT reserve the header's height. A stray rule reserved
   ~94px, which showed as a grey strip under the top bar (the semi-transparent
   nav over the white gap). Match the original: no reserved space. */
body.bd-px-header--transparent #pxl-main {
  padding-top: 0 !important;
}

/* Add-to-cart confirmation toast (shown by CartClient when a Buy Now is clicked). */
.recorp-cart-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  max-width: 340px;
  background: #0f1b2d;
  color: #fff;
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: recorp-toast-in 0.25s ease;
}
.recorp-cart-toast__link {
  align-self: flex-start;
  background: #f2295b;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
}
@keyframes recorp-toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cart/checkout page spacing so content isn't cramped under the banner. */
#pxl-main .woocommerce { margin: 0 auto; }
#pxl-main .cart-collaterals { margin-top: 30px; max-width: 420px; margin-left: auto; }

/* Checkout: stack billing + order summary on narrow screens. */
@media (max-width: 780px) {
  .recorp-checkout-grid { grid-template-columns: 1fr !important; }
}

/* Header mini-cart (injected by CartClient): the theme leaves the View cart /
   Checkout button text transparent in this context — force white like the
   live site's gradient buttons. */
.widget_shopping_cart_content .buttons a,
.woocommerce-mini-cart__buttons a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons { display: flex; gap: 10px; }

/* Header mini-cart dropdown on the custom cart/checkout/order-received pages:
   those use the shared blog head styles, which lack the Elementor rule that
   makes the dropdown an absolutely-positioned, hidden-by-default panel — so it
   rendered open and in-flow, breaking the header. Restore that behaviour here
   (scoped so the mirror pages' own working dropdown is untouched). The open
   state is toggled by CartClient via .recorp-cart-open. */
.recorp-cart-fix .elementor-menu-cart__container {
  position: absolute !important;
  right: 0;
  top: 100%;
  z-index: 9999;
  display: none !important;
}
.recorp-cart-fix .elementor-menu-cart__wrapper.recorp-cart-open .elementor-menu-cart__container {
  display: block !important;
}
.recorp-cart-fix .elementor-menu-cart__main { opacity: 1 !important; visibility: visible !important; }
