.ticketplus-events-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.ticketplus-event-model {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .ticketplus-event-model {
        grid-template-columns: 1fr 1fr;
    }

    .tp-flyer-section {
        grid-row: span 2;
    }
}

.tp-flyer-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tp-info-section {
    padding: 20px;
}

.tp-event-title {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

.tp-event-meta p {
    margin: 5px 0;
    color: #666;
}

.tp-virtual-ticket {
    margin-top: 20px;
    border: 2px dashed #ccc;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.tp-virtual-ticket h4 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #888;
}

.tp-virtual-ticket img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tp-ticket-selection {
    margin-top: 20px;
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
}

.tp-ticket-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.tp-ticket-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.tp-ticket-name {
    font-weight: bold;
}

.tp-ticket-price {
    color: #2c3e50;
}

.tp-buy-button {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.tp-buy-button:hover {
    background: #c0392b;
}

/* Checkout Styles */
.ticketplus-checkout {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ticketplus-checkout h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.ticketplus-checkout h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: #555;
}

.ticketplus-tickets {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ticketplus-tickets th,
.ticketplus-tickets td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ticketplus-tickets th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.ticket-quantity {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.total-price {
    text-align: right;
    font-size: 1.2em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

.ticketplus-checkout label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.ticketplus-checkout input[type="text"],
.ticketplus-checkout input[type="email"],
.ticketplus-checkout input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ticketplus-checkout button[type="submit"] {
    width: 100%;
    background: #2ecc71;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.ticketplus-checkout button[type="submit"]:hover {
    background: #27ae60;
}

/* Event List Widget Styles */
.ticketplus-event-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tp-event-list-item {
    display: grid !important;
    grid-template-columns: var(--tp-date-width, 130px) var(--tp-img-width, 100px) var(--tp-title-width, 220px) var(--tp-loc-width, 1fr) var(--tp-btn-width, 180px) !important;
    /* Adjusted columns for better spacing */
    align-items: center !important;
    background: #1e1e24;
    color: #fff;
    padding: 20px 30px !important;
    border-radius: 8px;
    gap: var(--tp-gap, 20px) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100% !important;
}

.tp-list-date {
    font-size: 1.4em;
    font-weight: 800;
    color: #f1c40f;
    text-align: left;
    white-space: nowrap;
    /* Prevent date wrapping */
    display: flex;
    align-items: center;
}

.tp-list-image img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tp-list-info {
    text-align: left;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tp-list-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.tp-list-location-wrapper {
    text-align: left;
    display: flex;
    align-items: center;
}

.tp-list-location {
    margin: 0;
    font-size: 1.1em;
    color: #e0e0e0;
    font-weight: 500;
    white-space: nowrap;
    /* Prevent location wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-list-action {
    text-align: right;
    width: 100%;
}

.tp-list-button {
    background: #2962ff;
    color: #fff;
    padding: 16px 0 !important;
    /* Vertical padding only, width controlled by grid/width property */
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    display: block !important;
    /* Make it block to fill the wrapper */
    width: 100% !important;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.tp-list-button:hover {
    background: #0039cb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .tp-event-list-item {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 15px !important;
        height: auto !important;
        text-align: left !important;
    }

    .tp-list-date {
        width: auto;
        font-size: 0.75em;
        /* Smaller date */
        text-align: left;
        margin-right: 5px;
    }

    .tp-list-image {
        flex-shrink: 0;
    }

    .tp-list-image img {
        width: 40px !important;
        /* Slightly smaller image */
        height: 40px !important;
        max-width: none;
        margin: 0;
        border-radius: 4px;
        aspect-ratio: 1;
    }

    .tp-list-info {
        flex: 1;
        text-align: left;
        min-width: 80px;
        padding-right: 5px;
    }

    .tp-list-title {
        font-size: 0.85em;
        /* Smaller title */
        margin-bottom: 2px;
        line-height: 1.1;
    }

    .tp-list-location-wrapper {
        text-align: left;
        font-size: 0.7em;
        /* Smaller location */
    }

    .tp-list-action {
        width: auto;
        text-align: right;
    }

    .tp-list-button {
        width: auto !important;
        display: inline-block !important;
        padding: 6px 10px !important;
        /* Smaller padding */
        font-size: 0.7em;
        /* Smaller button text */
        min-width: auto;
    }
}