/*
Theme Name:  RecorderMax Child
Theme URI:   https://www.ptclcallrecorder.pk
Author:      RecorderMax
Author URI:  https://www.ptclcallrecorder.pk
Description: Child theme for RecorderMax. All site-specific customisations (WooCommerce template overrides, product page tweaks, landing page templates) live here. Safe from parent theme updates.
Version:     1.0.0
Template:    recordermax
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License:     Proprietary
Text Domain: recordermax-child
*/

/*
 * ── HOW TO CUSTOMISE ──────────────────────────────────────────
 *
 * CSS: Add your overrides below. Target .rm-* classes from parent.
 *      CSS custom properties can be redefined here to retheme
 *      individual sections:
 *
 *      :root { --rm-amber: #e89000; }  ← changes amber sitewide
 *
 * PHP: Add hooks and filters in functions.php (this folder).
 *
 * WooCommerce templates: Copy any file from
 *      recordermax/woocommerce/
 *   to
 *      recordermax-child/woocommerce/
 *   and edit freely. WooCommerce will use the child version.
 *
 * Page templates: Any file named template-*.php or tr500-*.php
 *   in this folder will appear in Pages → Page Attributes → Template.
 * ──────────────────────────────────────────────────────────── */

/* ── Proceed to Checkout — green override ─────────────────────
   Targets the button regardless of .woocommerce wrapper context.
   Child theme style.css loads last so this wins everything. */
a.checkout-button,
a.checkout-button.button,
a.checkout-button.alt,
a.checkout-button.wc-forward {
    display: block !important;
    background: #16a34a !important;
    color: #fff !important;
    padding: 16px 28px !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    margin-top: 16px !important;
    border: none !important;
    transition: background .2s !important;
}
a.checkout-button:hover,
a.checkout-button.button:hover,
a.checkout-button.alt:hover {
    background: #15803d !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── WooCommerce Block Cart — Proceed to Checkout green ───── */
.wc-block-cart__submit-button,
.wc-block-cart__submit-container .wc-block-components-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
    background-color: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a !important;
    text-decoration: none !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-cart__submit-container .wc-block-components-button:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #fff !important;
}
