/* Styles for the Thank You page ticket display */
.les-thankyou-tickets {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 2px solid #eee;
}

.les-thankyou-tickets h2 {
    margin-top: 0;
}

.les-ticket-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.les-ticket-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.les-ticket-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.les-ticket-details img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.les-ticket-details div {
    font-size: 0.9em;
    line-height: 1.6;
}

.les-ticket-actions {
    margin-top: 1em;
}
.les-ticket-actions .button .dashicons {
    margin-right: 6px;
    vertical-align: text-bottom;
}



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

/* ============================= */
/* === Professional On-Screen Ticket === */
/* ============================= */

#les-printable-ticket {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 1em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}
.les-ticket-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.les-ticket-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.8em;
}
.les-ticket-header p {
    margin: 0;
    font-size: 1.1em;
    color: #555;
}
.les-ticket-body {
    display: flex;
    padding: 20px;
    border-bottom: 2px dashed #ddd;
}
.les-ticket-main {
    flex-grow: 1;
}
.les-ticket-main .ticket-section {
    margin-bottom: 15px;
}
.les-ticket-main .ticket-label {
    display: block;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 2px;
}
.les-ticket-main .ticket-value {
    font-size: 1.3em;
    font-weight: 500;
}
.les-ticket-main .ticket-seats-list {
    margin: 5px 0 0 0;
    padding-left: 20px;
    font-size: 1em;
}
.les-ticket-main .ticket-seats-list li {
    margin-bottom: 5px;
}
.les-ticket-qr {
    flex-shrink: 0;
    margin-left: 20px;
    text-align: center;
}
.les-ticket-qr img {
    width: 150px !important;
    height: 150px !important;
    display: block;
}
.les-ticket-qr p {
    font-size: 0.8em;
    margin-top: 5px;
    color: #777;
}
.les-ticket-footer {
    padding: 15px 20px;
    font-size: 0.8em;
    color: #777;
    background: #fcfcfc;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.les-ticket-main .ticket-seats-list .les-ticket-variation-info {
    
    margin-left: 10px;
    
    color: #555;
    font-weight: normal;
}
#les-print-only-container {
    display: none;
}
/* ==========================================================================
   Event Details Header (NEW)
   ========================================================================== */

/* The main container for the event title, date, and venue */
.les-event-details {
    width: 100%;
    flex-basis: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Event Title */
.les-event-details h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.8em;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.2;
}

/* Container for the meta info (date and venue) */
.les-event-meta {
    display: flex;
    flex-wrap: wrap; 
    gap: 8px 20px; 
    font-size: 1em;
    color: #50575e;
}

/* Individual meta items (date and venue spans) */
.les-event-meta > span { /* Use direct child selector for specificity */
    display: inline-flex;
    align-items: flex-start; /* Align icon to the TOP of the text block */
}

/* Dashicons used for date and location icons */
.les-event-meta .dashicons {
    margin-right: 8px;
    font-size: 1.2em;
    line-height: 1;
    color: #787c82;
    margin-top: 3px; /* Nudge icon down slightly for perfect visual alignment */
}

/* NEW: Wrapper for the venue name and address text */
.les-venue-text-wrapper {
    display: flex;
    flex-direction: column;
}

/* NEW: Style for just the main venue name */
.les-venue-name {
    font-weight: 600; /* Make the main name slightly bolder */
    color: #1d2327;
}

/* Styles for the extra venue details (address, phone, website) on the ticket AND shortcode */
.les-ticket-venue-detail {
    display: block; 
    font-size: 0.9em; /* Slightly smaller than the main text */
    color: #555;
    margin-top: 4px;
    font-weight: normal; 
    line-height: 1.4;
}

/* Make the venue website link look like a standard link */
.les-ticket-venue-detail a {
    color: #1a0dab;
    text-decoration: none;
}

.les-ticket-venue-detail a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .les-event-details h2 {
        font-size: 1.5em;
    }

    .les-event-meta {
        flex-direction: column;
        align-items: flex-start; 
        gap: 12px;
    }
}

.les-addons-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.les-addons-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.les-addons-modal-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 740px);
    max-height: min(100%, 90vh);
    overflow: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.25);
    padding: 24px;
}
.les-addons-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    color: #444;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.les-addons-modal-panel h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.75rem;
}
.les-addons-modal-panel .les-addons-summary {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #333;
}
.les-addons-list {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}
.les-addon-item {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 14px;
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: 14px;
    align-items: center;
}
.les-addon-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}
.les-addon-item .les-addon-main {
    display: grid;
    gap: 6px;
}
.les-addon-item .les-addon-name {
    font-weight: 600;
    margin: 0;
}
.les-addon-item .les-addon-desc {
    margin: 0;
    color: #666;
    font-size: 0.92rem;
}
.les-addon-item .les-addon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.95rem;
    color: #444;
}
.les-addon-item .les-addon-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.les-addon-item .les-addon-qty {
    display: grid;
    gap: 6px;
}
.les-addon-item .les-addon-qty input {
    width: 100%;
    max-width: 100px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.les-addon-item .les-addon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}
.les-addons-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 600;
}
.les-addons-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}
.les-addons-actions .button {
    min-width: 180px;
    padding: 0.85em 1.4em;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.les-addons-actions .button:not(.button-primary) {
    background-color: #f7f7f7;
    color: #1d1d1d;
    border-color: #d1d1d1;
    cursor: pointer;
}
.les-addons-actions .button.button-primary {
    background-color: #007cba;
    color: #ffffff;
    border-color: #0074b9;
    cursor: pointer;
}
.les-addons-actions .button:hover {
    opacity: 0.95;
}
.les-addons-actions .button.button-primary:hover {
    background-color: #006aa7;
    border-color: #00649a;
}
.les-addons-note {
    color: #555;
    font-size: 0.94rem;
}
@media (max-width: 640px) {
    .les-addon-item {
        grid-template-columns: 1fr;
    }
    .les-addon-item .les-addon-qty {
        max-width: 100%;
    }
    .les-addons-actions {
        justify-content: stretch;
    }
}
