/**
 * TicketMax Single Product Template Styles
 * Replicates the exact Elementor template design (Template ID 61054)
 *
 * @package TicketMax
 * @since 15.6.0
 */

/* ==========================================================================
   Reset & Base
   ========================================================================== */
.ticketmax-single-product.ticketmax-elementor-style {
    width: 100%;
    background: #fff;
}

.ticketmax-single-product.ticketmax-elementor-style *,
.ticketmax-single-product.ticketmax-elementor-style *::before,
.ticketmax-single-product.ticketmax-elementor-style *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Main Section Container (matching Elementor section-boxed)
   ========================================================================== */
.ticketmax-sp-section {
    padding: 0;
    margin: 0;
}

.ticketmax-sp-section.elementor-section-boxed .ticketmax-sp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   Two Column Grid (66% / 33% like Elementor)
   ========================================================================== */
.ticketmax-sp-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.ticketmax-sp-col-left {
    width: 66.666%;
    padding: 10px;
}

.ticketmax-sp-col-right {
    width: 33.333%;
    padding: 10px;
}

.ticketmax-sp-col-content {
    width: 100%;
}

/* ==========================================================================
   Widget Base Styles
   ========================================================================== */
.ticketmax-sp-widget {
    margin-bottom: 20px;
    position: relative;
}

/* ==========================================================================
   Heading Widget (matching elementor-widget-heading)
   ========================================================================== */
.ticketmax-sp-heading .ticketmax-heading-title {
    color: #000;
    font-family: "DM Sans", Sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2em;
    margin: 0;
    padding: 0;
}

/* Main product title - larger */
.ticketmax-sp-col-left > .ticketmax-sp-col-content > .ticketmax-sp-heading:first-child .ticketmax-heading-title {
    font-size: 28px;
    margin-bottom: 15px;
}

/* ==========================================================================
   Text Editor Widget (matching elementor-widget-text-editor)
   ========================================================================== */
.ticketmax-sp-text-editor {
    color: #7A7A7A;
    font-family: "DM Sans", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6em;
    text-align: left;
}

.ticketmax-sp-text-editor p {
    margin-bottom: 15px;
}

.ticketmax-sp-text-editor p:last-child {
    margin-bottom: 0;
}

.ticketmax-sp-text-editor b,
.ticketmax-sp-text-editor strong {
    font-weight: 700;
    color: #000;
}

/* ==========================================================================
   Inner Section (matching Elementor inner-section with background)
   ========================================================================== */
.ticketmax-sp-inner-section {
    background-color: #171717;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.ticketmax-sp-inner-section .ticketmax-sp-inner-col {
    width: 100%;
}

/* Section headings inside inner sections */
.ticketmax-sp-inner-section .ticketmax-sp-heading .ticketmax-heading-title {
    color: #FFFFFF;
    font-family: "DM Sans", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ==========================================================================
   Divider Widget (matching elementor-widget-divider)
   ========================================================================== */
.ticketmax-sp-divider {
    margin-bottom: 15px;
}

.ticketmax-divider {
    display: flex;
    align-items: center;
}

.ticketmax-divider-separator {
    display: block;
    width: 100%;
    border: 0;
    border-top: 1px solid #333333;
}

/* Divider in dark sections */
.ticketmax-sp-inner-section .ticketmax-divider-separator {
    border-top-color: #333333;
}

/* ==========================================================================
   Image Widget (matching elementor-widget-image)
   ========================================================================== */
.ticketmax-sp-image {
    margin-bottom: 20px;
}

.ticketmax-image-container {
    width: 100%;
    max-width: 800px;
}

.ticketmax-product-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* ==========================================================================
   Icon List Widget (matching elementor-widget-icon-list)
   ========================================================================== */
.ticketmax-sp-icon-list {
    margin-bottom: 0;
}

.ticketmax-icon-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ticketmax-icon-list-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
}

.ticketmax-icon-list-item:first-child {
    padding-top: 0;
}

.ticketmax-icon-list-item:last-child {
    padding-bottom: 0;
}

.ticketmax-icon-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.ticketmax-icon-svg {
    width: 18px;
    height: 18px;
    fill: #E53935;
}

.ticketmax-icon-list-text {
    color: #FFFFFF;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

/* ==========================================================================
   Shortcode Widget Container
   ========================================================================== */
.ticketmax-sp-shortcode {
    margin-bottom: 0;
}

.ticketmax-shortcode-content {
    width: 100%;
}

/* ==========================================================================
   Boletos Section Specific
   ========================================================================== */
.ticketmax-sp-boletos-section {
    background-color: #171717;
}

/* Hide Funciones heading and divider by default (as in Elementor) */
.ticketmax-funciones-heading,
.ticketmax-funciones-divider {
    display: none !important;
}

/* ==========================================================================
   Info Section Specific
   ========================================================================== */
.ticketmax-sp-info-section {
    background-color: #171717;
}

/* ==========================================================================
   Responsive - Desktop/Tablet Hidden Classes
   ========================================================================== */
@media (min-width: 768px) {
    .ticketmax-hidden-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ticketmax-hidden-tablet {
        display: none !important;
    }
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 1024px) {
    .ticketmax-sp-section.elementor-section-boxed .ticketmax-sp-container {
        max-width: 1024px;
    }

    .ticketmax-sp-col-left {
        width: 60%;
    }

    .ticketmax-sp-col-right {
        width: 40%;
    }

    .ticketmax-sp-col-left > .ticketmax-sp-col-content > .ticketmax-sp-heading:first-child .ticketmax-heading-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 767px) {
    .ticketmax-sp-container {
        flex-direction: column;
    }

    .ticketmax-sp-col-left,
    .ticketmax-sp-col-right {
        width: 100%;
        padding: 10px 15px;
    }

    /* On mobile, right column comes first (image hidden, info section shown) */
    .ticketmax-sp-col-right {
        order: 1;
    }

    .ticketmax-sp-col-left {
        order: 2;
    }

    /* Hide elements on mobile */
    .ticketmax-hidden-mobile {
        display: none !important;
    }

    /* Show mobile boletos section */
    .ticketmax-sp-boletos-section-mobile {
        display: block !important;
    }

    .ticketmax-sp-col-left > .ticketmax-sp-col-content > .ticketmax-sp-heading:first-child .ticketmax-heading-title {
        font-size: 22px;
    }

    .ticketmax-sp-text-editor {
        font-size: 15px;
    }

    .ticketmax-sp-inner-section {
        padding: 20px;
    }

    .ticketmax-icon-list-text {
        font-size: 14px;
    }
}

/* ==========================================================================
   Product Form Integration Styles
   Override form styles to match dark theme
   ========================================================================== */
.ticketmax-sp-inner-section .ticketmax-pf-container {
    background: transparent;
}

.ticketmax-sp-inner-section .ticketmax-pf-variation {
    border-bottom-color: #333333;
}

.ticketmax-sp-inner-section .ticketmax-pf-variation-name {
    color: #FFFFFF;
}

.ticketmax-sp-inner-section .ticketmax-pf-variation-price {
    color: #CCCCCC;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .ticketmax-sp-inner-section {
        background: #f5f5f5 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ticketmax-sp-inner-section .ticketmax-heading-title,
    .ticketmax-sp-inner-section .ticketmax-icon-list-text {
        color: #000 !important;
    }

    .ticketmax-icon-svg {
        fill: #333 !important;
    }
}
