/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/
@keyframes jump{0%{bottom:20px}50%{bottom:40px}100%{bottom:20px}}
#ast-scroll-top {animation: jump 5s infinite;}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
#wpadminbar{color: #ffffff;background: #004abc;}
#wpadminbar .ab-top-menu>li.hover>.ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item, #wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus {
        background: #1479ce;
    color: #ffffff;
}
#wpadminbar .menupop .ab-sub-wrapper, #wpadminbar .shortlink-input {
    box-shadow: 0 3px 5px rgb(0 0 0 / 20%);
    background: #1479ce;
}
#wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop ul li a strong, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
    color: #ffffff;
    color: rgb(255 255 255);
}
#wpadminbar .quicklinks .menupop.hover ul li a:hover{color: #7dd3ff;}
#wp-admin-bar-elementor_edit_page .elementor-edit-link-type {background: #2196f3;}
.woocommerce a.button:hover, .woocommerce button.button.alt:hover, .woocommerce-page table.cart td.actions .button:hover, .woocommerce-page #content table.cart td.actions .button:hover, .woocommerce a.button.alt:hover, .woocommerce .woocommerce-message a.button:hover, .ast-site-header-cart .widget_shopping_cart .buttons .button.checkout:hover, .woocommerce button.button.alt.disabled:hover, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover {
    border-color: #6B8C7E;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .woocommerce-message a.button:hover, .woocommerce #respond input#submit:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce input.button:hover, .woocommerce button.button.alt.disabled:hover, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover {
    color: #ffffff;
    border-color: #6B8C7E;
    background-color: #6B8C7E;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button, .woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled], .woocommerce input.button:disabled:hover, .woocommerce input.button:disabled[disabled]:hover, .woocommerce #respond input#submit, .woocommerce button.button.alt.disabled, .wc-block-grid__products .wc-block-grid__product .wp-block-button__link, .wc-block-grid__product-onsale {
    color: #ffffff;
}
.woocommerce-message {
    display: none;
}
.slot{margin-left: 10px;
    background-color: #6B8C7E;
    color: #ffffff;}
.slot:hover {
    background-color:#86AF9D;
    color: #ffffff;
}

// Redirect to a custom URL after purchase based on product ID
add_action( 'template_redirect', 'custom_redirect_after_purchase' );
function custom_redirect_after_purchase() {
    // Check if order is complete
    if ( is_wc_endpoint_url( 'order-received' ) ) {
        // Get the last order ID
        $order_id = wc_get_order_id_by_order_key( $_GET['key'] );
        $order = wc_get_order( $order_id );
        
        // Check the products in the order
        foreach ( $order->get_items() as $item ) {
            // Replace 2824 with your course product ID
            if ( $item->get_product_id() == 2824 ) {
                // Replace this URL with your Articulate course URL
                wp_redirect( 'https://courses.carolkeenanguidance.com/share/course/fdd5996f-dce1-4c2b-aaba-b07cdd841deb' );
                exit;
            }
        }
    }
}





