/* Events & Tickets — public pages */

.ngd-events-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.ngd-event-card {
    display: block;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.ngd-event-card:hover {
    transform: translateY(-2px);
    border-color: #7B2FBE;
}

.ngd-event-card-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ngd-event-card-body {
    padding: 16px 20px 20px;
}

.ngd-event-card-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.1rem;
}

.ngd-event-card-excerpt {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.ngd-event-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8c8f94;
}

.ngd-event-card-price {
    color: #7B2FBE;
    font-weight: 700;
}

.ngd-events-empty {
    color: #8c8f94;
    padding: 40px 0;
    text-align: center;
}

.ngd-back-link {
    display: inline-block;
    color: #7B2FBE;
    text-decoration: none;
    margin-bottom: 16px;
    font-weight: 600;
}

.ngd-single-event-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.ngd-single-event-title {
    color: #ffffff;
    margin: 0 0 12px;
}

.ngd-single-event-description {
    color: #cccccc;
    margin-bottom: 32px;
    line-height: 1.6;
}

.ngd-section-heading {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 24px 0 12px;
}

.ngd-showing-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.ngd-showing-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
}

.ngd-showing-option:has(input:checked) {
    border-color: #7B2FBE;
}

.ngd-showing-option.ngd-sold-out {
    opacity: 0.5;
    cursor: not-allowed;
}

.ngd-showing-option input[type="radio"] {
    margin-top: 4px;
    accent-color: #7B2FBE;
}

.ngd-showing-option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #cccccc;
    font-size: 0.9rem;
}

.ngd-showing-option-label strong {
    color: #ffffff;
    font-size: 1rem;
}

.ngd-showing-availability {
    color: #7B2FBE;
    font-weight: 600;
}

.ngd-ticket-types {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ngd-ticket-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 14px 16px;
}

.ngd-ticket-type-info strong {
    display: block;
    color: #ffffff;
}

.ngd-ticket-type-info span {
    color: #8c8f94;
    font-size: 0.9rem;
}

.ngd-qty-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ngd-qty-stepper button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #242424;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.ngd-qty-stepper button:hover {
    border-color: #7B2FBE;
}

.ngd-qty-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
}

.ngd-ticket-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

.ngd-ticket-running-total {
    color: #cccccc;
}

.ngd-running-total-amount {
    color: #7B2FBE;
    font-size: 1.2rem;
}

.ngd-add-to-cart-btn {
    background: #7B2FBE;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.ngd-add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ngd-ticket-form-feedback {
    margin-top: 12px;
    margin-bottom: 32px;
    font-weight: 600;
}

.ngd-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ngd-cart-strip {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #1a1a1a;
    border-bottom: 2px solid #7B2FBE;
    padding: 14px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    color: #ffffff;
}

/* The strip starts with the native `hidden` attribute (server-rendered, empty
   basket) and JS clears it once a ticket is added. Without this rule the
   `display: flex` above — same (0,1,0) specificity as the browser's own
   default `[hidden] { display: none }` — wins by cascade order and the strip
   shows even with nothing in the basket. */
.ngd-cart-strip[hidden] {
    display: none;
}

/* Sits after the ticket form instead — sticking to the top of the viewport
   (like the strip above the form) would make no sense for a copy that's
   meant to confirm what was just added right where the buyer is looking. */
.ngd-cart-strip-bottom {
    position: static;
    top: auto;
    margin-top: 20px;
    margin-bottom: 24px;
}

.ngd-cart-strip-link {
    color: #ffffff;
    background: #7B2FBE;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .ngd-ticket-type-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* align-items:flex-start above (needed so the stepper doesn't stretch to
       an odd full-width look) also shrinks EVERY flex item to its own
       content width along the now-horizontal cross axis — including this
       one, squeezing "Adult"/"£12.00" down to a ~44px sliver that wraps
       unreadably. Stretching just this item back to the row's full width
       undoes that side effect without affecting the stepper. */
    .ngd-ticket-type-info {
        width: 100%;
    }

    /* The summary text and the button were squeezed onto one row (the
       button's own white-space:nowrap won't let it shrink), pushing the
       button's right edge past the strip and off the screen. Stacked
       instead, each gets the full width to itself. */
    .ngd-cart-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .ngd-cart-strip-link {
        text-align: center;
    }
}
