/* Pumpkinpalooza Ticket Customization CSS (v25 - Top Intro Text) */

/* 1. Prevent overlapping by forcing containers to clear and expand */
form.cart {
    height: auto !important;
    min-height: fit-content !important;
    overflow: visible !important;
    display: block !important;
    position: relative !important;
    clear: both !important;
}

.millican-ticket-section-wrapper {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 40px 0 50px 0 !important;
    clear: both !important;
    position: relative !important;
}

/* Hide native elements that we are replacing */
.yith_wcevti_tickets_ticket_fields_wrapper,
.yith_evti_total_price,
.prod-quantity-wrpr,
.single_add_to_cart_button,
.woocommerce-product-details__short-description,
.ticket-pricing-info,
.custom-ticket-ui > .custom-ticket-ui-header { 
    display: none !important; 
}

/* Unified Beige Box Container */
.millican-ticket-box {
    background-color: #f7f5ef !important; 
    border-top: 1px solid #8e352e !important;
    border-bottom: 1px solid #8e352e !important;
    padding: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Intro Text at Top of Box */
.millican-ticket-intro {
    margin-bottom: 35px !important;
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    font-family: sans-serif !important;
    text-align: center !important;
    padding-bottom: 25px !important;
    border-bottom: 1px solid #e2ddd0 !important;
}

.millican-ticket-intro strong {
    color: #8e352e !important;
    font-weight: 600 !important;
}

/* Flexbox Container for Left/Right Columns */
.millican-ticket-flex {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 50px !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Left Column */
.millican-ticket-left {
    flex: 0 0 calc(60% - 25px) !important;
    max-width: calc(60% - 25px) !important;
    box-sizing: border-box !important;
}

.custom-ticket-ui-header-mockup {
    border-bottom: 1px solid #d5d0c5 !important;
    padding-bottom: 12px !important;
    margin-bottom: 25px !important;
}

.custom-ticket-ui-header-mockup h3 {
    color: #8e352e !important;
    font-family: "Chronicle Display", Georgia, serif !important;
    font-size: 28px !important;
    margin: 0 0 8px 0 !important;
    text-transform: uppercase !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
}

.custom-ticket-ui-header-mockup small {
    color: #666 !important;
    font-size: 14px !important;
    font-family: sans-serif !important;
}

/* Ticket Rows */
.custom-ticket-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #d5d0c5 !important;
}

.custom-ticket-info {
    flex: 1 !important;
    padding-right: 20px !important;
}

.custom-ticket-info h4 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    font-family: "Chronicle Display", Georgia, serif !important;
    text-transform: capitalize !important;
    line-height: 1.3 !important;
}

.custom-ticket-info p {
    margin: 4px 0 0 !important;
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.4 !important;
    font-family: sans-serif !important;
}

/* Price & Qty Block */
.custom-ticket-price {
    font-weight: bold !important;
    font-size: 18px !important;
    color: #333 !important;
    text-align: right !important;
    margin-right: 20px !important;
    min-width: 60px !important;
    font-family: sans-serif !important;
}

/* Fixed Quantity Box */
.custom-ticket-qty-controls {
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    height: 40px !important;
    box-sizing: border-box !important;
    overflow: hidden !important; 
}

.custom-ticket-qty-btn {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    user-select: none !important;
    font-size: 20px !important;
    color: #8e352e !important;
    background: #fff !important;
    font-weight: normal !important;
    box-sizing: border-box !important;
}

.custom-ticket-qty-btn:hover {
    background: #f0f0f0 !important;
}

.custom-ticket-qty-input {
    width: 45px !important;
    height: 40px !important;
    line-height: 40px !important; 
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #ccc !important;
    border-right: 1px solid #ccc !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
    box-sizing: border-box !important;
    -moz-appearance: textfield !important;
}

.custom-ticket-qty-input::-webkit-outer-spin-button,
.custom-ticket-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Add to cart button container */
.custom-checkout-btn-wrapper {
    margin-top: 30px !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.custom-checkout-btn {
    background-color: #8e352e !important;
    color: #fff !important;
    padding: 14px 35px !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 18px !important;
    cursor: pointer !important;
    text-transform: none !important;
    font-family: "Chronicle Display", Georgia, serif !important;
    letter-spacing: 0.5px !important;
    transition: background 0.2s ease !important;
}

.custom-checkout-btn:hover {
    background-color: #6a2620 !important;
}

/* Right Column (Ticket Pricing) */
.millican-ticket-right {
    flex: 0 0 calc(40% - 25px) !important;
    max-width: calc(40% - 25px) !important;
    box-sizing: border-box !important;
}

.millican-ticket-pricing-info h3 {
    color: #8e352e !important;
    font-family: "Chronicle Display", Georgia, serif !important;
    font-size: 28px !important;
    margin: 0 0 25px 0 !important;
    font-weight: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
}

.millican-ticket-pricing-info ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.millican-ticket-pricing-info li {
    margin-bottom: 25px !important;
    line-height: 1.3 !important;
    font-family: sans-serif !important;
}

.millican-ticket-pricing-info strong {
    color: #8e352e !important;
    font-size: 26px !important;
    display: block !important;
    font-weight: normal !important;
    font-family: "Chronicle Display", Georgia, serif !important;
    margin-bottom: 2px !important;
}

.millican-ticket-pricing-info em {
    color: #8e352e !important;
    font-size: 16px !important;
    font-style: normal !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.millican-ticket-pricing-info span {
    color: #666 !important;
    font-size: 13px !important;
    display: block !important;
}

/* Hide default strong label in short desc if present */
.millican-ticket-pricing-info > p > strong:first-child {
    display: none !important;
}

/* Hide the old join us text if the user hasn't removed it from short description yet */
.millican-ticket-pricing-info p.join-us-text,
.millican-ticket-pricing-info p:last-child {
    display: none !important; 
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .millican-ticket-box {
        padding: 30px 20px !important;
    }

    .millican-ticket-flex {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .millican-ticket-intro {
        text-align: left !important;
        font-size: 14px !important;
    }

    .millican-ticket-left,
    .millican-ticket-right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .millican-ticket-right {
        margin-top: 40px !important;
        border-top: 1px solid #d5d0c5 !important;
        padding-top: 40px !important;
    }
    
    .custom-ticket-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .custom-ticket-price {
        text-align: left !important;
        margin: 0 !important;
    }
    
    .custom-ticket-qty-controls {
        align-self: flex-start !important;
    }
    
    .custom-checkout-btn-wrapper {
        justify-content: stretch !important;
    }
    
    .custom-checkout-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Event Date & Calendar Button UI Polish */
.date_panel {
    margin-top: 30px !important;
    padding-top: 25px !important;
    border-top: 1px solid #d5d0c5 !important;
    font-size: 16px !important;
    color: #555 !important;
    line-height: 1.8 !important;
    font-family: sans-serif !important;
}

.date_panel b {
    color: #333 !important;
    font-weight: 600 !important;
}

.add-to-calendar-btn {
    margin-top: 25px !important;
    margin-bottom: 20px !important;
}

.add-to-calendar-btn .addeventatc {
    background-color: transparent !important;
    border: 1px solid #8e352e !important;
    color: #8e352e !important;

    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    font-family: sans-serif !important;
    box-shadow: none !important;
}

.add-to-calendar-btn .addeventatc:hover {
    background-color: #8e352e !important;
    color: #fff !important;
}






/* Post 6607 Specific Removals */
.postid-6607 span.onsale,
.postid-6607 p.price,
.postid-6607 .feat-prod-secc,
.postid-6607 .date_panel,
.postid-6607 .conservancy-btn-sec.details-page-button-purpose,
.postid-6607 .woocommerce-info.wc-memberships-member-discount-message {
    display: none !important;
}

/* Membership Callout */
.postid-6607 .custom-membership-callout {
    margin-top: 30px;
    text-align: center;
}
.postid-6607 .custom-membership-callout h3 {
    color: #8e352e;
    font-size: 18px;
    margin-bottom: 10px;
    font-family: "Chronicle Display", Georgia, serif;
}
.postid-6607 .custom-membership-callout p {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
}
.postid-6607 .custom-membership-callout a {
    color: #8e352e;
    text-decoration: underline;
    font-weight: bold;
}


.postid-6607 .simple-title-banner {
    display: none !important;
}


/* Hide native YITH form elements and Theme default membership block */
.postid-6607 form.cart > div:not(.add-to-calendar-btn),
.postid-6607 form.cart > p,
.postid-6607 form.cart > button,
.postid-6607 form.cart > input,
.postid-6607 .yith-wcevti-tickets-options,
.postid-6607 .yith-wcevti-form,
.postid-6607 form[class*="yith-wcevti"],
.postid-6607 .login-custom-product-section { 
    display: none !important; 
}
.postid-6607 form.cart {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.custom-membership-callout p { font-size: 19px !important; font-family: inherit; line-height: 1.8; color: #444; }

/* Flexbox layout to perfectly reorder the Add to Calendar button BELOW the ticket UI without moving DOM */
.postid-6607 #product-6607 {
    display: flex;
    flex-direction: column;
}
.postid-6607 #product-6607 > * { order: 10; }
.postid-6607 #product-6607 > .custom-fluid-container { order: 1; }
.postid-6607 #product-6607 > .millican-ticket-section-wrapper { order: 2; margin-top: 30px; }
.postid-6607 #product-6607 > form.cart { order: 3; margin: 0 0 40px 0 !important; padding: 0 !important; text-align: center; }
.postid-6607 #product-6607 > .custom-product-full-desc { order: 4; }

/* Anti-flicker for Short Description */
.postid-6607 > .custom-top-short-desc,
.postid-6607 #product-6607 > .custom-top-short-desc {
    display: none !important;
}
.postid-6607 .summary.entry-summary .custom-top-short-desc {
    display: block !important;
}

/* User Requested Detail Section Overrides */
.postid-6607 .custom-product-full-desc { padding-top: 0px !important; }
.postid-6607 .custom-product-full-desc .feat-sec-head { margin: 0 0 20px !important; }
.postid-6607 .custom-product-full-desc .feat-sec-head .subhead { font-size: 40px !important; }

