body.woocommerce-account table.account-orders-table .woo_gst_pdf_invoice  {
    margin: 5px;
}

/* Classic checkout: hide GSTIN input until "Have GSTIN Number?" is checked */
#has_gstin_number #woo_gst_gstin_wrapper,
#has_gstin_number #woo_gst_gstin_number_field {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

#has_gstin_number.woo-gst-show-gstin #woo_gst_gstin_wrapper,
#has_gstin_number.woo-gst-show-gstin #woo_gst_gstin_number_field {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    margin: inherit !important;
    padding: inherit !important;
}

/* Block checkout (order + contact): hide GSTIN until checkbox is checked */
body:not(.woo-gst-checkbox-checked) #order-woo-gst-gstin_number,
body:not(.woo-gst-checkbox-checked) #contact-woo-gst-gstin_number,
body:not(.woo-gst-checkbox-checked) .wc-block-components-text-input:has(#order-woo-gst-gstin_number),
body:not(.woo-gst-checkbox-checked) .wc-block-components-text-input:has(#contact-woo-gst-gstin_number),
body:not(.woo-gst-checkbox-checked) .wc-block-components-text-input:has(input[name*="woo-gst/gstin_number"]),
body:not(.woo-gst-checkbox-checked) .wc-block-components-address-form__woo-gst-gstin_number,
body:not(.woo-gst-checkbox-checked) .wc-block-components-address-form__woo-gst-gstin-number,
body:not(.woo-gst-checkbox-checked) input[name="order_woo-gst/gstin_number"],
body:not(.woo-gst-checkbox-checked) input[name="contact_woo-gst/gstin_number"],
.woo-gst-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}

body.woo-gst-checkbox-checked #order-woo-gst-gstin_number,
body.woo-gst-checkbox-checked #contact-woo-gst-gstin_number,
body.woo-gst-checkbox-checked .wc-block-components-text-input:has(#order-woo-gst-gstin_number),
body.woo-gst-checkbox-checked .wc-block-components-text-input:has(#contact-woo-gst-gstin_number),
body.woo-gst-checkbox-checked .wc-block-components-text-input:has(input[name*="woo-gst/gstin_number"]),
body.woo-gst-checkbox-checked .wc-block-components-address-form__woo-gst-gstin_number,
body.woo-gst-checkbox-checked .wc-block-components-address-form__woo-gst-gstin-number,
body.woo-gst-checkbox-checked input[name="order_woo-gst/gstin_number"],
body.woo-gst-checkbox-checked input[name="contact_woo-gst/gstin_number"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
}