/**
 * Bigazone — global corner-radius setting propagation.
 * controls existing UI surfaces (forms, buttons, cards, selects
 * cart/checkout blocks). Icon circles and radio/checkbox shapes are excluded.
 * Existing CSS token remains the only source of truth; do not change WC data.
 */
:root { --bz-commerce-card-radius: var(--bz-radius); }

/* Ordinary controls — native site components, WordPress forms and WooCommerce. */
body.bigazone-theme :is(
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="url"], input[type="search"],
  input[type="number"], input[type="date"], select, textarea
):not(.qty):not([hidden]):not([type="hidden"]),
body.bigazone-theme :is(
  .bz-search-close, .bz-menu-toggle,
  .bz-sort__trigger, .bz-sort__list, .bz-checkout-picker__trigger,
  .woocommerce-ordering select, .woocommerce-ordering .orderby,
  .select2-container--default .select2-selection--single
) {
  border-radius: var(--bz-radius) !important;
}

/* WooCommerce Blocks use their own high-specificity shape rules. */
body.bigazone-theme :is(.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart)
  :is(.wc-block-components-text-input input,
      .wc-block-components-combobox-control input,
      .wc-blocks-components-select__select,
      .wc-block-components-textarea,
      .wc-block-components-button:not(.is-link),
      .wc-block-components-sidebar,
      .wc-block-components-address-card,
      .wc-block-components-quantity-selector,
      .bz-checkout-picker__trigger) {
  border-radius: var(--bz-radius) !important;
}
/* Maintain only one payment-card border, without rounding nested options. */
body.bigazone-theme .wp-block-woocommerce-checkout
  .wc-block-checkout__payment-method .wc-block-components-radio-control {
  border-radius: var(--bz-radius) !important;
}
body.bigazone-theme .wp-block-woocommerce-checkout
  .wc-block-checkout__payment-method :is(
    .wc-block-components-radio-control__option,
    .wc-block-components-radio-control__option-layout,
    .wc-block-components-radio-control-accordion-option,
    .wc-block-components-radio-control-accordion-content
  ) { border-radius: 0 !important; }

/* Theme/Woo surfaces. Preserve 50%-radius avatars and circular icons. */
body.bigazone-theme :is(
  .bz-post-card, .bz-widget, .bz-button,
  .woocommerce div.product div.images img,
  .woocommerce .button, .woocommerce a.button,
  .woocommerce button.button, .woocommerce input.button,
  .woocommerce .woocommerce-message, .woocommerce .woocommerce-info,
  .woocommerce .woocommerce-error,
  .woocommerce-MyAccount-navigation ul,
  .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset,
  .woocommerce-ordering .bz-sort__list,
  .woocommerce div.product form.cart .bz-quantity,
  .wp-block-woocommerce-cart .wc-block-components-notice-banner,
  .wp-block-woocommerce-checkout .wc-block-components-notice-banner,
  .wp-block-button__link,
  .bz-header-search .bz-search-close
) { border-radius: var(--bz-radius) !important; }

/* Inline product quantity and custom dropdown option corners are intentionally
   softened; inner +/- buttons and the radio circle are not reshaped.*/
body.bigazone-theme :is(.bz-sort__option, .bz-checkout-picker__option) {
  border-radius: min(var(--bz-radius), 5px);
}

/* Checkout totals: one complete, visible OUTER outline.
 * WC Blocks nests multiple painted summary wrappers. A border on a clipped
 * inner wrapper can have its rounded corners hidden by its own descendants.
 * The outer totals block now owns a noninteractive paint overlay instead
 * internal table-like rows retain their normal straight separators.*/
body.bigazone-theme .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
  position: relative;
  isolation: isolate;
  border: 0 !important;
  border-radius: var(--bz-radius) !important;
  overflow: visible !important;
  background-color: #fff;
}
body.bigazone-theme .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-totals-block::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--bz-border);
  border-radius: inherit;
  pointer-events: none;
}
/* The WC summary shells are descendants, not additional outer cards. */
body.bigazone-theme .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-totals-block :is(
  .wc-block-components-checkout-order-summary,
  .wc-block-components-order-summary,
  .wp-block-woocommerce-checkout-order-summary-block,
  .wp-block-woocommerce-checkout-order-summary-totals-block,
  .wp-block-woocommerce-checkout-order-summary-coupon-form-block
) {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
}
body.bigazone-theme .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-totals-block :is(
  .wc-block-components-totals-wrapper,
  .wc-block-components-totals-footer-item,
  .wc-block-components-totals-item,
  .wc-block-components-totals-coupon,
  .wc-block-components-order-summary__content,
  .wc-block-components-order-summary-item
) {
  border-radius: 0 !important;
}
/* Fallback for Woo Blocks versions lacking the totals block wrapper: the
 * checkout order-summary itself becomes the one outlined shell.*/
body.bigazone-theme .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary:not(.wp-block-woocommerce-checkout-totals-block):not(.wp-block-woocommerce-checkout-totals-block *) {
  position: relative;
  isolation: isolate;
  border: 0 !important;
  border-radius: var(--bz-radius) !important;
  overflow: visible !important;
}
body.bigazone-theme .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary:not(.wp-block-woocommerce-checkout-totals-block):not(.wp-block-woocommerce-checkout-totals-block *)::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 1px solid var(--bz-border);
  border-radius: inherit;
  box-sizing: border-box;
  pointer-events: none;
}
/* Theme-owned interactive shell: use the saved global radius consistently. */
body.bigazone-theme .bz-menu-toggle { border-radius: var(--bz-radius) !important; }

/* no link underlines anywhere (including hover/focus); breadcrumbs share one flat design on every page */
html body a,html body a:hover,html body a:focus,html body a:active,html body a:visited,html body a:focus-visible{text-decoration:none!important}
html body :is(.bz-pt,.bz-page-title-wrap,.bz-page-heading):not(.bz-pt--banner){background:none!important;background-image:none!important;padding:0!important;min-height:0!important;border-radius:0!important;border:0!important;box-shadow:none!important}
html body :is(.bz-pt-crumbs,.woocommerce-breadcrumb){background:none!important;padding:0!important;margin:0 0 10px!important;border:0!important;font-size:13px;line-height:1.5}
html body :is(.bz-pt-crumbs,.woocommerce-breadcrumb) a{border:0!important;box-shadow:none!important;background:none!important;padding:0!important}
