/* AQAD Checkout Optimizer - scoped frontend CSS */

.aqco-b2b-only {
  display: none !important;
}

body.aqco-b2b-on .aqco-b2b-only {
  display: block !important;
}

/* Reduce recurring clutter when enabled */
body.aqco-active.aqco-hide-recurring .recurring-total,
body.aqco-active.aqco-hide-recurring .wcs-recurring-totals,
body.aqco-active.aqco-hide-recurring .wcs-recurring-totals-container,
body.aqco-active.aqco-hide-recurring .subscription-details,
body.aqco-active.aqco-hide-recurring .wc-bacs-bank-details,
body.aqco-active.aqco-hide-recurring .wc-item-meta {
  display: none !important;
}

body.aqco-active .aqco-price-clarity {
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  margin: 0 0 16px 0;
  background: rgba(0,0,0,0.02);
}

body.aqco-active .aqco-price-clarity strong {
  display: inline-block;
  margin-right: 6px;
}

body.aqco-active .aqco-price-clarity .aqco-muted {
  opacity: 0.75;
}

/* --- Order review simplification (scoped checkouts) --- */
body.aqco-active.aqco-hide-additional .woocommerce-additional-fields,
body.aqco-active.aqco-hide-additional #order_comments_field {
  display: none !important;
}

/* Hide the default order review table when we show the price clarity block */
body.aqco-active.aqco-hide-review .woocommerce-checkout-review-order-table,
body.aqco-active.aqco-hide-review #order_review .shop_table,
body.aqco-active.aqco-hide-review .recurring-totals,
body.aqco-active.aqco-hide-review .wcs-recurring-totals,
body.aqco-active.aqco-hide-review .wcs-recurring-totals-container {
  display: none !important;
}

/* Keep spacing sane when the table is hidden */
body.aqco-active.aqco-hide-review #order_review {
  margin-top: 8px;
}

/* Hide the "Additional information" heading when the block is empty (e.g., VAT moved to billing). */
.aqco-additional-empty .woocommerce-additional-fields > h3{ display:none !important; }

