/* ===== PayPal Plugin - Compatible with Block Checkout ===== */

/* Hide standard place order button */
#place_order,
button#place_order,
.wc-block-components-checkout-place-order-button {
    display: none !important;
}

/* Hide payment method info notices - classic checkout */
.woocommerce-info,
.wc_payment_methods .woocommerce-info,
.methods .woocommerce-info,
.wc_payment_methods .message-container,
.methods .medium-text-center,
.hidden-notice {
    display: none !important;
}

/* Hide WooCommerce errors */
.woocommerce-error {
    display: none !important;
}

/* Hide order notes / additional fields */
.woocommerce-additional-fields,
.notes,
.notes label,
.notes .input-text {
    display: none !important;
}

/* Hide red "no payment methods" message - Block Checkout - ALL possible selectors */
.wc-block-components-notices,
.wc-block-store-notice,
.wc-block-components-store-notice,
.wc-block-components-notice-banner,
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-warning,
.wc-block-components-payment-methods__no-available-methods-description,
.wc-block-checkout__no-payment-methods,
.wc-block-checkout__no-payment-methods-description,
.wc-block-components-validation-error,
[class*="no-payment-methods"],
[class*="noPaymentMethods"],
[class*="no_payment_methods"],
.wp-block-woocommerce-checkout-payment-block .components-notice,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-notice-banner,
.woocommerce-notices-wrapper {
    display: none !important;
}

/* Hide entire payment block section (the red box area) */
.wp-block-woocommerce-checkout-payment-block {
    display: none !important;
}

/* PayPal block container */
#paypal-block-container {
    margin-top: 20px !important;
    padding: 16px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
}

/* Mobile: Order Summary ytla3 lfog, PayPal button tehtah */
@media (max-width: 768px) {
    .wc-block-checkout,
    .wp-block-woocommerce-checkout {
        display: flex !important;
        flex-direction: column !important;
    }
    .wp-block-woocommerce-checkout-fields-block {
        order: 1 !important;
    }
    .wp-block-woocommerce-checkout-totals-block,
    .wc-block-checkout__sidebar {
        order: 2 !important;
    }
    #paypal-block-container {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
