/**
 * Premium CTA UX - Frontend CSS v1.0.6
 * NUCLEAR FORCE: Variable products FULL WIDTH
 */

/* ===== DESKTOP CTA ===== */
.single-product .pcta-desktop-cta,
.single-product .summary .pcta-desktop-cta,
.woocommerce div.product .pcta-desktop-cta {
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

/* Quantity Selector */
.single-product .pcta-quantity-wrapper,
.woocommerce .pcta-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 16px;
    width: auto;
    max-width: 160px;
    gap: 0;
    overflow: hidden;
}

.single-product .pcta-qty-btn,
.woocommerce .pcta-qty-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: background 0.2s;
    flex-shrink: 0;
}

.single-product .pcta-qty-btn:hover {
    background: #f5f5f5;
}

.single-product .pcta-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.single-product .pcta-qty-btn svg {
    width: 18px;
    height: 18px;
}

.single-product .pcta-qty-input,
.woocommerce .pcta-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 12px 8px;
    -moz-appearance: textfield;
    appearance: textfield;
    background: transparent;
    flex-shrink: 0;
}

.single-product .pcta-qty-input::-webkit-outer-spin-button,
.single-product .pcta-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.single-product .pcta-qty-input:focus {
    outline: none;
}

/* Buttons Wrapper - MAXIMUM FORCE FULL WIDTH */
.pcta-buttons-wrapper,
.single-product .pcta-buttons-wrapper,
.woocommerce .pcta-buttons-wrapper,
.single-product .summary .pcta-buttons-wrapper,
.single-product .variations_form .pcta-buttons-wrapper,
.single-product form.cart .pcta-buttons-wrapper,
.woocommerce div.product .pcta-buttons-wrapper,
.woocommerce div.product .variations_form .pcta-buttons-wrapper,
body.single-product .variations_form .pcta-buttons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
}

/* Button Base - NUCLEAR FORCE FULL WIDTH */
.pcta-btn,
.single-product .pcta-btn,
.woocommerce .pcta-btn,
.single-product .summary .pcta-btn,
.single-product .variations_form .pcta-btn,
.single-product form.cart .pcta-btn,
.woocommerce div.product .pcta-btn,
.woocommerce div.product .variations_form .pcta-btn,
.woocommerce div.product form.cart .pcta-btn,
body.single-product .variations_form .pcta-btn,
body.single-product form.cart .pcta-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 54px !important;
    border-radius: var(--pcta-button-radius, 6px) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    flex: 1 1 100% !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    box-sizing: border-box !important;
    align-self: stretch !important;
}

.single-product .pcta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SECONDARY (Add to Cart): WHITE + GREEN BORDER */
.pcta-btn-secondary,
.single-product .pcta-btn-secondary,
.woocommerce .pcta-btn-secondary,
.single-product .variations_form .pcta-btn-secondary,
.single-product form.cart .pcta-btn-secondary,
.woocommerce div.product .pcta-btn-secondary,
.woocommerce div.product .variations_form .pcta-btn-secondary,
body.single-product .variations_form .pcta-btn-secondary {
    background: #ffffff !important;
    color: var(--pcta-primary-bg, #2d5f3f) !important;
    border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
}

.pcta-btn-secondary:hover:not(:disabled),
.single-product .pcta-btn-secondary:hover:not(:disabled) {
    background: #f0f8f4 !important;
    color: var(--pcta-primary-bg, #2d5f3f) !important;
}

/* PRIMARY (Buy Now): SOLID GREEN */
.pcta-btn-primary,
.single-product .pcta-btn-primary,
.woocommerce .pcta-btn-primary,
.single-product .variations_form .pcta-btn-primary,
.single-product form.cart .pcta-btn-primary,
.woocommerce div.product .pcta-btn-primary,
.woocommerce div.product .variations_form .pcta-btn-primary,
body.single-product .variations_form .pcta-btn-primary {
    background: var(--pcta-primary-bg, #2d5f3f) !important;
    color: #ffffff !important;
    border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
}

.pcta-btn-primary:hover:not(:disabled),
.single-product .pcta-btn-primary:hover:not(:disabled) {
    background: var(--pcta-primary-hover, #234a31) !important;
    color: #ffffff !important;
}

/* Loading State */
.pcta-btn.loading .pcta-btn-text {
    opacity: 0;
}

.pcta-btn.loading .pcta-btn-loader {
    display: block !important;
}

.pcta-spinner {
    animation: pcta-spin 1s linear infinite;
}

@keyframes pcta-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== MOBILE STICKY BAR ===== */
.pcta-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--pcta-sticky-bg, #ffffff);
    z-index: 9999;
    display: none;
    padding: 12px 16px;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.15);
}

.pcta-sticky-inner {
    max-width: 100%;
}

.pcta-sticky-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Sticky Add to Cart - WHITE + GREEN BORDER */
.pcta-sticky-btn-secondary,
.pcta-sticky-btn.pcta-sticky-add-to-cart {
    flex: 1;
    height: 50px;
    border-radius: var(--pcta-button-radius, 6px) !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff !important;
    color: var(--pcta-primary-bg, #2d5f3f) !important;
    border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
}

/* Sticky Buy Now - SOLID GREEN */
.pcta-sticky-btn-primary,
.pcta-sticky-btn.pcta-sticky-buy-now {
    flex: 1;
    height: 50px;
    border-radius: var(--pcta-button-radius, 6px) !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--pcta-primary-bg, #2d5f3f) !important;
    color: #ffffff !important;
    border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
}

.pcta-sticky-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pcta-sticky-btn-secondary:hover:not(:disabled) {
    background: #f0f8f4 !important;
}

.pcta-sticky-btn-primary:hover:not(:disabled) {
    background: var(--pcta-primary-hover, #234a31) !important;
}

.pcta-sticky-btn.loading .pcta-btn-text {
    opacity: 0;
}

.pcta-sticky-btn.loading .pcta-btn-loader {
    display: block !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pcta-sticky-bar {
        display: block !important;
    }

    .single-product .pcta-quantity-wrapper {
        max-width: 140px;
    }

    .single-product .pcta-qty-input {
        font-size: 16px;
        width: 40px;
    }

    .single-product .pcta-qty-btn {
        width: 40px;
        height: 40px;
    }

    .single-product .pcta-btn {}

    /* SECONDARY (Add to Cart): WHITE + GREEN BORDER */
    .pcta-btn-secondary,
    .single-product .pcta-btn-secondary,
    .woocommerce .pcta-btn-secondary,
    .single-product .variations_form .pcta-btn-secondary,
    .single-product form.cart .pcta-btn-secondary,
    .woocommerce div.product .pcta-btn-secondary,
    .woocommerce div.product .variations_form .pcta-btn-secondary,
    body.single-product .variations_form .pcta-btn-secondary {
        background: #ffffff !important;
        color: var(--pcta-primary-bg, #2d5f3f) !important;
        border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
    }

    .pcta-btn-secondary:hover:not(:disabled),
    .single-product .pcta-btn-secondary:hover:not(:disabled) {
        background: #f0f8f4 !important;
        color: var(--pcta-primary-bg, #2d5f3f) !important;
    }

    /* PRIMARY (Buy Now): SOLID GREEN */
    .pcta-btn-primary,
    .single-product .pcta-btn-primary,
    .woocommerce .pcta-btn-primary,
    .single-product .variations_form .pcta-btn-primary,
    .single-product form.cart .pcta-btn-primary,
    .woocommerce div.product .pcta-btn-primary,
    .woocommerce div.product .variations_form .pcta-btn-primary,
    body.single-product .variations_form .pcta-btn-primary {
        background: var(--pcta-primary-bg, #2d5f3f) !important;
        color: #ffffff !important;
        border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
    }

    .pcta-btn-primary:hover:not(:disabled),
    .single-product .pcta-btn-primary:hover:not(:disabled) {
        background: var(--pcta-primary-hover, #234a31) !important;
        color: #ffffff !important;
    }

    /* Loading State */
    .pcta-btn.loading .pcta-btn-text {
        opacity: 0;
    }

    .pcta-btn.loading .pcta-btn-loader {
        display: block !important;
    }

    .pcta-spinner {
        animation: pcta-spin 1s linear infinite;
    }

    @keyframes pcta-spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* ===== MOBILE STICKY BAR ===== */
    .pcta-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--pcta-sticky-bg, #ffffff);
        z-index: 9999;
        display: none;
        padding: 12px 16px;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.15);
    }

    .pcta-sticky-inner {
        max-width: 100%;
    }

    .pcta-sticky-buttons {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    /* Sticky Add to Cart - WHITE + GREEN BORDER */
    .pcta-sticky-btn-secondary,
    .pcta-sticky-btn.pcta-sticky-add-to-cart {
        flex: 1;
        height: 50px;
        border-radius: var(--pcta-button-radius, 6px) !important;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #ffffff !important;
        color: var(--pcta-primary-bg, #2d5f3f) !important;
        border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
    }

    /* Sticky Buy Now - SOLID GREEN */
    .pcta-sticky-btn-primary,
    .pcta-sticky-btn.pcta-sticky-buy-now {
        flex: 1;
        height: 50px;
        border-radius: var(--pcta-button-radius, 6px) !important;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: var(--pcta-primary-bg, #2d5f3f) !important;
        color: #ffffff !important;
        border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
    }

    .pcta-sticky-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .pcta-sticky-btn-secondary:hover:not(:disabled) {
        background: #f0f8f4 !important;
    }

    .pcta-sticky-btn-primary:hover:not(:disabled) {
        background: var(--pcta-primary-hover, #234a31) !important;
    }

    .pcta-sticky-btn.loading .pcta-btn-text {
        opacity: 0;
    }

    .pcta-sticky-btn.loading .pcta-btn-loader {
        display: block !important;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .pcta-sticky-bar {
            display: block !important;
        }

        .single-product .pcta-quantity-wrapper {
            max-width: 140px;
        }

        .single-product .pcta-qty-input {
            font-size: 16px;
            width: 40px;
        }

        .single-product .pcta-qty-btn {
            width: 40px;
            height: 40px;
        }

        .single-product .pcta-btn {
            height: 50px !important;
            font-size: 15px !important;
        }
    }

    @media (min-width: 769px) {
        ```css

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .pcta-sticky-bar {
                display: block !important;
            }

            .single-product .pcta-quantity-wrapper {
                max-width: 140px;
            }

            .single-product .pcta-qty-input {
                font-size: 16px;
                width: 40px;
            }

            .single-product .pcta-qty-btn {
                width: 40px;
                height: 40px;
            }

            .single-product .pcta-btn {}

            /* SECONDARY (Add to Cart): WHITE + GREEN BORDER */
            .pcta-btn-secondary,
            .single-product .pcta-btn-secondary,
            .woocommerce .pcta-btn-secondary,
            .single-product .variations_form .pcta-btn-secondary,
            .single-product form.cart .pcta-btn-secondary,
            .woocommerce div.product .pcta-btn-secondary,
            .woocommerce div.product .variations_form .pcta-btn-secondary,
            body.single-product .variations_form .pcta-btn-secondary {
                background: #ffffff !important;
                color: var(--pcta-primary-bg, #2d5f3f) !important;
                border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
            }

            .pcta-btn-secondary:hover:not(:disabled),
            .single-product .pcta-btn-secondary:hover:not(:disabled) {
                background: #f0f8f4 !important;
                color: var(--pcta-primary-bg, #2d5f3f) !important;
            }

            /* PRIMARY (Buy Now): SOLID GREEN */
            .pcta-btn-primary,
            .single-product .pcta-btn-primary,
            .woocommerce .pcta-btn-primary,
            .single-product .variations_form .pcta-btn-primary,
            .single-product form.cart .pcta-btn-primary,
            .woocommerce div.product .pcta-btn-primary,
            .woocommerce div.product .variations_form .pcta-btn-primary,
            body.single-product .variations_form .pcta-btn-primary {
                background: var(--pcta-primary-bg, #2d5f3f) !important;
                color: #ffffff !important;
                border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
            }

            .pcta-btn-primary:hover:not(:disabled),
            .single-product .pcta-btn-primary:hover:not(:disabled) {
                background: var(--pcta-primary-hover, #234a31) !important;
                color: #ffffff !important;
            }

            /* Loading State */
            .pcta-btn.loading .pcta-btn-text {
                opacity: 0;
            }

            .pcta-btn.loading .pcta-btn-loader {
                display: block !important;
            }

            .pcta-spinner {
                animation: pcta-spin 1s linear infinite;
            }

            @keyframes pcta-spin {
                from {
                    transform: rotate(0deg);
                }

                to {
                    transform: rotate(360deg);
                }
            }

            /* ===== MOBILE STICKY BAR ===== */
            .pcta-sticky-bar {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                background: var(--pcta-sticky-bg, #ffffff);
                z-index: 9999;
                display: none;
                padding: 12px 16px;
                box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.15);
            }

            .pcta-sticky-inner {
                max-width: 100%;
            }

            .pcta-sticky-buttons {
                display: flex;
                gap: 10px;
                width: 100%;
            }

            /* Sticky Add to Cart - WHITE + GREEN BORDER */
            .pcta-sticky-btn-secondary,
            .pcta-sticky-btn.pcta-sticky-add-to-cart {
                flex: 1;
                height: 50px;
                border-radius: var(--pcta-button-radius, 6px) !important;
                font-size: 15px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                background: #ffffff !important;
                color: var(--pcta-primary-bg, #2d5f3f) !important;
                border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
            }

            /* Sticky Buy Now - SOLID GREEN */
            .pcta-sticky-btn-primary,
            .pcta-sticky-btn.pcta-sticky-buy-now {
                flex: 1;
                height: 50px;
                border-radius: var(--pcta-button-radius, 6px) !important;
                font-size: 15px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                background: var(--pcta-primary-bg, #2d5f3f) !important;
                color: #ffffff !important;
                border: 2px solid var(--pcta-primary-bg, #2d5f3f) !important;
            }

            .pcta-sticky-btn:disabled {
                opacity: 0.5;
                cursor: not-allowed;
            }

            .pcta-sticky-btn-secondary:hover:not(:disabled) {
                background: #f0f8f4 !important;
            }

            .pcta-sticky-btn-primary:hover:not(:disabled) {
                background: var(--pcta-primary-hover, #234a31) !important;
            }

            .pcta-sticky-btn.loading .pcta-btn-text {
                opacity: 0;
            }

            .pcta-sticky-btn.loading .pcta-btn-loader {
                display: block !important;
            }

            /* ===== RESPONSIVE ===== */
            @media (max-width: 768px) {
                .pcta-sticky-bar {
                    display: block !important;
                }

                .single-product .pcta-quantity-wrapper {
                    max-width: 140px;
                }

                .single-product .pcta-qty-input {
                    font-size: 16px;
                    width: 40px;
                }

                .single-product .pcta-qty-btn {
                    width: 40px;
                    height: 40px;
                }

                .single-product .pcta-btn {
                    height: 50px !important;
                    font-size: 15px !important;
                }
            }

            @media (min-width: 769px) {
                .pcta-sticky-bar {
                    display: none !important;
                }
            }

            /* ===== VARIABLE PRODUCT FIXES - NUCLEAR OPTION ===== */
            /* 
   We need to be extremely aggressive here because themes and WooCommerce 
   often have very specific selectors for variable products.
*/

            /* 1. Force the main form to be block and full width */
            .single-product form.variations_form.cart {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            /* 2. Force the variation wrapper (where the price and button usually live) to be full width */
            .single-product .single_variation_wrap {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            /* 3. Force the WooCommerce add to cart container to be full width */
            .single-product .woocommerce-variation-add-to-cart {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                max-width: 100% !important;
                float: none !important;
                margin: 0 !important;
            }

            /* 4. Target OUR container specifically within the variable form */
            .single-product .variations_form .pcta-desktop-cta {
                width: 100% !important;
                max-width: 100% !important;
                margin: 20px 0 !important;
                display: block !important;
                /* Ensure it's not inline-block */
                float: none !important;
                clear: both !important;
            }

            /* 5. Target the buttons wrapper within the variable form */
            .single-product .variations_form .pcta-buttons-wrapper {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                max-width: 100% !important;
                gap: 12px !important;
                box-sizing: border-box !important;
            }

            /* 6. Target the buttons themselves within the variable form - SUPER SPECIFIC */
            .single-product .variations_form .pcta-buttons-wrapper .pcta-btn,
            .single-product .variations_form .pcta-desktop-cta .pcta-btn,
            .single-product .variations_form .woocommerce-variation-add-to-cart .pcta-btn {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 100% !important;
                display: flex !important;
                flex: 1 1 auto !important;
                box-sizing: border-box !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            /* 7. Hide default WooCommerce elements again just to be safe */
            .single-product .single_add_to_cart_button.button.alt,
            .single-product div.quantity,
            .woocommerce div.product form.cart div.quantity,
            .single-product .variations_form .quantity {
                display: none !important;
            }

            /* 8. Fix for some themes that put the button in a flex row with quantity */
            .single-product .variations_form .woocommerce-variation-add-to-cart {
                flex-wrap: wrap !important;
            }

            /* 9. Ensure our quantity wrapper doesn't mess up the flow */
            .single-product .variations_form .pcta-quantity-wrapper {
                margin-bottom: 15px !important;
                align-self: flex-start !important;
                /* Keep quantity left aligned if desired, or center/stretch */
            }

            ```