/* Poster ticket header on the customer ticket views. Own class so the shared .card-ticket styles stay untouched. */
.ticket-poster {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

/* Wallet buttons sit under the card title instead of at the bottom. */
.card-ticket.hovercard .wallet-below-header {
    padding: 24px 20px 30px;
}

/* Replaces the space the old bottom wallet row gave below the QR. */
.card-ticket.hovercard:has(.wallet-below-header) {
    padding-bottom: 24px;
}

/* Empty <br> spacer rows (reserved for the "sent to" line) pushed the QR far down; the real sent-to row still shows. */
.card-ticket.hovercard .info .desc:has(> br:only-child) {
    display: none;
}

.ticket-poster__art {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #2b2b2b;
    background-position: center;
    background-size: cover;
}

.ticket-poster__logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    max-width: calc(50% - 2.25rem);
    padding: 0.4rem 0.55rem;
    border-radius: 0.5rem;
    background: #fff;
}

.ticket-poster__logo img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.ticket-poster__date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    background: #fff;
    color: #000;
    line-height: 1;
}

.ticket-poster__day {
    font-size: 1.4rem;
    font-weight: 700;
}

.ticket-poster__month {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.ticket-poster__panel {
    padding: 1rem 1.25rem 1.1rem;
    background: var(--poster-bg);
    color: var(--poster-fg);
}

.ticket-poster__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
    overflow-wrap: anywhere;
}

.ticket-poster__meta {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: var(--poster-label);
}
