/* TicketMaster Pro – Frontend Styles */
:root {
    --tmp-primary:    #1a1a1a;
    --tmp-accent:     #e65d00;
    --tmp-accent2:    #b84a00;
    --tmp-success:    #27ae60;
    --tmp-warning:    #e65d00;
    --tmp-danger:     #e74c3c;
    --tmp-light:      #f8f9fa;
    --tmp-border:     #e0e0e0;
    --tmp-radius:     12px;
    --tmp-shadow:     0 4px 24px rgba(0,0,0,.10);
}

/* ── Buttons ───────────────────────────────────────── */
.tmp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
}
.tmp-btn-primary  { background: var(--tmp-accent); color: #fff; }
.tmp-btn-primary:hover  { background: #c73652; color: #fff; transform: translateY(-1px); }
.tmp-btn-secondary { background: transparent; color: var(--tmp-accent2); border-color: var(--tmp-accent2); }
.tmp-btn-secondary:hover { background: var(--tmp-accent2); color: #fff; }
.tmp-btn-disabled { background: #ccc; color: #666; cursor: not-allowed; }

/* ── Badges ─────────────────────────────────────────── */
.tmp-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.tmp-badge-active    { background: #d4edda; color: #155724; }
.tmp-badge-used      { background: #cce5ff; color: #004085; }
.tmp-badge-cancelled { background: #f8d7da; color: #721c24; }
.tmp-badge-resell    { background: #fff3cd; color: #856404; }
.tmp-badge-pending-consent { background: #e8d5f5; color: #6f42c1; }
.tmp-badge-sold      { background: #e2e3e5; color: #383d41; }

/* ── Event Cards ────────────────────────────────────── */
.tmp-event-list { display: flex; flex-direction: column; gap: 16px; }
.tmp-event-card {
    display: flex;
    background: #fff;
    border-radius: var(--tmp-radius);
    box-shadow: var(--tmp-shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.tmp-event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.tmp-event-thumb { width: 160px; min-height: 120px; background-size: cover; background-position: center; flex-shrink: 0; }
.tmp-event-card-body { display: flex; align-items: center; gap: 16px; padding: 16px; flex: 1; }
.tmp-event-card-date { text-align: center; background: var(--tmp-primary); color: #fff; border-radius: 8px; padding: 10px 14px; min-width: 60px; }
.tmp-event-card-date span { display: block; font-size: 20px; font-weight: 800; }
.tmp-event-card-date small { font-size: 11px; opacity: .8; }
.tmp-event-card-info { flex: 1; }
.tmp-event-card-info h3 { margin: 0 0 6px; font-size: 17px; }
.tmp-event-card-info h3 a { color: var(--tmp-primary); text-decoration: none; }
.tmp-event-venue { color: #666; font-size: 13px; margin: 0; }
.tmp-event-card-action { text-align: right; }
.tmp-avail-badge { display: block; font-size: 12px; color: var(--tmp-success); font-weight: 600; margin-top: 4px; }
.tmp-sold-badge  { background: var(--tmp-danger); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* ── Occurrences Grid ───────────────────────────────── */
.tmp-occurrences-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0; }
.tmp-occ-card {
    background: #fff;
    border: 2px solid var(--tmp-border);
    border-radius: var(--tmp-radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: border-color .2s, box-shadow .2s;
}
.tmp-occ-card:hover { border-color: var(--tmp-accent); box-shadow: var(--tmp-shadow); }
.tmp-occ-card.tmp-sold-out { opacity: .6; }
.tmp-occ-date { background: var(--tmp-accent); color: #fff; border-radius: 8px; padding: 8px 12px; text-align: center; min-width: 50px; }
.tmp-occ-date .tmp-occ-day   { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.tmp-occ-date .tmp-occ-month { display: block; font-size: 11px; margin-top: 2px; }
.tmp-occ-info { flex: 1; }
.tmp-occ-time { font-weight: 600; margin-bottom: 8px; }
.tmp-progress-bar { background: #eee; border-radius: 4px; height: 6px; margin-bottom: 4px; }
.tmp-progress-fill { background: var(--tmp-accent); height: 100%; border-radius: 4px; transition: width .4s; }
.tmp-occ-action { margin-top: 12px; }

/* ── Calendar ───────────────────────────────────────── */
.tmp-calendar-wrap { max-width: 800px; margin: 0 auto; }
.tmp-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tmp-cal-title { margin: 0; font-size: 22px; font-weight: 700; }
.tmp-cal-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: var(--tmp-primary); color: #fff;
    text-decoration: none; font-size: 20px; transition: background .2s;
}
.tmp-cal-arrow:hover { background: var(--tmp-accent); color: #fff; }
.tmp-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--tmp-border); border: 1px solid var(--tmp-border); border-radius: 8px; overflow: hidden; }
.tmp-cal-header { background: var(--tmp-primary); color: #fff; text-align: center; padding: 8px; font-weight: 700; font-size: 13px; }
.tmp-cal-cell { background: #fff; min-height: 90px; padding: 6px; position: relative; }
.tmp-cal-cell.tmp-cal-empty { background: #fafafa; }
.tmp-cal-cell.tmp-today { background: #fff8f0; }
.tmp-cal-cell.tmp-today .tmp-cal-day-num { background: var(--tmp-accent); color: #fff; border-radius: 50%; padding: 2px 6px; }
.tmp-cal-cell.tmp-has-events { background: #f0f4ff; }
.tmp-cal-day-num { font-size: 13px; font-weight: 700; color: #333; display: inline-block; margin-bottom: 4px; }
.tmp-cal-event { display: block; background: var(--tmp-accent); color: #fff; font-size: 10px; border-radius: 3px; padding: 2px 5px; margin-bottom: 2px; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tmp-cal-event:hover { background: var(--tmp-accent2); color: #fff; }
.tmp-cal-event-list { margin-top: 20px; }
.tmp-cal-event-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tmp-border); }
.tmp-cal-event-date { font-weight: 600; color: #666; min-width: 120px; font-size: 13px; }

/* ── My Tickets ─────────────────────────────────────── */
.tmp-my-tickets { max-width: 900px; }
.tmp-ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.tmp-ticket-card {
    background: linear-gradient(135deg, #e65d00 0%, #b84a00 100%);
    color: #fff;
    min-width: 0; border-radius: var(--tmp-radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--tmp-shadow);
}
.tmp-ticket-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='10'/%3E%3C/g%3E%3C/svg%3E") repeat;
}
.tmp-ticket-card.tmp-ticket-status-used { opacity: .7; filter: grayscale(.3); }
.tmp-ticket-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; position: relative; }
.tmp-ticket-event { font-weight: 700; font-size: 15px; flex: 1; margin-right: 8px; }
.tmp-ticket-code-block { text-align: center; margin: 16px 0; position: relative; }
.tmp-ticket-code { display: block; font-size: 18px; letter-spacing: 2px; color: #fff; background: rgba(0,0,0,.15); border-radius: 6px; padding: 8px 12px; margin-top: 8px; }
.tmp-ticket-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; opacity: .85; position: relative; }

/* ── Scanner ─────────────────────────────────────────── */
.tmp-scanner-wrap { max-width: 600px; margin: 0 auto; }
.tmp-scanner-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tmp-tab-btn { padding: 10px 20px; border: 2px solid var(--tmp-border); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all .2s; }
.tmp-tab-btn.active { background: var(--tmp-primary); color: #fff; border-color: var(--tmp-primary); }
.tmp-manual-scan-form { display: flex; gap: 8px; margin-bottom: 16px; }
.tmp-code-input { flex: 1; padding: 12px 16px; border: 2px solid var(--tmp-border); border-radius: 8px; font-size: 16px; font-family: monospace; letter-spacing: 2px; }
.tmp-code-input:focus { outline: none; border-color: var(--tmp-accent); }
.tmp-scan-result { margin: 16px 0; padding: 20px; border-radius: var(--tmp-radius); text-align: center; font-size: 18px; font-weight: 700; animation: tmp-pop .3s ease; }
.tmp-scan-valid    { background: #d4edda; color: #155724; border: 2px solid #c3e6cb; }
.tmp-scan-invalid  { background: #f8d7da; color: #721c24; border: 2px solid #f5c6cb; }
.tmp-scan-used     { background: #fff3cd; color: #856404; border: 2px solid #ffeeba; }
@keyframes tmp-pop { 0% { transform: scale(.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.tmp-scan-history { margin-top: 24px; }
.tmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tmp-table th, .tmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--tmp-border); text-align: left; }
.tmp-table th { background: var(--tmp-primary); color: #fff; }

/* ── Resell Market ──────────────────────────────────── */
.tmp-resell-market { margin: 20px 0; }
.tmp-resell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.tmp-resell-card { background: #fff; border: 2px solid var(--tmp-border); border-radius: var(--tmp-radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.tmp-resell-card:hover { border-color: var(--tmp-accent); }
.tmp-resell-price { font-size: 22px; font-weight: 800; color: var(--tmp-accent); }
.tmp-original-price { color: #999; text-decoration: line-through; font-size: 12px; }

/* ── Event Details ──────────────────────────────────── */
.tmp-event-details { margin-top: 32px; }
.tmp-event-location { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 16px; color: #444; }

/* ── Progress (admin) ───────────────────────────────── */
.tmp-progress { height: 4px; background: #eee; border-radius: 2px; margin-top: 4px; }
.tmp-progress div { height: 100%; background: var(--tmp-accent); border-radius: 2px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    /* Events */
    .tmp-event-card { flex-direction: column; }
    .tmp-event-thumb { width: 100%; height: 160px; }
    .tmp-event-card-body { flex-wrap: wrap; }
    .tmp-cal-cell { min-height: 60px; }
    .tmp-cal-event { display: none; }
    .tmp-occurrences-grid { grid-template-columns: 1fr; }

    /* ── Meine Tickets – Mobile ──────────────────────────── */
    .tmp-ticket-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 12px 0;
    }
    .tmp-ticket-card {
        border-radius: 16px;
        padding: 0;
        overflow: hidden;
    }
    .tmp-ticket-header {
        padding: 14px 16px 10px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .tmp-ticket-event {
        font-size: 15px;
        font-weight: 800;
        flex: 1;
        min-width: 0;
    }
    .tmp-ticket-code-block {
        padding: 12px 16px;
        border-top: 1px solid rgba(255,255,255,.1);
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .tmp-ticket-code-block img {
        width: 140px !important;
        height: 140px !important;
    }
    .tmp-ticket-code {
        font-size: 15px !important;
        letter-spacing: 1px;
    }
    .tmp-ticket-meta {
        padding: 10px 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .tmp-ticket-meta span {
        font-size: 11px;
        background: rgba(255,255,255,.1);
        padding: 4px 8px;
        border-radius: 6px;
    }
    /* Wallet / action buttons */
    .tmp-ticket-card .tmp-btn {
        display: block;
        text-align: center;
        margin: 8px 16px;
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    /* QR fullscreen always full width on mobile */
    .tmp-qr-fullscreen img {
        width: min(90vw, 300px) !important;
        height: min(90vw, 300px) !important;
    }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 601px) {
    .tmp-ticket-grid { grid-template-columns: 1fr; }
}

/* ── Ticket-Type Cards (buy-tickets template) ───────────── */
.tmp-buy-tickets { margin: 20px 0; min-width: 280px; }
.tmp-buy-occurrence { min-width: 280px; }

.tmp-buy-occurrence {
    background: #fff;
    border: 2px solid var(--tmp-border);
    border-radius: var(--tmp-radius);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--tmp-shadow);
}

.tmp-buy-occ-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--tmp-primary);
    color: #fff;
    padding: 14px 20px;
    flex-wrap: wrap;
}

.tmp-buy-occ-date { font-weight: 700; font-size: 15px; }
.tmp-buy-occ-total { text-align: right; }
.tmp-occ-seats { font-size: 12px; opacity: .85; }

.tmp-ticket-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0;
}

.tmp-ticket-type-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-right: 1px solid var(--tmp-border);
    border-bottom: 1px solid var(--tmp-border);
    transition: background .2s;
}
.tmp-ticket-type-card:hover { background: #f9f9ff; }
.tmp-ticket-type-card.tmp-sold-out { opacity: .6; background: #fafafa; }

.tmp-ttc-name strong { font-size: 16px; display: block; margin-bottom: 4px; }
.tmp-ttc-desc { font-size: 12px; color: #666; margin: 0; }

.tmp-ttc-availability { }
.tmp-mini-progress {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 4px;
}
.tmp-mini-progress div {
    height: 100%;
    background: var(--tmp-accent);
    border-radius: 2px;
}
.tmp-ttc-availability small { font-size: 11px; color: #666; }
.tmp-ttc-availability .tmp-sold-label { color: var(--tmp-danger); font-weight: 700; }

.tmp-ttc-price-action {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}
.tmp-ttc-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--tmp-accent);
}

/* Product page availability */
.tmp-product-availability {
    margin: 12px 0;
    padding: 10px 14px;
    background: #f0f7f0;
    border-left: 3px solid var(--tmp-success);
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 14px;
}
.tmp-sold-out-msg {
    background: #fdf0f0;
    border-color: var(--tmp-danger);
}

/* Admin stats revenue card */
.tmp-stat-card.tmp-revenue { border-color: #27ae60; }

@media (max-width: 600px) {
    .tmp-ticket-types-grid { grid-template-columns: 1fr; }
    .tmp-buy-occ-header { flex-direction: column; align-items: flex-start; }
}

/* ── Ticket Transfer ────────────────────────────────────── */
.tmp-transfer-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.15);
    position: relative;
}
.tmp-transfer-form h4 { font-size: 13px; margin: 0 0 8px; opacity: .9; }
.tmp-transfer-fields { margin-top: 8px; }
.tmp-transfer-fields label { font-size: 13px; display: block; }
.tmp-transfer-pending { background: rgba(255,255,255,.1); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.tmp-transfer-pending p { margin: 0 0 6px; }
.tmp-transfer-msg { font-size: 13px; margin: 6px 0 0; }

/* ── Ticket Registration Fields ────────────────────────── */
.tmp-ticket-fields-wrap {
    margin: 24px 0;
    padding: 20px 24px;
    background: #fff;
    border: 2px solid #e65d00;
    border-radius: 12px;
}
.tmp-fields-title {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1a1a1a;
}
.tmp-fields-desc {
    color: #888;
    font-size: 13px;
    margin: 0 0 16px;
}
.tmp-field-set {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}
.tmp-field-set:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.tmp-field-set-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f0f4ff;
    border-radius: 6px;
}
.tmp-remove-participant {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}
.tmp-field-row {
    margin-bottom: 12px;
}
.tmp-field-row label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
}
.tmp-field-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.tmp-field-input:focus {
    outline: none;
    border-color: #e65d00;
    box-shadow: 0 0 0 3px rgba(233,69,96,.12);
}
.tmp-req {
    color: #e65d00;
    margin-left: 2px;
}

/* Waiver box */
.tmp-waiver-box {
    background: #fafafa;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
}
.tmp-waiver-text {
    max-height: 160px;
    overflow-y: auto;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-right: 6px;
}
.tmp-waiver-text::-webkit-scrollbar { width: 4px; }
.tmp-waiver-text::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.tmp-waiver-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}
.tmp-waiver-label input[type=checkbox] {
    width: 20px !important;
    height: 20px !important;
    accent-color: #e65d00;
    cursor: pointer;
    flex-shrink: 0;
}

/* Checkbox confirm */
.tmp-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px !important;
    padding: 12px;
    background: #f0f7f0;
    border: 1.5px solid #27ae60;
    border-radius: 8px;
}
.tmp-checkbox-label input[type=checkbox] {
    width: 20px !important;
    height: 20px !important;
    accent-color: #27ae60;
    cursor: pointer;
    flex-shrink: 0;
}

/* Add participant button */
.tmp-add-participant {
    margin-top: 8px;
    font-size: 13px !important;
}

/* ── Registration Form Page ─────────────────────────────── */
.tmp-reg-wrap {
    width: 600px !important;
    max-width: 100%;
    min-width: 320px;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* All panels same fixed width - no layout shift between tabs */
.tmp-reg-panel,
.tmp-reg-panel.active {
    width: 100%;
    box-sizing: border-box;
}

/* Force the WooCommerce / theme content area to be wide enough */
.woocommerce .tmp-reg-wrap,
.entry-content .tmp-reg-wrap,
.post-content .tmp-reg-wrap,
.wp-block-group .tmp-reg-wrap,
main .tmp-reg-wrap {
    width: 600px !important;
    max-width: 100% !important;
}

/* Header */
.tmp-reg-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.tmp-reg-thumb {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.tmp-reg-breadcrumb { margin-bottom: 6px; }
.tmp-reg-breadcrumb a { color: #888; font-size: 13px; text-decoration: none; }
.tmp-reg-breadcrumb a:hover { color: #e65d00; }
.tmp-reg-title { font-size: 20px; font-weight: 800; color: #1a1a1a; margin: 0 0 8px; }
.tmp-reg-meta { display: flex; gap: 12px; align-items: center; }
.tmp-reg-price { font-size: 18px; font-weight: 700; color: #e65d00; }
.tmp-reg-qty-badge {
    background: #1a1a1a; color: #fff;
    border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 700;
}

/* Progress bar */
.tmp-reg-progress {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    padding: 0 10px;
}
.tmp-reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.tmp-step-num {
    width: 32px; height: 32px;
    background: #e0e0e0; color: #888;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    transition: background .3s, color .3s;
}
.tmp-reg-step.tmp-reg-step-active .tmp-step-num {
    background: #e65d00; color: #fff;
}
.tmp-step-label { font-size: 11px; color: #888; font-weight: 600; }
.tmp-reg-step-line { flex: 1; height: 2px; background: #e0e0e0; margin: 0 6px; margin-bottom: 16px; }

/* Errors */
.tmp-reg-errors {
    background: #fdf0f0; border: 1.5px solid #e74c3c; border-radius: 10px;
    padding: 14px 18px; margin-bottom: 20px;
}
.tmp-reg-errors p { color: #c0392b; margin: 4px 0; font-size: 14px; font-weight: 600; }

/* Qty selector */
.tmp-reg-qty-selector {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px; padding: 14px 18px;
    background: #f8f9fa; border-radius: 10px;
    font-weight: 600; flex-wrap: wrap;
}
.tmp-qty-controls { display: flex; align-items: center; gap: 10px; }
.tmp-qty-btn {
    width: 38px; height: 38px;
    background: #1a1a1a; color: #fff; border: none;
    border-radius: 8px; font-size: 20px; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; flex-shrink: 0;
}
.tmp-qty-btn:hover { background: #e65d00; }
#tmp-qty-display { font-size: 20px; font-weight: 800; min-width: 36px; text-align: center; }

/* Tabs */
.tmp-reg-tabs {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
}
.tmp-reg-tab {
    padding: 8px 18px; border-radius: 8px; border: 2px solid #e0e0e0;
    background: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
    transition: all .2s; color: #666;
}
.tmp-reg-tab.active {
    background: #1a1a1a; color: #fff; border-color: #1a1a1a;
}

/* Panels */
.tmp-reg-panel { display: none; }
.tmp-reg-panel.active { display: block; }
.tmp-reg-panel-title {
    font-size: 17px; font-weight: 700; color: #1a1a1a;
    margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #f0f0f0;
}

/* Fields */
.tmp-reg-field { margin-bottom: 18px; }
.tmp-reg-field label {
    display: block; font-weight: 600; font-size: 13px; color: #444; margin-bottom: 6px;
}
.tmp-reg-input {
    width: 100%; padding: 11px 14px;
    border: 2px solid #e0e0e0; border-radius: 9px;
    font-size: 15px; transition: border-color .2s;
    box-sizing: border-box; color: #1a1a1a;
}
.tmp-reg-input:focus { outline: none; border-color: #e65d00; box-shadow: 0 0 0 3px rgba(233,69,96,.1); }
.tmp-reg-input.tmp-invalid { border-color: #e74c3c; background: #fdf0f0; }
.tmp-req { color: #e65d00; margin-left: 3px; }

/* Waiver block */
.tmp-waiver-block {
    background: #fafafa; border: 2px solid #e0e0e0; border-radius: 10px; overflow: hidden;
}
.tmp-waiver-scroll-box {
    max-height: 200px; overflow-y: auto;
    padding: 16px 18px; font-size: 13px; color: #555; line-height: 1.7;
    border-bottom: 2px solid #e0e0e0;
}
.tmp-waiver-scroll-box::-webkit-scrollbar { width: 5px; }
.tmp-waiver-scroll-box::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.tmp-waiver-accept {
    display: flex !important; align-items: center; gap: 12px;
    padding: 14px 18px; cursor: pointer; font-weight: 700 !important;
    font-size: 14px !important; color: #1a1a1a !important; margin: 0 !important;
}
.tmp-waiver-accept input[type=checkbox] {
    width: 22px !important; height: 22px !important;
    accent-color: #e65d00; cursor: pointer; flex-shrink: 0;
}
.tmp-waiver-accept.tmp-invalid { background: #fdf0f0; }

/* Confirm checkbox */
.tmp-confirm-box {
    display: flex !important; align-items: center; gap: 12px;
    padding: 14px 16px; cursor: pointer;
    background: #f0fff4; border: 2px solid #27ae60; border-radius: 10px;
    font-weight: 700 !important; font-size: 14px !important; color: #1a1a1a !important;
}
.tmp-confirm-box input[type=checkbox] {
    width: 22px !important; height: 22px !important;
    accent-color: #27ae60; flex-shrink: 0;
}
.tmp-confirm-box.tmp-invalid { background: #fdf0f0; border-color: #e74c3c; }

/* Tab navigation */
.tmp-reg-tab-nav {
    display: flex; gap: 12px; justify-content: flex-end;
    margin-top: 28px; padding-top: 20px; border-top: 2px solid #f0f0f0;
}
.tmp-reg-submit { font-size: 16px !important; padding: 14px 28px !important; }

/* Register CTA on product page */
.tmp-register-cta {
    margin: 16px 0;
    padding: 16px 20px;
    background: #fff5f7;
    border: 2px solid #e65d00;
    border-radius: 12px;
}
.tmp-register-notice { margin: 0 0 12px; font-size: 14px; color: #555; }

@media (max-width: 600px) {
    .tmp-reg-header { flex-direction: column; }
    .tmp-reg-thumb { width: 100%; height: 140px; }
    .tmp-reg-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .tmp-reg-tab-nav { flex-direction: column; }
}

/* ── Option A: Ticket-Type Buy Cards ────────────────────── */
.tmp-occ-list { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }

.tmp-occ-block {
    border: 2px solid var(--tmp-border);
    border-radius: var(--tmp-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--tmp-shadow);
}

.tmp-occ-block-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--tmp-primary);
    color: #fff;
}

.tmp-occ-block-date {
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    min-width: 52px;
}
.tmp-occ-day  { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.tmp-occ-mon  { display: block; font-size: 11px; opacity: .8; margin-top: 2px; }

.tmp-occ-block-info { flex: 1; }
.tmp-occ-block-info strong { font-size: 15px; }
.tmp-occ-block-info .tmp-progress-bar { background: rgba(255,255,255,.2); }
.tmp-occ-block-info .tmp-progress-fill { background: #fff; }
.tmp-occ-block-info small { opacity: .8; font-size: 12px; }

.tmp-tt-buy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
    border-top: 1px solid var(--tmp-border);
}

.tmp-tt-buy-card {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--tmp-border);
    transition: background .15s;
    background: #fff;
}
.tmp-tt-buy-card:last-child { border-right: none; }
.tmp-tt-buy-card:hover { background: #fafbff; }
.tmp-tt-buy-card.tmp-tt-soldout { opacity: .65; }

.tmp-tt-buy-stripe {
    height: 5px;
    background: var(--tt-color);
}

.tmp-tt-buy-body {
    padding: 14px 16px;
    flex: 1;
}

.tmp-tt-buy-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--tmp-primary);
    margin-bottom: 4px;
}

.tmp-tt-buy-age {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.tmp-tt-buy-hint {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.tmp-tt-buy-avail { margin-top: 8px; }
.tmp-mini-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 4px;
    overflow: hidden;
}
.tmp-mini-bar div {
    height: 100%;
    border-radius: 2px;
    transition: width .4s;
}
.tmp-tt-buy-avail small { font-size: 11px; color: #888; }

.tmp-tt-buy-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
    gap: 10px;
}

.tmp-tt-buy-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--tt-color);
}

.tmp-tt-buy-btn {
    font-size: 13px !important;
    padding: 8px 14px !important;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .tmp-tt-buy-grid { grid-template-columns: 1fr 1fr; }
    .tmp-occ-block-header { flex-direction: column; }
}

/* ── Schedule / Ablauf ──────────────────────────────────── */
.tmp-schedule-block {
    margin: 0 0 28px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.tmp-schedule-block h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--tmp-primary);
}
.tmp-schedule-list { display: flex; flex-direction: column; gap: 0; }
.tmp-schedule-row {
    display: flex;
    align-items: baseline;
    gap: 0;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.tmp-schedule-row:last-child { border-bottom: none; }
.tmp-schedule-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--tmp-accent);
    min-width: 120px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.tmp-schedule-desc {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ── Ticket buy section ─────────────────────────────────── */
.tmp-buy-section {
    margin: 32px 0;
}
.tmp-buy-section > h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--tmp-primary);
    margin: 0 0 20px;
}

.tmp-occ-buy-wrap {
    border: 2px solid var(--tmp-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

/* Occurrence header with background photo */
.tmp-occ-buy-header {
    position: relative;
    min-height: 80px;
    background: var(--tmp-primary);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.tmp-occ-buy-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,.85), rgba(233,69,96,.6));
}
.tmp-occ-buy-header-content {
    position: relative;
    padding: 16px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tmp-occ-buy-date {
    font-size: 16px;
    font-weight: 800;
}
.tmp-occ-buy-time {
    font-size: 14px;
    opacity: .9;
}

/* Ticket type rows – stacked vertically */
.tmp-occ-buy-types {
    display: flex;
    flex-direction: column;
}
.tmp-ticket-type-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .15s;
}
.tmp-ticket-type-row:last-child { border-bottom: none; }
.tmp-ticket-type-row:hover { background: #fafbff; }
.tmp-ticket-type-row.tmp-ttr-soldout { opacity: .6; }

.tmp-ttr-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--row-color);
    flex-shrink: 0;
}
.tmp-ttr-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.tmp-ttr-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tmp-primary);
}
.tmp-ttr-avail {
    font-size: 12px;
    color: #27ae60;
    background: #eafaf1;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.tmp-ttr-low {
    color: #e65d00;
    background: #fef9e7;
}
.tmp-ttr-soldout .tmp-ttr-avail {
    color: #e74c3c;
    background: #fdf0f0;
}
.tmp-ttr-age {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 7px;
    border-radius: 10px;
}
.tmp-ttr-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--tmp-primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.tmp-ttr-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .2s, transform .15s;
    border: none;
    cursor: pointer;
}
.tmp-ttr-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.tmp-ttr-btn-disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 600px) {
    .tmp-ticket-type-row { flex-wrap: wrap; gap: 8px; }
    .tmp-ttr-btn { width: 100%; text-align: center; }
    .tmp-occ-buy-header-content { flex-direction: column; gap: 6px; }
    .tmp-schedule-time { min-width: 90px; font-size: 12px; }
}

/* ── Ticket row: name + availability inline + description below ── */
.tmp-ttr-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tmp-ttr-desc {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    font-weight: 400;
    line-height: 1.4;
}

/* Orange buy button using CSS variable */
.tmp-ttr-btn {
    background: var(--brand-orange, #e65d00) !important;
    border-color: var(--brand-orange, #e65d00) !important;
}
.tmp-ttr-btn:hover {
    background: color-mix(in srgb, var(--brand-orange, #e65d00) 85%, #000) !important;
    opacity: 1;
}
.tmp-ttr-btn-disabled {
    background: #ccc !important;
    border-color: #ccc !important;
}

/* Soldout label inline */
.tmp-ttr-soldout-label {
    color: #e74c3c !important;
    background: #fdf0f0 !important;
}



/* ── Language Switcher ───────────────────────────────── */
.tmp-lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
}
.tmp-lang-btn {
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 6px;
    font-size: 18px;
    width: 36px; height: 36px;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    line-height: 1;
}
.tmp-lang-btn:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.6); }
.tmp-lang-btn.active { background: rgba(255,255,255,.9); border-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* On light backgrounds */
.tmp-single-wrap .tmp-lang-switcher .tmp-lang-btn {
    background: #f5f5f5;
    border-color: #ddd;
}
.tmp-single-wrap .tmp-lang-switcher .tmp-lang-btn.active {
    background: #fff;
    border-color: #e65d00;
    box-shadow: 0 2px 8px rgba(230,93,0,.2);
}
