/* ═══════════════════════════════════════════════════════════
   Eventbox Tickets – Frontend Widget
═══════════════════════════════════════════════════════════ */

.ebt-widget {
    margin: 32px 0;
    font-family: inherit;
}

.ebt-widget__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

/* ── Ticket-Liste ────────────────────────────────────────── */

.ebt-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ebt-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ebt-ticket-item:hover:not(.ebt-sold-out):not(.ebt-not-on-sale) {
    border-color: #e6007e;
    box-shadow: 0 2px 8px rgba(99,91,255,0.08);
}

.ebt-ticket-item.ebt-selected {
    border-color: #e6007e;
    background: #fafaff;
}

.ebt-ticket-item.ebt-sold-out,
.ebt-ticket-item.ebt-not-on-sale {
    opacity: 0.55;
    background: #f9fafb;
}

/* ── Ticket Info ─────────────────────────────────────────── */

.ebt-ticket-info {
    flex: 1;
}

.ebt-ticket-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.ebt-ticket-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
}

.ebt-ticket-qty {
    display: inline-block;
    font-size: 0.75rem;
    color: #059669;
    margin-top: 4px;
    background: #ecfdf5;
    padding: 2px 7px;
    border-radius: 4px;
}

.ebt-ticket-qty.ebt-qty-soldout {
    color: #dc2626;
    background: #fef2f2;
}

/* ── Ticket Action ───────────────────────────────────────── */

.ebt-ticket-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 140px;
}

.ebt-ticket-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

/* ── Quantity Select ─────────────────────────────────────── */

.ebt-quantity-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ebt-qty-label {
    font-size: 12px;
    color: #6b7280;
}

.ebt-qty-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────── */

.ebt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}

.ebt-btn--buy {
    background: #e6007e;
    color: #fff;
    min-width: 120px;
}

.ebt-btn--buy:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.ebt-btn--disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    font-weight: 500;
}

.ebt-btn--pay {
    background: #e6007e;
    color: #fff;
    width: 100%;
    padding: 13px 20px;
    font-size: 1rem;
}

.ebt-btn--pay:hover:not(:disabled) {
    opacity: 0.88;
}

.ebt-btn--pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ebt-btn--back {
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #d1d5db;
    flex: 0 0 auto;
}

.ebt-btn--back:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* ── Käufer-Formular ─────────────────────────────────────── */

.ebt-buyer-form {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
}

.ebt-buyer-form h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #111827;
}

.ebt-form-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 16px;
}

.ebt-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.ebt-form-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.ebt-form-row label .required {
    color: #dc2626;
}

.ebt-form-row input {
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.95rem;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.ebt-form-row input:focus {
    outline: none;
    border-color: #e6007e;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.ebt-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

/* ── Fehler ──────────────────────────────────────────────── */

.ebt-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 7px;
    color: #dc2626;
    font-size: 0.875rem;
}

/* ── Stripe Badge ────────────────────────────────────────── */

.ebt-stripe-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    justify-content: flex-end;
    color: #9ca3af;
    font-size: 11px;
}

/* ── Cancel Banner ───────────────────────────────────────── */

.ebt-cancel {
    padding: 16px 20px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 580px) {
    .ebt-ticket-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ebt-ticket-action {
        width: 100%;
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .ebt-form-actions {
        flex-direction: column;
    }

    .ebt-btn--back {
        width: 100%;
    }
}

.ebt-ticket-vat { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.ebt-organizer-info { font-size: 12px; color: #6b7280; margin: 12px 0; padding: 10px 14px; background: #f9fafb; border-radius: 0px; text-align: left; line-height: 1.6; }
.ebt-disclaimer { font-size: 11px; color: #9ca3af; margin-top: 12px; line-height: 1.6; }
.ebt-disclaimer a { color: #e6007e; text-decoration: none; }