/* ============================================================
   ETB Compact UI – Floating Labels, Mobile First
============================================================ */
.etb-wrapper {
    max-width: 460px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background:#fff;
    font-family: system-ui,sans-serif;
}

/* ============================================================
   EVENT GRID / CARDS
============================================================ */
.etb-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.etb-event-card {
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform .15s ease, box-shadow .15s ease;
}

.etb-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.etb-event-card h3 {
    margin: 0 0 12px;
    font-size: 1.25em;
    font-weight: 600;
}

.etb-btn {
    display: inline-block;
    padding: 10px 16px;
    background:#0073aa;
    color:#fff !important;
    text-decoration:none;
    border-radius:6px;
    font-weight:600;
    margin-top:8px;
}

.etb-btn:hover {
    background:#005f8c;
}

/* ============================================================
   FLOATING FIELDS
============================================================ */
.etb-field {
    position: relative;
    margin-bottom: 18px;
}

.etb-field select,
.etb-field input,
.etb-field textarea {
    width: 100%;
    padding: 12px 12px 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background:#fafafa;
    transition:.2s;
}

.etb-field label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size:14px;
    color:#777;
    pointer-events:none;
    transition:.2s;
}

/* Floating label (JS adds .filled) */
.etb-field input.filled + label,
.etb-field textarea.filled + label,
.etb-field select.filled + label,
.etb-field input:focus + label,
.etb-field textarea:focus + label,
.etb-field select:focus + label {
    top:-8px;
    font-size:12px;
    background:#fff;
    padding:0 4px;
    color:#333;
}

/* Focus */
.etb-field input:focus,
.etb-field select:focus,
.etb-field textarea:focus {
    border-color:#5d7ce6;
    background:#fff;
    box-shadow:0 0 0 2px rgba(93,124,230,0.2);
}

/* Invalid */
.etb-invalid {
    border-color:#b30000 !important;
    background:#fff0f0 !important;
}

.etb-error {
    font-size:13px;
    color:#b30000;
    margin-top:4px;
}

/* ============================================================
   SELECT DROPDOWN ARROW
============================================================ */
.etb-field select {
    appearance: none;
    background:
        #fafafa url("data:image/svg+xml;utf8,<svg fill='%23666' width='20' height='20' xmlns='http://www.w3.org/2000/svg'><polygon points='6,8 14,8 10,12'/></svg>")
        no-repeat right 10px center;
    background-size: 14px;
    cursor:pointer;
}

/* ============================================================
   QUANTITY + AVAILABILITY INLINE
============================================================ */
.etb-field-qty .etb-qty-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

/* Smaller ticket select */
.etb-field-qty select {
    flex:0 0 55%;
    max-width:160px;
}

/* Availability badge */
#etb-avail-inline {
    flex:0 0 auto;
    padding:4px 10px;
    font-size:13px;
    border-radius:12px;
    background:#eee;
    color:#444;
    white-space:nowrap;
}

#etb-avail-inline.low {
    background:#ffd4d4;
    color:#a30000;
}

/* Low stock text */
.etb-lowstock {
    margin-top:4px;
    font-size:14px;
    color:#b30000;
}

/* ============================================================
   INLINE MESSAGE + COUNTDOWN
============================================================ */
#etb-message {
    display:none;
    border:1px solid #ddd;
    background:#fafafa;
    padding:12px;
    border-radius:6px;
    font-size:14px;
    margin-bottom:10px;
}

#etb-hold-timer {
    font-size:14px;
    margin-top:6px;
}

/* ============================================================
   DSGVO + PAYPAL BOXES
============================================================ */
.etb-privacy-box {
    background:#fafafa;
    border:1px solid #ddd;
    border-radius:8px;
    padding:12px 14px;
    margin-bottom:14px;
}

.etb-privacy-row {
    display:flex;
    gap:10px;
    align-items:flex-start;
    font-size:14px;
    line-height:1.35;
}

.etb-privacy-row input[type="checkbox"] {
    margin-top:2px;
    transform:scale(1.2);
}

.etb-privacy-box.error {
    border-color:#b30000;
    background:#fff0f0;
}

.etb-error-message {
    font-size:13px;
    color:#b30000;
    margin-top:4px;
}

/* ============================================================
   TOTAL
============================================================ */
.etb-total {
    margin-top:14px;
    text-align:right;
    font-size:16px;
    font-weight:600;
}

/* ============================================================
   SOLD OUT
============================================================ */
.etb-soldout {
    padding:10px;
    background:#f3d5d5;
    border-radius:6px;
    color:#a30000;
    font-weight:600;
    text-align:center;
    margin-top:10px;
}

/* ============================================================
   MOBILE
============================================================ */
@media(max-width:480px){
    .etb-wrapper { padding:14px; }
    .etb-field select,
    .etb-field input,
    .etb-field textarea { font-size:16px; }
}
