/* WD Bar pre-order shop — mobile-first (most people arrive from the ticket email on a phone). */

.wdb-pre {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

.wdb-pre-intro h2 { margin-bottom: 4px; }
.wdb-pre-save { color: #444; }
.wdb-pre-save strong { color: #EC6826; }

.wdb-pre-closed {
    background: #f6f6f6;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.wdb-pre-event-label { display: block; font-weight: 600; margin: 12px 0 4px; }
.wdb-pre-event {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.wdb-pre-section { margin: 22px 0 10px; border-bottom: 2px solid #EC6826; padding-bottom: 4px; }

.wdb-pre-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .wdb-pre-grid { grid-template-columns: 1fr 1fr; } }

.wdb-pre-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    transition: border-color .15s;
}
.wdb-pre-tile.in-basket { border-color: #EC6826; }
.wdb-pre-tile.is-soldout { opacity: .55; }

.wdb-pre-photo img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.wdb-pre-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wdb-pre-name { font-weight: 600; }
.wdb-pre-abv {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 1px 5px;
    white-space: nowrap;
}
.wdb-pre-desc { font-size: 13px; color: #666; }
.wdb-pre-price s { color: #999; font-size: 13px; }
.wdb-pre-price strong { color: #EC6826; font-size: 16px; }
.wdb-pre-stockflag { font-size: 12px; font-weight: 600; color: #c0392b; }
.wdb-pre-stockflag.is-low { color: #996800; }

.wdb-pre-stepper { display: flex; align-items: center; gap: 8px; }
.wdb-pre-stepper button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 1;
    border: 2px solid #EC6826;
    background: #fff;
    color: #EC6826;
    border-radius: 50%;
    cursor: pointer;
}
.wdb-pre-stepper button:active { background: #EC6826; color: #fff; }
.wdb-step-qty { min-width: 20px; text-align: center; font-weight: 700; font-size: 16px; }

.wdb-pre-basketbar[hidden] { display: none; }
.wdb-pre-basketbar {
    position: sticky;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #222;
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.wdb-pre-basketbar strong { margin-left: auto; font-size: 18px; }

.wdb-btn {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.wdb-btn-primary { background: #EC6826; color: #fff; }
.wdb-btn-primary:disabled { background: #ccc; cursor: default; }

.wdb-pre-back { background: none; border: 0; color: #EC6826; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 10px; }

.wdb-pre-field { margin: 12px 0; }
.wdb-pre-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.wdb-pre-hint { font-weight: 400; color: #777; font-size: 13px; }
.wdb-pre-field input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

#wdb-payment-area { margin-top: 16px; }
#wdb-payment-element { margin-bottom: 14px; }

.wdb-pre-errors {
    margin-top: 12px;
    background: #fdecea;
    color: #b71c1c;
    border-radius: 8px;
    padding: 12px;
}

.wdb-pre-summary { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.wdb-pre-summary td { padding: 6px 4px; border-bottom: 1px solid #eee; }
.wdb-pre-summary td:last-child, .wdb-pre-summary-amount { text-align: right; white-space: nowrap; }
.wdb-pre-summary-discount td { color: #1a7f37; }
.wdb-pre-summary-total td { font-weight: 700; border-bottom: 0; }

/* Confirmation / order view */
.wdb-pre-confirm { text-align: center; }
.wdb-pre-confirm-event { color: #555; font-weight: 600; }
.wdb-pre-ref {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #EC6826;
    background: #fff7f2;
    border: 3px dashed #EC6826;
    border-radius: 14px;
    padding: 18px;
    margin: 14px auto;
    max-width: 380px;
}
.wdb-pre-confirm-name { font-size: 18px; font-weight: 600; }
.wdb-pre-confirm .wdb-pre-summary { max-width: 380px; margin-left: auto; margin-right: auto; }
