/*
Theme Name: SkillStream Child
Theme URI: https://skillstream.qodeinteractive.com
Description: A child theme of SkillStream
Author: Select Themes
Author URI: https://qodeinteractive.com
Version: 1.0
Text Domain: skillstream
Template: skillstream
*/
.we_can_help  .elementor-image-box-title {
    margin-top: 0px;
}
.header-style1 nav.navigator {
    gap: 30px;
}
.custom-price-option-error {
    color: #b32d2e;
    font-size: 16px;
    margin-top: 23px;
    text-align: center;
    font-weight: 600;
}
.we_can_help  .elementor-image-box-title {
    margin-top: 0px;
    font-size: 22px!important;
    line-height: 32px!important;
}
.we_can_help {
    margin-bottom: 20px!important;
}



  
    :root{
        --pcb-bg:#F5F1EA;
        --pcb-ink:#1C1B19;
        --pcb-sub:#6B6660;
        --pcb-line:#E7E1D6;
        --pcb-accent:#C1571F;
        --pcb-card:#FFFFFF;
    }
    .pcb-wrap{
        background:var(--pcb-bg);
        padding:48px 24px 96px;
        color:var(--pcb-ink);
    }
    .pcb-grid{
        max-width:1200px;
        margin:0 auto;
        display:grid;
        grid-template-columns:260px 1fr;
        gap:32px;
        align-items:start;
    }
    @media (max-width:820px){
        .pcb-grid{ grid-template-columns:1fr; }
    }
    .pcb-sidebar{ position:sticky; top:24px; }
    .pcb-sidebar-title{
        font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
        color:var(--pcb-sub); margin:0 0 12px 4px;
    }
    .pcb-cat-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
    .pcb-cat-link{
        display:flex; justify-content:space-between; align-items:center; gap:8px;
        padding:10px 12px; border-radius:9px; text-decoration:none; color:var(--pcb-ink);
        font-size:14.5px; font-weight:500; line-height:1.3;
        transition:background .15s ease, color .15s ease;
    }
    .pcb-cat-link:hover{ background:#EFE9DC; }
    .pcb-cat-link.is-active{ background:var(--pcb-ink); color:#fff; font-weight:600; }
    .pcb-cat-count{ font-size:12px; color:var(--pcb-sub); flex-shrink:0; }
    .pcb-cat-link.is-active .pcb-cat-count{ color:rgba(255,255,255,.65); }
    .pcb-subcat-list{ list-style:none; margin:0 0 6px; padding:0 0 0 14px; border-left:2px solid var(--pcb-line); }
    .pcb-subcat-list .pcb-cat-link{ font-size:13.5px; padding:7px 10px; }
    .pcb-header{
        display:flex; justify-content:space-between; align-items:baseline;
        padding-bottom:16px; border-bottom:1px solid var(--pcb-line); margin-bottom:24px;
    }
    .pcb-heading{
         font-size:32px; font-weight:400;
        margin:0; letter-spacing:-0.01em;
    }
    .pcb-unit-count{ font-size:14px; color:var(--pcb-sub); white-space:nowrap; }
    .pcb-rows{ display:flex; flex-direction:column; gap:14px; }
    .pcb-row{
        background:var(--pcb-card); border:1px solid var(--pcb-line); border-radius:14px;
        padding:20px 22px; display:flex; justify-content:space-between; align-items:center; gap:20px;
    }
    .pcb-row-title{
         font-size:19px; font-weight:400;
        margin:0 0 6px; color:var(--pcb-ink); line-height:1.3;
    }
    .pcb-row-title a{ color:inherit; text-decoration:none; }
    .pcb-row-title a:hover{ text-decoration:underline; }
    .pcb-row-sub{ font-size:13.5px; color:var(--pcb-sub); }
    .pcb-view-btn{
        flex-shrink:0; border:1.5px solid var(--pcb-ink); border-radius:999px;
        padding:9px 22px; font-size:14px; font-weight:600; color:var(--pcb-ink);
        text-decoration:none; white-space:nowrap;
        transition:background .15s ease, color .15s ease;
    }
    .pcb-view-btn:hover{ background:var(--pcb-ink); color:#fff; }
    .pcb-empty{
        background:var(--pcb-card); border:1px solid var(--pcb-line); border-radius:14px;
        padding:40px; text-align:center; color:var(--pcb-sub); font-size:15px;
    }
    .pcb-pagination{ display:flex; justify-content:center; gap:8px; margin-top:32px; }
    .pcb-pagination a, .pcb-pagination span{
        display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px;
        padding:0 10px; border-radius:9px; border:1px solid var(--pcb-line);
        text-decoration:none; color:var(--pcb-ink); font-size:14px;
    }
    .pcb-pagination .current{ background:var(--pcb-ink); color:#fff; border-color:var(--pcb-ink); }
.na img.qodef-parallax-img {
    display: none;
}


/* Make Add to Cart form vertical */
.single-product form.cart{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
}

/* Package options */
.single-product .custom-price-options{
    order:1;
    width:100%;
    margin-bottom:25px;
}

/* Hide quantity */
.single-product form.cart .quantity,
.single-product form.cart .qodef-quantity-selector{
    display:none !important;
}

/* Add to cart button below */
.single-product form.cart .single_add_to_cart_button{
    order:2;
    width:100%;
    margin-top:20px;
}

/* Full width button */
.single-product form.cart .single_add_to_cart_button{
    justify-content:center;
}

.package-options{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.package-card{
    display:block;
    border:1px solid #d8d1c7;
    border-radius:18px;
    padding:12px 20px;
    cursor:pointer;
    transition:.3s;
    position:relative;
}

.package-card:hover{
    border-color:#111;
}

.package-card input{
    position:absolute;
    opacity:0;
}

.package-content{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.package-left{
    display:flex;
    gap:15px;
    flex:1;
}

.package-left::before{
    content:"";
    width:16px;
    height:16px;
    border:2px solid #b8b8b8;
    border-radius:0px;   /* Square instead of circle */
    margin-top:3px;
    flex-shrink:0;
    transition:0.3s;
}

.package-title{
    display:block;
    font-size:16px;
    font-weight:500;
    line-height:1.4;
}
.qodef-woo-single-inner {
    margin-bottom: 60px;
}
.package-save{
    display:block;
    color:#d26a2f;
    font-size:18px;
}

.package-right{
    text-align:right;
    white-space:nowrap;
}

.old-price{
    display:block;
    text-decoration:line-through;
    color:#777;
    font-size:18px;
}

.new-price{
    font-size:16px;
    font-weight:700;
}

.package-card:has(input:checked){
    border:2px solid #111;
}

.package-card:has(input:checked) .package-left::before{
    content:"✓";
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0a1627;
    border-color:#0a1627;
    color:#fff;
    font-size:12px;
    font-weight:700;
}


.nm .qodef-button.qodef-layout--textual .qodef-m-text {
    color: #fff !important;
}
.nm .qodef-button .qodef-m-icon-holder.qodef-btn-style {
    color: #fff;
}

.single-product .pcb-grid {
    display: inline-block;
    width: 100%;
}
.summary.entry-summary h1.qodef-woo-product-title.product_title.entry-title.qodef--default-title {
    display: none;
}
.single-product .custom-price-options h4 {
    font-size: 24px;
    margin-top: -10px;
}
.package-card {
    margin-bottom: 0px;
}
.woocommerce-product-rating {
    display: none!important;
}

.wp-singular #qodef-page-outer {
    margin-top: 0;
}
.wp-singular.page-template #qodef-page-header .qodef-header-logo-link {
    height: 67px;
}
.wp-singular.page-template #qodef-page-header-inner-2.qodef-skin--light nav>ul>li>a, .qodef-custom-header-layout.qodef-skin--light nav>ul>li>a{
	color:#000!important;
}
.wp-singular.page-template #qodef-page-header-inner-2.qodef-skin--light .qodef-opener-icon.qodef-source--icon-pack:not(.qodef--opened), #qodef-page-header-inner-2.qodef-skin--light .qodef-opener-icon.qodef-source--predefined:not(.qodef--opened), #qodef-page-header-inner-2.qodef-skin--light .qodef-opener-icon.qodef-source--svg-path:not(.qodef--opened), .qodef-custom-header-layout.qodef-skin--light .qodef-opener-icon.qodef-source--icon-pack:not(.qodef--opened), .qodef-custom-header-layout.qodef-skin--light .qodef-opener-icon.qodef-source--predefined:not(.qodef--opened), .qodef-custom-header-layout.qodef-skin--light .qodef-opener-icon.qodef-source--svg-path:not(.qodef--opened){
    color: #0E1728!important;
}
.wp-singular .qodef-m-content.qodef-content-grid::before {
    width: 100%;
    height: 100%;
    background: #0e1728ad;
    position: absolute;
    content: "";
    left: 0;
}
.wp-singular h1.qodef-m-title.entry-title {
    position: absolute;
    left: 0;
    right: 0;
}
.wp-singular.page-template .qodef-page-title {
    height: 450px;
}
.qodef-page-title.qodef-title-area-clip {
    padding-bottom: 40px;
}
.get_in_toch_from.elementor-widget-shortcode {
    padding: 30px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.wp-singular.page-template  .qodef-header-standard--center #qodef-page-header-inner .qodef-header-navigation {
    margin-right: 90px;
}
#qodef-page-header-inner-2.qodef-skin--light .qodef-header-logo-link img.qodef--light {
    margin-top: 0!important;
}
.wp-singular.page-template h1.qodef-m-title.entry-title {
    text-align: center;
}
.product-feature-boxes{
    display:flex;
    gap:20px;
    margin:35px 0;
    flex-wrap:wrap;
}

.product-feature-boxes .feature-box{
    flex:1;
    min-width:180px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:14px;
    padding:24px;
    box-sizing:border-box;
}

.product-feature-boxes .feature-box h4{
    margin:0 0 12px;
    color:#d46a2f;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
}

.product-feature-boxes .feature-box p{
    margin:0;
    font-size:16px;
    line-height:1.6;
    color:#222;
}

.product-included{
    margin-top:40px;
}

.product-included h2{
    font-size:22px;
    margin-bottom:25px;
    font-weight:700;
}

.included-columns{
    display:flex;
    gap:60px;
    flex-wrap:wrap;
}

.included-columns ul{
    flex:1;
    min-width:250px;
    margin:0;
    padding-left:25px;
}

.included-columns li {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 25px;
}

.included-columns li::marker{
    color:#d46a2f;
}

@media(max-width:767px){

    .product-feature-boxes{
        flex-direction:column;
    }

    .included-columns{
        flex-direction:column;
        gap:10px;
    }

    .product-included h2{
        font-size:32px;
    }
}
.qodef-header-navigation ul li.qodef-menu-item--narrow ul {width:290px!important}


.qodef--cart {
    display: flex;
    justify-content: space-between;
	gap:60px;
}
form.woocommerce-cart-form {
    width: 65%;
}
.cart-collaterals {
    width: 30%;
}


.cart-collaterals {
    background: #0A1627;
    border-radius: 16px;
    padding: 32px;
}

.cart-collaterals .cart_totals {
    margin-top: 0px!important;
}

.cart-collaterals .cart_totals h2 {
    font-size: 29px!important;
}
.wpcf7-response-output {
    color: #fff;
}
.cart-collaterals .cart_totals table.shop_table.shop_table_responsive {
    width: 100%!important;
}


/* Hide Update Cart button */
.woocommerce-cart button[name="update_cart"] {
    display: none !important;
}
/* Hide Quantity column */
.woocommerce-cart th.product-quantity,
.woocommerce-cart td.product-quantity {
    display: none !important;
}

/* Hide Update Cart button */
.woocommerce-cart button[name="update_cart"] {
    display: none !important;
}
/* Hide image column spacing */
.woocommerce-cart td.product-thumbnail,
.woocommerce-cart th.product-thumbnail {
    display: none !important;
}
.woocommerce-cart-form__contents {
    border-collapse: separate;
    border-spacing: 0 20px; /* 20px vertical gap */
}

.woocommerce-cart-form__contents tbody tr {
    background: #f7f3f3;
}
.woocommerce-page div.woocommerce .shop_table td, .woocommerce-page div.woocommerce .shop_table th {
    padding: 15px 20px 15px 15px;
}
.woocommerce-cart .shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents tbody tr:last-child {
    display: none !important;
}
.woocommerce-page div.woocommerce .shop_table td:first-child, .woocommerce-page div.woocommerce .shop_table th:first-child {
    padding-left: 15px!important;
}
.qodef-page-title.qodef-m.qodef-title--standard.qodef-alignment--left.qodef-vertical-alignment--window-top.qodef--has-image.qodef-title-area-clip.qodef-pull-content h1 {
    text-align: center;
    color: #fff;
}
.page-id-14 #qodef-page-inner {
    padding: 60px 0 100px;
}
form.checkout.woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

form.checkout.woocommerce-checkout div#customer_details {
    width: 60%;
}

form.checkout.woocommerce-checkout div#order_review {
    width: 40%;
}
h3#order_review_heading {
    margin-top: 0px!important;
}
.woocommerce-notices-wrapper {
    display: none;
}
input#payment_method_cod {
    display: block!important;
}
h1.product_title.entry-title {
    font-size: 32px;
    line-height: 43px;
}


.pcb-wrap {
    background-color: #e5e5e5 !important;
    padding: 60px !important;

    font-weight: 400 !important;
    color: #000000 !important;
	border-radius: 60px;
}
ul.pcb-cat-list {
    margin-top: 48px !important;
}
.qodef-woo-single-inner {
    display: block!important;
}
.package-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.package-card {
    display: block;
}
.qodef-woo-single-image {
    display: none!important;
}
/* Center the 7th item */
.package-card:nth-child(7) {
    grid-column: 2;
}

@media (max-width: 768px) {
    .package-options {
        grid-template-columns: 1fr;
    }

    .package-card:nth-child(7) {
        grid-column: auto;
    }
}

@media (max-width:767px){
	
}
@media (max-width:1024px){

	.woocommerce-page div.woocommerce .shop_table .variation {
		display: inline-block;
		margin: 10px 0!important;
	}	
}
@media (max-width:1180px){
.pcb-wrap {
	padding: 40px 20px !important;
	border-radius: 20px!important;
}
ul.pcb-cat-list {
    margin-top: 15px !important;
}
.pcb-sidebar {
    position: unset;
}
.pcb-heading {
    font-size: 26px!important;
}
.pcb-row .pcb-row-text {
    margin-bottom: 20px;
}	
.pcb-row {
	display: block;
	border-radius: 20px;
}
#qodef-woo-page.qodef--single form.cart {
    margin-top: 10px;
}
.single-product #qodef-page-inner {
    padding: 60px 0 60px;
}
.qodef--cart {
    display: block;
}
form.woocommerce-cart-form {
    width: 100%;
}
.cart-collaterals {
    width: 100%;
}
form.checkout.woocommerce-checkout {
    display: block;
}
form.checkout.woocommerce-checkout div#customer_details {
    width: 100%;
}
form.checkout.woocommerce-checkout div#order_review {
    width: 100%;
}
.cart-collaterals {
    padding: 20px!important;
}
tr.woocommerce-cart-form__cart-item.cart_item.qodef-product-type-product {
    padding: 20px!important;
}
h1.qodef-m-title.entry-title {
    font-size: 28px!important;
    line-height: 38px!important;
}
h2 {
    font-size: 26px!important;
    line-height: 36px!important;
}
.qodef-number-with-text {
    display: block;
}	
h1.qodef-m-title.entry-title {
    font-size: 36px;
    line-height: 46px;
}
.wp-singular .qodef-m-content.qodef-content-grid::before {
    top: 0;
}	
}






function aiat_fix_vaslibf_section_labels() {
    ?>
    <style>
        .vaslibf-section-label {
            text-transform: none !important;
        }
    </style>

    <script>
    (function () {

        function fixSectionLabels() {

            /*
             * Find every section label individually.
             * Do NOT use the active tab for all labels.
             */
            document.querySelectorAll('.vaslibf-section-label').forEach(function (label) {

                var text = label.textContent
                    .replace(/&AMP;/gi, '&')
                    .replace(/&amp;/gi, '&')
                    .replace(/\s+/g, ' ')
                    .trim();

                if (!text) {
                    return;
                }

                /*
                 * Only fix the capitalization.
                 *
                 * WHS & SAFETY
                 *        ↓
                 * WHS & Safety
                 *
                 * Other words remain normal Title Case.
                 */
                text = text.toLowerCase();

                text = text.replace(/\b[a-z]/g, function (letter) {
                    return letter.toUpperCase();
                });

                /*
                 * Keep known abbreviations uppercase.
                 */
                text = text.replace(/\bwhs\b/gi, 'WHS');

                label.textContent = text;
            });
        }


        function runFix() {
            requestAnimationFrame(function () {
                fixSectionLabels();
            });
        }


        /*
         * Initial load
         */
        if (document.readyState === 'loading') {
            document.addEventListener('DOMContentLoaded', runFix);
        } else {
            runFix();
        }


        /*
         * Watch only section labels that are dynamically created.
         */
        var observer = new MutationObserver(function (mutations) {

            var shouldFix = false;

            mutations.forEach(function (mutation) {

                if (mutation.type === 'childList') {

                    mutation.addedNodes.forEach(function (node) {

                        if (node.nodeType !== 1) {
                            return;
                        }

                        if (
                            (node.matches && node.matches('.vaslibf-section-label')) ||
                            (node.querySelector &&
                             node.querySelector('.vaslibf-section-label'))
                        ) {
                            shouldFix = true;
                        }

                    });
                }
            });

            if (shouldFix) {
                runFix();
            }

        });


        function startObserver() {

            if (!document.body) {
                return;
            }

            observer.observe(document.body, {
                childList: true,
                subtree: true
            });

        }


        if (document.body) {
            startObserver();
        } else {
            document.addEventListener(
                'DOMContentLoaded',
                startObserver
            );
        }

    })();
    </script>
    <?php
}

add_action('wp_footer', 'aiat_fix_vaslibf_section_labels', 999);