/**
 * DZH Attribution Hub — Frontend & Blocks Accessibility Normalization
 *
 * Normalizes Gutenberg WooCommerce Blocks accessible screen-reader hidden inputs.
 * Eliminates horizontal canvas overflow (20,000px negative offset in checkout-rtl.css)
 * using standard W3C accessible clip-rect without compromising screen-reader accessibility.
 *
 * @package DZH\Attribution
 */

.wc-block-components-address-form__address_2-hidden-input,
.wc-block-components-address-form__address_1-hidden-input,
.wc-block-components-address-form__company-hidden-input,
.wc-block-components-address-form__city-hidden-input,
.wc-block-components-address-form__state-hidden-input,
.wc-block-components-address-form__postcode-hidden-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    left: 0 !important;
    right: auto !important;
    white-space: nowrap !important;
}

/**
 * Hanout Theme Compatibility — Thank You Page Layering
 *
 * Ensures order details and thank you content remain clearly readable
 * above vendor canvas-confetti particles on mobile & desktop views.
 */
body.woocommerce-order-received > canvas:not([id]):not([class]),
body.woocommerce-order-received > canvas[style*="position: fixed"] {
    position: fixed !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.woocommerce-order-received .site-main,
body.woocommerce-order-received .entry-content,
body.woocommerce-order-received .woocommerce,
body.woocommerce-order-received .woocommerce-order,
body.woocommerce-order-received .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received #thanks-order-summary,
body.woocommerce-order-received .woocommerce-customer-details {
    position: relative !important;
    z-index: 10 !important;
}

