#mainWrapper {
    margin-top: -1em;
    font-size: 1.3em;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#thankYou {
    padding-bottom: 0.5em;
    text-align: center;
}

#receipt {
    padding-bottom: 1em;
    text-align: center;
}


#purchaseDetails, #ticketHeader {
    font-size: 1.5em;
    font-weight: 600;
    padding-bottom: 0.25em;
    height: auto;
    text-align: center;
}

/* Purchase Items Styling - Matching Cart Design */
#purchaseItems {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    width: 100%;
    padding-top: 0.5em;
}

.purchase-item-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 1.5em 1em 1em 1em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 80vw;
    width: 85%;
    margin: 0 auto 1em auto;
    border: 1px solid #ececec;
    gap: 1em;
    box-sizing: border-box;
}

.purchase-item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    width: 100%;
}

.purchase-item-image {
    display: block;
    min-width: 70px;
    max-width: 90px;
}

.purchase-item-image img {
    width: 100%;
    max-width: 90px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.purchase-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    line-height: 1.15;
    font-size: 1em;
    min-width: 0;
    align-items: center;
    text-align: center;
    color: #111;
    justify-content: center;
    height: 100%;
    width: auto;
}

.purchase-item-title, .purchase-item-date, .purchase-item-time {
    color: #111 !important;
}

/* Override any potential block element styling */
.purchase-item-info span,
.purchase-item-info .purchase-item-title,
.purchase-item-info .purchase-item-date,
.purchase-item-info .purchase-item-time {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    height: auto;
    min-height: auto;
}

.purchase-item-title {
    font-size: 1.2em;
    font-weight: 800;
    margin: 0;
    padding: 0.1em;
    line-height: 1.1;
    word-break: break-word;
    text-align: center;
    height: auto;
    min-height: auto;
    display: block;
    box-sizing: border-box;
}

.purchase-item-date, .purchase-item-time {
    font-size: 0.9em;
    line-height: 1.1;
    text-align: center;
}

.purchase-item-doors {
    font-size: 0.8em;
    line-height: 1.1;
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 0.2em;
}

.purchase-item-details {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 1em;
}

.purchase-item-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 0.6em 1em 0.6em 1em;
    font-size: 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: relative;
    width: 100%;
    max-width: 100%;
    border: 1px solid #e5e5e5;
    margin-bottom: 0.2em;
    transition: background 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}

.purchase-item-description {
    font-weight: 600;
    color: #111;
    text-align: center;
    margin-bottom: 0.5em;
}

.purchase-item-price {
    font-size: 1.2em;
    font-weight: 400;
    color: #111;
    text-align: center;
}

.purchase-item-row--refunded {
    border-color: #f0d0d0;
    background: #fff8f8;
}

.purchase-item-line-through {
    text-decoration: line-through;
    color: #b91c1c !important;
}

.purchase-item-refunded-label {
    display: block;
    font-size: 0.95em;
    font-weight: 700;
    color: #b91c1c;
    text-align: center;
    margin: 0.25em 0 0.35em 0;
    letter-spacing: 0.02em;
}

#ticketWrapper {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: space-between;
    padding: 3em;
    background-color: #e8f4f8;
    max-width: 20em;
    margin-top: 1em;
    margin-bottom: 1em;
    border-radius: 8px;
}

#qrcode {
    height: auto;
    margin-top: 2em;
}

#ticketInfo {
    margin-top: 2em;
    text-align: center;
}