/**
 * Satmo Quick Checkout Mode
 * 
 * This CSS file handles:
 * 1. Transforms Add to Cart buttons into Buy Now buttons
 * 2. Hides "Added to cart" notices during Quick Checkout
 * 3. Streamlines checkout UI by hiding unnecessary elements
 * 4. Auto-fills checkout fields if demo mode is active
 */

/* Hide WooCommerce notices when using quick checkout */
body.satmo-quick-checkout .wc-block-components-notice-banner,
body.satmo-quick-checkout .woocommerce-notices-wrapper .woocommerce-message,
body.satmo-quick-checkout .wc-block-store-notices,
body.satmo-quick-checkout .wp-block-woocommerce-checkout-order-summary-totals-block {
    display: none !important;
}

@media (max-width: 778px) {
    /* Hide the sidebar order summary but not the one in the main checkout flow */
    body.satmo-quick-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
        display: none !important;
    }
}

/* Hide coupon section for cleaner checkout */
body.satmo-quick-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-coupon-form-block {
    display: none !important;
}

/* Hide subtotal section in both places */
body.satmo-quick-checkout .wp-block-woocommerce-checkout-order-summary-subtotal-block {
    display: none !important;
}

/* Hide fee blocks if they exist */
body.satmo-quick-checkout .wp-block-woocommerce-checkout-order-summary-fee-block:not(:empty) {
    display: none !important;
}

/* Hide discount blocks if they exist */
body.satmo-quick-checkout .wp-block-woocommerce-checkout-order-summary-discount-block:not(:empty) {
    display: none !important;
}

/* Keep the total section visible */
body.satmo-quick-checkout .wc-block-components-totals-footer-item {
    margin-top: 0 !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Preserve the order summary in main checkout flow */
body.satmo-quick-checkout .checkout-order-summary-block-fill-wrapper {
    display: block !important;
}

.wc-block-components-totals-wrapper {
    border-top: none !important;
}

.wc-block-components-product-metadata__description {
    display: none !important;
}

/* Demo Mode Features - Hide billing fields on checkout when demo mode is enabled */
body.satmo-quick-checkout.demo-enabled .wp-block-woocommerce-checkout-billing-address-block,
body.satmo-quick-checkout.demo-enabled .wp-block-woocommerce-checkout-contact-information-block,
body.satmo-quick-checkout.demo-enabled #billing-fields,
body.satmo-quick-checkout.demo-enabled #customer_details,
body.satmo-quick-checkout.demo-enabled .woocommerce-form-coupon-toggle,
body.satmo-quick-checkout.demo-enabled #contact-fields,
body.satmo-quick-checkout.demo-enabled .wp-block-woocommerce-checkout-shipping-method-block,
body.satmo-quick-checkout.demo-enabled .wp-block-woocommerce-checkout-pickup-options-block,
body.satmo-quick-checkout.demo-enabled .wc-block-checkout__add-note,
body.satmo-quick-checkout.demo-enabled #order-notes,
body.satmo-quick-checkout.demo-enabled #payment-method,
body.satmo-quick-checkout.demo-enabled .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
body.satmo-quick-checkout.demo-enabled .wp-block-woocommerce-cart-order-summary-coupon-form-block {
    display: none !important;
}

body.satmo-quick-checkout.demo-enabled .wp-block-woocommerce-checkout {
    padding-top: 0px !important;
}
.is-mobile .wc-block-checkout__sidebar {
    display: none !important;
}
.wp-block-woocommerce-order-confirmation-billing-wrapper {
    display: none !important;
}
.wc-block-checkout__terms {
    display: none !important;
}