/* Final polish for the Printbox business-card order flow. */

/* The NBDesigner volume table duplicates the visible quantity choices and the
 * live total, so remove it from the customer flow entirely. The reset link is
 * also unnecessary for this short configurator and visually competes with the
 * real actions. */
body.pb-order-ux .pb-pricing-toggle,
body.pb-order-ux .nbo-table-pricing-wrap,
body.pb-order-ux .nbo-clear-option-wrap {
  display: none !important;
}

/* The cart page itself still uses Flatsome's legacy right-sidebar template.
 * That sidebar contains Services / Order online / Contacts / size-table widgets
 * and is unrelated to completing a transaction, so remove the whole column and
 * let the actual cart use the full page width. */
body.pb-cart-ux .page-wrapper.page-right-sidebar > .row > .large-3.col,
body.pb-cart-ux .page-wrapper.page-right-sidebar #secondary.widget-area {
  display: none !important;
}

body.pb-cart-ux .page-wrapper.page-right-sidebar > .row > .large-9.col,
body.pb-cart-ux .page-wrapper.page-right-sidebar > .row > #content {
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
  border-right: 0 !important;
}

/* Transactional pages should stay focused. Flatsome installations can expose
 * footer widgets either inside #footer or as standalone .footer-widgets. */
body.pb-cart-ux .footer-widgets,
body.pb-cart-ux .footer.footer-1,
body.pb-cart-ux .footer.footer-2,
body.pb-checkout-ux .footer-widgets,
body.pb-checkout-ux .footer.footer-1,
body.pb-checkout-ux .footer.footer-2,
body.pb-cart-ux #footer > :not(.absolute-footer),
body.pb-checkout-ux #footer > :not(.absolute-footer) {
  display: none !important;
}

/* The update button is useful only after a cart value has actually changed. */
body.pb-cart-ux .woocommerce-cart-form button[name="update_cart"]:disabled {
  display: none !important;
}

/* Checkout gets one compact readable line instead of another miniature table. */
body.pb-checkout-ux .pb-checkout-config {
  margin: 8px 0 4px;
  padding: 8px 10px;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #526170;
  font-size: 11px;
  line-height: 1.45;
}

body.pb-checkout-ux .pb-checkout-config strong {
  color: #2a3d4f;
  font-weight: 700;
}

@media (max-width: 849px) {
  /* Responsive cart rows already carry their own labels; the desktop header
   * adds noise and makes the first card look like a spreadsheet. */
  body.pb-cart-ux .woocommerce-cart-form thead {
    display: none !important;
  }

  body.pb-cart-ux .woocommerce-cart-form .cart_item {
    padding-top: 10px;
  }

  body.pb-cart-ux .pb-cart-config {
    margin-top: 9px;
  }

  body.pb-checkout-ux .pb-checkout-config {
    max-width: none;
  }
}
