/**
 * Ticketing Component Styles
 *
 * Styles for ticketing integration components
 */

/* Common Ticketing Styles */
.ticket-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.ticket-button:hover {
    background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
}

.ticket-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ticket-button.default-button {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}

.ticket-button.default-button:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.ticket-message {
    background-color: #f8f9fa;
    border-left: 4px solid #ff4e50;
    padding: 15px;
    margin: 20px 0;
    font-size: 16px;
    color: #333;
    border-radius: 0 4px 4px 0;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Backdrop */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-content {
    /* background-color: #fff; Removed */
    /* border-radius: 8px; Replaced by media queries */
    max-width: 800px; /* Updated max-width */
    width: 800px; /* Ensure width is 800px */
    max-height: 88vh;
    overflow-y: auto; /* Keep */
    position: relative; /* Keep */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); Replaced by media queries */
    padding: 2rem; /* Added from locations modal */
    color: #333; /* Black text from category bar */
}

/* Style title to match category bar - RED */
.checkout-modal .checkout-modal-content h2 { /* Increased specificity */
    font-family: 'Raleway', sans-serif; /* Match font */
    font-size: 1.5rem; /* Reduced font size */
    font-weight: bold; /* Ensure title is bold */
    margin-bottom: 0.75rem; /* Reduced margin below title */
    color: #e02226 !important; /* Red color from category bar */
}

/* Style close button */
.checkout-modal-content .close-checkout-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #444;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    line-height: 1;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.checkout-modal-content .close-checkout-modal:hover {
    background: #e02226;
    color: #fff;
}

/* Style buytixheader (text below title) */
.checkout-modal-content .buytixheader p,
.checkout-modal-content .buytixheader i { /* Target paragraph and potential italic tags */
    color: #333; /* Black from category bar */
    font-size: 0.875rem;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.checkout-modal-content .buytixheader a {
    color: #4783c4; /* Blue from category bar */
    text-decoration: none;
    font-weight: bold;
}

.checkout-modal-content .buytixheader a:hover {
    color: #e02226; /* Red from category bar on hover */
}

/* Add more space below the header block */
.checkout-modal-content .buytixheader {
    margin-bottom: 1.5rem; 
}

/* Style pricewarning */
.checkout-modal-content .pricewarning {
    font-size: 12px;
    margin-top: 1.5rem;
    color: #333; /* Black from category bar */
    line-height: 1.5;
}


/* Desktop modal styles (centered) - light gray background from category bar */
@media screen and (min-width: 769px) {
    .checkout-modal .checkout-modal-content { /* Target content for desktop styles */
        background: #f5f5f5; /* Light gray from category bar */
        border-radius: 0;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    }
}

/* Mobile modal styles (slide from bottom) - light gray background */
@media screen and (max-width: 768px) {
    /* Ensure parent doesn't try to center the fixed-position child */
    .checkout-modal {
        align-items: flex-end; /* Align container to bottom */
    }

    .checkout-modal .checkout-modal-content { /* Target content for mobile styles */
        background: #f5f5f5; /* Light gray from category bar */
        /* No border-radius or box-shadow on mobile */
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Override desktop max-width */
        border-radius: 0; /* Override desktop border-radius */
        position: fixed; /* Position fixed for bottom slide */
        bottom: 0;
        left: 0;
        transform: translateY(100%); /* Start off-screen */
        transition: transform 0.3s ease-in-out; /* Add transition */
    }

    .checkout-modal.active .checkout-modal-content {
        transform: translateY(0); /* Slide in */
    }

    .checkout-modal-content .pricewarning {
        font-size: 10px;
    }
}

/* Removed unused .ticketing-modal-header, -title, -close, -body, -footer styles */

/* Platform-specific styles */

/* TicketSauce */
.ticketsauce-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

/* Eventbrite */
.eventbrite-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

/* Crave */
.crave-container {
    margin: 20px 0;
}

/* All platform trigger buttons use consistent styling - matching the original CTA button */
/* ONLY apply these styles when NOT using .buynowbutton class (which has its own styling) */
.tixr-button:not(.buynowbutton),
.direct-link-button:not(.buynowbutton),
.tao-button:not(.buynowbutton),
.tao-trigger-button:not(.buynowbutton),
.taotix-trigger-button:not(.buynowbutton),
.slate-button:not(.buynowbutton),
.dreamhospitality-trigger-button:not(.buynowbutton),
.vibestub-trigger-button:not(.buynowbutton) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #FFD700 30%, #FFED4A 40%, #FFE55B 80%),
                radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #FFD700 25%, #FDB931 62.5%, #FEDB37 100%);
    border: none;
    border-radius: 4px;
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    margin: 10px 0;
}

.tixr-button:not(.buynowbutton):hover,
.direct-link-button:not(.buynowbutton):hover,
.tao-button:not(.buynowbutton):hover,
.tao-trigger-button:not(.buynowbutton):hover,
.taotix-trigger-button:not(.buynowbutton):hover,
.slate-button:not(.buynowbutton):hover,
.dreamhospitality-trigger-button:not(.buynowbutton):hover,
.vibestub-trigger-button:not(.buynowbutton):hover {
    background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
}

/* Ensure .buynowbutton maintains its GREEN appearance regardless of platform class */
/* This overrides any platform-specific styling */
a.buynowbutton,
.buynowbutton,
.tao-trigger-button.buynowbutton,
.taotix-trigger-button.buynowbutton,
.tixr-button.buynowbutton,
.slate-button.buynowbutton,
.ticketsauce-trigger-button.buynowbutton,
.dreamhospitality-trigger-button.buynowbutton,
.vibestub-trigger-button.buynowbutton,
.direct-link-button.buynowbutton,
.tao-button.buynowbutton {
    /* Force green buynowbutton styling */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background-color: #009941 !important;
    background: #009941 !important; /* Override any gradients */
    color: #fff !important;
    font-size: 24px !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
    letter-spacing: 2px !important;
    width: 100% !important;
    height: 60px !important;
    padding-top: 4px !important;
    margin-bottom: 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

a.buynowbutton:hover,
.buynowbutton:hover,
.tao-trigger-button.buynowbutton:hover,
.taotix-trigger-button.buynowbutton:hover,
.tixr-button.buynowbutton:hover,
.slate-button.buynowbutton:hover,
.ticketsauce-trigger-button.buynowbutton:hover,
.dreamhospitality-trigger-button.buynowbutton:hover,
.vibestub-trigger-button.buynowbutton:hover,
.direct-link-button.buynowbutton:hover,
.tao-button.buynowbutton:hover {
    background-color: #0bf469 !important;
    background: #0bf469 !important; /* Override any gradients */
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(0) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ticket-button {
        display: block;
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
    
    /* .checkout-modal-content styles handled in the main modal block */
    
    /* Removed .ticketing-modal-title */
    
    .ticketsauce-container iframe,
    .eventbrite-container iframe {
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    /* .checkout-modal-content styles handled in the main modal block */
    
    /* Removed .ticketing-modal-header */
    
    /* Removed .ticketing-modal-body */
    
    .ticketsauce-container iframe,
    .eventbrite-container iframe {
        min-height: 400px;
    }
}

/* ==========================================================================
   End TicketSocket Embed Styling
   ========================================================================== */

/* ==========================================================================
   TicketSauce Modal Overlay Override (Attempt Hide)
   ========================================================================== */

/* Attempt to hide the external TicketSauce overlay */
#ts-modal-overlay {
    background: transparent !important; 
}

/* Add border between ticket types */
#ticketSocketEmbedContainer .singleTicketType {
    border-bottom: 1px solid #444; /* Changed border to darker grey */
    padding-bottom: 1rem; /* Add padding below */
    margin-bottom: 1rem; /* Add margin below */
}

#ticketSocketEmbedContainer .singleTicketType:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ticket Name */
#ticketSocketEmbedContainer .ticketTypeName .name {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333; /* Black from category bar */
    margin-bottom: 0.5rem;
}

/* Ticket Price */
#ticketSocketEmbedContainer .ticketTypePrice {
    font-size: 1.375rem;
    font-weight: bold;
    color: #333; /* Black from category bar */
    margin-bottom: 0.5rem;
    text-align: end;
    align-self: baseline;
}

/* Quantity Dropdown */
#ticketSocketEmbedContainer .ticketTypeQuantity select {
    background-color: white; /* Changed background to white */
    color: black; /* Ensure text is black */
    /* border: 1px solid #555; Removed border */
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%; /* Full width on mobile */
    box-sizing: border-box; /* Include padding in width */
}

/* Sold Out / Contact Link */
#ticketSocketEmbedContainer .ticketTypeQuantity .tsSoldOut {
    display: inline-block;
    background-color: #e02226; /* Red from category bar */
    color: #ffffff;
    font-weight: bold;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    border-radius: 0.25rem;
}
#ticketSocketEmbedContainer .ticketTypeQuantity a {
    color: #4783c4; /* Blue from category bar */
    text-decoration: none;
    font-size: 0.875rem;
    margin-left: 8px;
}
#ticketSocketEmbedContainer .ticketTypeQuantity a:hover {
    color: #e02226; /* Red from category bar on hover */
}


/* Description Area */
#ticketSocketEmbedContainer .description .showDescriptionLink,
#ticketSocketEmbedContainer .description .hideDescriptionLink {
    color: #4783c4; /* Blue from category bar */
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s ease;
    font-weight: 600;
}
#ticketSocketEmbedContainer .description .showDescriptionLink:hover,
#ticketSocketEmbedContainer .description .hideDescriptionLink:hover {
    color: #e02226; /* Red from category bar on hover */
}

/* --- Toggle Visibility Logic (using .visible class) --- */
/* Default state: Hide 'Hide Details', Show 'Show Details' */
#ticketSocketEmbedContainer .description .hideDescriptionLink {
    display: none;
}
#ticketSocketEmbedContainer .description .showDescriptionLink {
    display: inline-block; /* Ensure show is visible by default */
}

/* When details are shown (parent .description gets class 'visible') */
#ticketSocketEmbedContainer .description.visible .showDescriptionLink {
    display: none; /* Hide 'Show Details' */
}
#ticketSocketEmbedContainer .description.visible .hideDescriptionLink {
    display: inline-block; /* Show 'Hide Details' */
}
/* --- End Toggle Visibility Logic --- */

/* Add pseudo-elements for +/- icon */
#ticketSocketEmbedContainer .description .showDescriptionLink::before {
    content: '+ ';
    font-weight: bold;
}
#ticketSocketEmbedContainer .description .hideDescriptionLink::before {
    content: '- ';
    font-weight: bold;
}

#ticketSocketEmbedContainer .description .descriptionContent {
    background-color: #f5f5f5; /* Light gray background from category bar */
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333; /* Black text from category bar for legibility */
}

#ticketSocketEmbedContainer .description .descriptionContent p {
    margin-bottom: 0;
    color: #333; /* Black text from category bar for legibility */
    font-size: 0.75rem;
    line-height: 1.375rem;
    background: transparent; /* No white background on paragraphs */
}

#ticketSocketEmbedContainer .description .descriptionContent p span {
    background-color: transparent !important; /* Remove white background from spans */
}
#ticketSocketEmbedContainer .description .descriptionContent ul,
#ticketSocketEmbedContainer .description .descriptionContent li {
    margin-bottom: 0.5em; /* Reverted margin for lists */
    color: #333; /* Black text from category bar for legibility */
    font-size: 0.75rem;
    line-height: 1.125rem;
}
#ticketSocketEmbedContainer .description .descriptionContent ul {
    padding-left: 20px; /* Indent list */
    list-style: disc;
}


/* Submit Button Row */
#ticketSocketEmbedContainer .submitRow {
    margin-top: 1rem;
    text-align: center; /* Center button */
}

#ticketSocketEmbedContainer .submitRow input[type="submit"] {
    /* Match venuepage Purchase Tickets button - green gradient with cart icon */
    border: 1px solid #3C8007;
    border-radius: 3px;
    padding: .75rem 3rem .75rem .75rem;
    text-align: center;
    font-weight: bold;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M17 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-10 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm10.6-14H6.4L5.6 2H2v2h2.3l3.6 7.6L7.3 14H17v-2H8.9l.7-1.4L17 9.6V4h1.6z'/%3E%3C/svg%3E"),
                      linear-gradient(90deg, #5BBD0D 0%, #3C8007 100%);
    background-repeat: no-repeat, repeat;
    background-position: right 1rem center, center;
    background-size: 18px 18px, auto;
    color: white;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#ticketSocketEmbedContainer .submitRow input[type="submit"]:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M17 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-10 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm10.6-14H6.4L5.6 2H2v2h2.3l3.6 7.6L7.3 14H17v-2H8.9l.7-1.4L17 9.6V4h1.6z'/%3E%3C/svg%3E"),
                      linear-gradient(90deg, #3C8007 0%, #5BBD0D 100%);
    background-position: right 0.8rem center, center;
}

/* Desktop Styles */
@media screen and (min-width: 769px) {
    #ticketSocketEmbedContainer {
        /* Removed padding, border-radius, box-shadow, max-width, margin to inherit from modal */
        /* padding: 2rem; */
        /* border-radius: 12px; */
        /* box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5); */
        /* max-width: 800px; */
        /* margin: 20px auto; */
        background: transparent; /* Ensure transparent background */
    }

    #ticketSocketEmbedContainer .singleTicketType .topRow {
       display: flex; /* Use flexbox for layout */
       justify-content: space-between; /* Space out elements */
       align-items: center; /* Align items vertically */
       gap: 1rem; /* Add gap between elements */
    }

     #ticketSocketEmbedContainer .ticketTypeName {
        flex-grow: 1; /* Allow name to take up space */
        width: 50%; /* Updated width */
        flex-basis: 50%; /* Updated flex-basis */
     }

     #ticketSocketEmbedContainer .ticketTypePrice {
        flex-shrink: 0; /* Prevent price from shrinking */
        margin-bottom: 0; /* Remove mobile margin */
     }

     #ticketSocketEmbedContainer .ticketTypeQuantity {
        flex-shrink: 0; /* Prevent quantity from shrinking */
        min-width: 150px; /* Ensure enough space for dropdown/sold out */
        text-align: right;
     }

     #ticketSocketEmbedContainer .ticketTypeQuantity select {
        width: auto; /* Auto width on desktop */
        min-width: 120px; /* Ensure decent width */
     }

    /* Keep button centered on desktop as well */
    #ticketSocketEmbedContainer .submitRow {
        text-align: center; 
    }

    #ticketSocketEmbedContainer .submitRow input[type="submit"] {
        width: auto; /* Keep auto width */
    }
}
/* Remove base styles that conflict with modal */
#ticketSocketEmbedContainer {
    /* margin: 20px 0; */ /* Removed */
    min-height: auto; /* Removed min-height */
    /* border: 1px solid #eee; */ /* Removed */
    /* padding: 20px; */ /* Removed */
    /* background-color: #f9f9f9; */ /* Removed */
    background: transparent; /* Ensure transparent background */
}

/* --- Mobile Specific Styles for TicketSocket Embed --- */
@media screen and (max-width: 768px) {
    #ticketSocketEmbedContainer .singleTicketType {
        margin-bottom: 0.5rem;
    }

    /* Use flexbox on the existing topRow for layout */
    #ticketSocketEmbedContainer .singleTicketType .topRow {
       display: flex;
       flex-wrap: wrap; /* Allow wrapping */
       justify-content: space-between; /* Space out items on wrapped lines */
       align-items: baseline; /* Align price and quantity vertically */
       gap: 0.5rem 1rem; /* Add some row and column gap */
    }

    #ticketSocketEmbedContainer .ticketTypeName {
        flex-basis: 50%; /* Give name half the space */
        width: 50%; /* Ensure width is set */
        margin-bottom: 0; /* Remove space below name */
        flex-grow: 1; /* Allow to grow */
        flex-shrink: 1; /* Allow to shrink */
        min-width: 0; /* Allow flex shrinking */
    }

    #ticketSocketEmbedContainer .ticketTypeName .name {
        font-size: 1.25rem;
        width: 100%;
        white-space: nowrap; /* Prevent wrapping */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Remove rules for the non-existent .priceQuantityRow */
    /* #ticketSocketEmbedContainer .priceQuantityRow { ... } */

    #ticketSocketEmbedContainer .ticketTypePrice {
        margin-bottom: 0;
        text-align: end;
        font-size: 1rem;
        flex-basis: auto;
        flex-grow: 0;
        flex-shrink: 0;
        padding-right: 1rem; /* Add space before quantity */
    }

    #ticketSocketEmbedContainer .ticketTypeQuantity {
        min-width: auto; 
        text-align: right; 
        flex-basis: auto; /* Allow natural width */
        flex-shrink: 0; /* Prevent quantity selector from shrinking too much */
    }
    
    #ticketSocketEmbedContainer .ticketTypeQuantity select {
        width: auto; /* Allow dropdown to size naturally */
        min-width: 80px; /* Set a minimum width */
        padding: 6px 10px; /* Adjust padding */
        display: inline-block; /* Ensure it aligns correctly */
    }
    
    #ticketSocketEmbedContainer .ticketTypeQuantity .tsSoldOut {
        /* Adjust styles if needed for mobile */
        padding: 0.2em 0.5em;
        font-size: 0.7em;
        display: inline-block; /* Ensure it aligns correctly */
    }
    
    #ticketSocketEmbedContainer .ticketTypeQuantity a {
        /* Adjust styles if needed for mobile */
        font-size: 0.7rem;
        display: inline-block; /* Ensure it aligns correctly */
        margin-top: 4px; /* Add space if needed */
    }

    #ticketSocketEmbedContainer .description {
        /* Ensure description toggle appears below price/qty */
        width: 100%; 
        margin-top: 0.5rem; /* Add some space above */
        clear: both; /* Ensure it clears the floated elements if any */
    }
    
    #ticketSocketEmbedContainer .description .showDescriptionLink,
    #ticketSocketEmbedContainer .description .hideDescriptionLink {
        /* Adjust toggle style if needed */
        font-size: 0.8rem;
    }
    
    #ticketSocketEmbedContainer .description .descriptionContent {
        /* Adjust description content style if needed */
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    #ticketSocketEmbedContainer .submitRow input[type="submit"] {
        width: 100%; /* Make button full width */
        height: 60px; /* Bigger height on mobile */
        padding: 0.8rem 1rem; /* Adjust padding */
        font-size: 1.5rem;
        background-position: 95% center, center, center; /* Adjust icon position */
    }
    
    #ticketSocketEmbedContainer .submitRow input[type="submit"]:hover {
        background-position: 93% center, center, center; /* Adjust hover icon position */
    }
}
/* --- End Mobile Specific Styles --- */

/* ==========================================================================
   End TicketSocket Embed Styling
   ========================================================================== */

/* ==========================================================================
   TSModals (TAO Group / TicketSauce) Modal Styling
   ========================================================================== */

/* Make the modal backdrop match TicketSocket appearance */
#ts-modal-backdrop,
.ts-modal-backdrop,
[id^="ts-modal-backdrop"] {
    background-color: rgba(0, 0, 0, 0.8) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99998 !important;
}

/* Style the modal container to match TicketSocket appearance */
#ts-modal,
.ts-modal,
[id^="ts-modal"] {
    max-width: 800px !important;
    width: 800px !important;
    max-height: 88vh !important;
    margin: 6vh auto !important;
    border-radius: 0 !important;
    overflow: auto !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5) !important;
    background: #f5f5f5 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
}

/* Ensure modal content is visible */
#ts-modal iframe,
.ts-modal iframe,
[id^="ts-modal"] iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px !important;
    border: none !important;
    background: transparent !important;
    display: block !important;
}

/* Close button styling (if TSModals provides one) */
#ts-modal .close,
.ts-modal .close,
[id^="ts-modal"] .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

#ts-modal .close:hover,
.ts-modal .close:hover,
[id^="ts-modal"] .close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    #ts-modal,
    .ts-modal,
    [id^="ts-modal"] {
        width: 90% !important;
        max-width: 90% !important;
        max-height: 80vh !important;
        border-radius: 8px !important;
        top: 48% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 20px !important;
    }

    /* Override buy now button margin on mobile */
    a.buynowbutton,
    .buynowbutton,
    .tao-trigger-button.buynowbutton,
    .taotix-trigger-button.buynowbutton,
    .tixr-button.buynowbutton,
    .slate-button.buynowbutton,
    .ticketsauce-trigger-button.buynowbutton,
    .dreamhospitality-trigger-button.buynowbutton,
    .vibestub-trigger-button.buynowbutton,
    .direct-link-button.buynowbutton,
    .tao-button.buynowbutton {
        margin-bottom: 4px !important;
    }

    #ts-modal iframe,
    .ts-modal iframe,
    [id^="ts-modal"] iframe {
        width: 100% !important;
        min-height: 60vh !important;
        height: auto !important;
    }
}

/* ==========================================================================
   End TSModals Styling
   ========================================================================== */

/* ==========================================================================

/* ==========================================================================
   TicketSocket & TSModals Submit Button Unified Styling
   ========================================================================== */

/* Target ALL submit buttons in modals and ticketing containers */
#ticketSocketEmbedContainer .submitRow input[type="submit"],
#ticketSocketEmbedContainer input[type="submit"],
.ticketSocketEmbedForm .submitRow input[type="submit"],
.ticketSocketEmbedForm input[type="submit"],
#ts-modal button[type="submit"],
#ts-modal input[type="submit"],
.ts-modal button[type="submit"],
.ts-modal input[type="submit"],
[id*="ts-modal"] button[type="submit"],
[id*="ts-modal"] input[type="submit"],
.continue-button,
button[type="submit"]:not(.close-checkout-modal) {
    /* Force green Purchase Tickets button styling */
    background: #009941 !important;
    background-color: #009941 !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 24px !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
    letter-spacing: 2px !important;
    height: 60px !important;
    min-height: 60px !important;
    line-height: 60px !important;
    padding: 0 24px !important;
    border-radius: 4px !important;
    border: 1px solid #009941 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
    width: auto !important;
    margin: 20px auto !important;
    box-sizing: border-box !important;
}

#ticketSocketEmbedContainer .submitRow input[type="submit"]:hover,
#ticketSocketEmbedContainer input[type="submit"]:hover,
.ticketSocketEmbedForm input[type="submit"]:hover,
#ts-modal button[type="submit"]:hover,
#ts-modal input[type="submit"]:hover,
.ts-modal button[type="submit"]:hover,
.ts-modal input[type="submit"]:hover,
[id*="ts-modal"] button[type="submit"]:hover,
[id*="ts-modal"] input[type="submit"]:hover,
.continue-button:hover,
button[type="submit"]:not(.close-checkout-modal):hover {
    background-color: #0bf469 !important;
    background: #0bf469 !important;
    background-image: none !important;
    border-color: #0bf469 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #ticketSocketEmbedContainer .submitRow input[type="submit"],
    #ticketSocketEmbedContainer input[type="submit"],
    .ticketSocketEmbedForm input[type="submit"],
    #ts-modal button[type="submit"],
    #ts-modal input[type="submit"],
    button[type="submit"]:not(.close-checkout-modal) {
        width: 100% !important;
        font-size: 20px !important;
    }
}

/* ==========================================================================
   End Unified Submit Button Styling
   ========================================================================== */
