/* Ajustes WooCommerce del child theme (carga condicional si WooCommerce esta activo). */

/* Checkout corporativo (WooCommerce Blocks + fallback clásico). */
body.woocommerce-checkout .ewp-checkout-account-soft {
    margin: 6px 0 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

body.woocommerce-checkout .ewp-checkout-place-order-slot {
    margin-top: 16px;
}

body.woocommerce-checkout .ewp-checkout-place-order-slot .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .ewp-checkout-place-order-slot .wc-block-components-button:not(.is-link) {
    width: 100%;
    justify-content: center;
}

body.woocommerce-checkout .ewp-checkout-terms-slot {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}

body.woocommerce-checkout .ewp-checkout-terms-slot a {
    color: #00aa00;
    text-decoration: none;
}

body.woocommerce-checkout .ewp-checkout-terms-slot a:hover,
body.woocommerce-checkout .ewp-checkout-terms-slot a:focus {
    color: #009600;
    text-decoration: underline;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input input[type="text"],
body.woocommerce-checkout .wc-block-components-text-input input[type="email"],
body.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
body.woocommerce-checkout .wc-block-components-text-input input[type="number"],
body.woocommerce-checkout .wc-block-components-text-input textarea,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-combobox-control .components-form-token-field__input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-checkout select:not([name*="payment"]):not([id*="payment"]) {
    border: 1.5px solid #00aa00 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    background: #fff !important;
}

body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container {
    border-radius: 999px !important;
    background: #fff !important;
}

body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label {
    color: #4b5563 !important;
}

body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__expand {
    fill: #00aa00 !important;
}

body.woocommerce-checkout .wc-block-components-text-input textarea {
    border-radius: 20px !important;
}

body.woocommerce-checkout .wc-block-components-text-input.is-active input,
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input textarea:focus,
body.woocommerce-checkout .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-checkout select:not([name*="payment"]):not([id*="payment"]):focus {
    border-color: #00aa00 !important;
    box-shadow: 0 0 0 3px rgba(0, 170, 0, 0.14) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link),
body.woocommerce-checkout .woocommerce #payment #place_order,
body.woocommerce-checkout .woocommerce .button.alt,
body.woocommerce-checkout .woocommerce button.button.alt {
    background: #00aa00 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):hover,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):focus,
body.woocommerce-checkout .woocommerce #payment #place_order:hover,
body.woocommerce-checkout .woocommerce #payment #place_order:focus,
body.woocommerce-checkout .woocommerce .button.alt:hover,
body.woocommerce-checkout .woocommerce .button.alt:focus,
body.woocommerce-checkout .woocommerce button.button.alt:hover,
body.woocommerce-checkout .woocommerce button.button.alt:focus {
    background: #009600 !important;
    color: #fff !important;
}

body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-totals-wrapper,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #payment {
    border-radius: 18px;
}

/* Checkout: ocultar cupones en resumen del pedido. */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
body.woocommerce-checkout .wc-block-components-totals-coupon,
body.woocommerce-checkout .wc-block-components-order-summary__coupon,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon {
    display: none !important;
}
