/*
Theme Name: Twenty Twenty Five Child Theme
Theme URI: 
Author: vortexg
Author URI: 
Description: Child Theme For Twenty Twenty Five
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: twenty-twenty-five-child-theme
Tags: 
*/


/**
 * Module: Account Downloads
 * Scope: WooCommerce My Account - Downloads Tab
 *
 * Triggered by: .is-style-enhanced-downloads (applied to parent Group/Container)
 */

/* 
 * Target the specific download link within the table cell.
 * We scope this to a custom parent class (.is-style-enhanced-downloads) 
 * to prevent leaking styles to other buttons or parts of the site.
 */
.is-style-enhanced-downloads .woocommerce-MyAccount-downloads-file {
    /* Layout: Ensure it behaves like a box, not a text link */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Spacing: Comfortable hit area for touch targets */
    padding: 0.75rem 1.5rem;

    /* Typography: inherit theme fonts, ensure readability */
    font-size: var(--wp--preset--font-size--small, 0.875rem);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    text-align: center;

    /* Visuals: Primary button look using theme vars (fallback to black/white) */
    background-color: var(--wp--preset--color--primary, #111);
    color: var(--wp--preset--color--background, #fff);
    border: 1px solid transparent;
    border-radius: 4px;
    /* Slight rounding for modern feel */

    /* Transitions: Smooth interaction states */
    transition: all 0.2s ease-in-out;
}

/* 
 * Hover & Focus States 
 * Ensure high contrast and visual feedback
 */
.is-style-enhanced-downloads .woocommerce-MyAccount-downloads-file:hover,
.is-style-enhanced-downloads .woocommerce-MyAccount-downloads-file:focus {
    background-color: var(--wp--preset--color--secondary, #333);
    color: var(--wp--preset--color--background, #fff);
    text-decoration: none;
    transform: translateY(-1px);
    /* Subtle lift effect */
}

/* 
 * Active / Click State 
 * Tactile feedback
 */
.is-style-enhanced-downloads .woocommerce-MyAccount-downloads-file:active {
    transform: translateY(0);
}

/* 
 * Table Cell Adjustments
 * Ensure the button fits nicely within the legacy table structure
 */
.is-style-enhanced-downloads td.download-file {
    vertical-align: middle;
    padding: 1rem 0;
    /* Add breathing room in the table */
}




.mp-checkout-custom-load {
    display: none !important;
}






#radio-control-wc-payment-method-options-ppcp-gateway__content {
    display: none !important;
}


/* Make Nextend Social Login Button 25% Bigger */
.nsl-container {
    transform: scale(1.25);
    transform-origin: center top;
    margin-bottom: 25px; 
}

/* Bulletproof 2-line clamp for WooCommerce product titles (Desktop & Mobile Carousel) */
li.wc-block-product .wp-block-post-title {
    /* 1. Force the line clamp */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;

    /* 2. Force text wrapping (prevents carousel flex rules from breaking text) */
    white-space: normal !important;

    /* 3. Lock the height to exactly 2 lines (1.4 line-height * 2 = 2.8em) */
    min-height: 2.8em !important;
    max-height: 2.8em !important;
}

/* Ensure the link inside the title behaves like standard text */
li.wc-block-product .wp-block-post-title a {
    display: inline !important;
    white-space: normal !important;
}