/*
Theme Name: SavingsXL
Theme URI: https://savingsxl.com/
Author: DCOM Team
Author URI: https://www.debt.com/
Description: A custom theme for SavingsXL with support for WordPress Full Site Editing.
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: savingsxl
Tags: full-site-editing, editor-style, block-patterns, block-styles
*/

/* ========================================
   Pricing Tables Responsive Styles
   ======================================== */

@media (max-width: 992px) {
    .wp-block-columns.is-layout-flex,
    .wp-container-core-columns-is-layout-14cf5ab5 {
        flex-direction: column !important;
        width: 100% !important;
    }

    .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }

    .eb-parent-wrapper,
    .eb-pricing-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .eb-pricing,
    .eb-pricing-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #benefits-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    .is-layout-constrained {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    #benefits-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .eb-pricing-title {
        font-size: 1.5rem !important;
    }
    
    .eb-pricing-subtitle {
        font-size: 0.85rem !important;
    }
    
    .eb-pricebox-feature-text {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   Pricing Tables Element Reordering
   ======================================== */

@media (max-width: 992px) {
    /* Use flexbox order to rearrange pricing table elements */
    .eb-pricing-item {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .eb-pricing-header {
        order: 1 !important;
    }
    
    .eb-pricing-tag {
        order: 2 !important;
        margin-bottom: 10px !important;
    }
    
    .eb-pricing-footer {
        order: 3 !important;
    }
    
    .eb-pricing-body {
        order: 6 !important; /* Always after toggle button (order 5) to prevent repositioning */
    }
}
