.slotify-event-picker {
    margin: 12px 0 16px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    display: block;
    width: 100%;
}

.slotify-event-picker .slotify-field {
    margin-bottom: 10px;
}

.slotify-event-picker label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.slotify-event-picker select {
    width: 100%;
    max-width: 420px;
}

#slotify-help.is-error {
    color: #b32d2e;
}
#slotify-help.is-info {
    color: #2271b1;
}
.slotify-block {
    margin: 5px;
}

.slotify-event-picker {
    margin: 14px 0;
}
.slotify-block__title {
    font-weight: 600;
    margin-bottom: 10px;
}
/* =========================
   GRID SLOT
========================= */

.slotify-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per riga */
    gap: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .slotify-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .slotify-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .slotify-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CARD
========================= */

.slotify-card {
    appearance: none;
    border: 1px solid #ddd;
    background: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 8px 10px; /* più compatta */
    cursor: pointer;
    transition: transform 0.08s ease, border-color 0.08s ease,
    box-shadow 0.08s ease;
    min-height: 70px; /* evita card troppo alte */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slotify-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border-color: #cfcfcf;
}

.slotify-card.is-selected {
    border-color: #111;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* =========================
   CONTENUTO CARD
========================= */

.slotify-card__title {
    font-weight: 600;
    font-size: 14px; /* leggermente ridotto */
    margin-bottom: 2px;
}

.slotify-card__meta {
    font-size: 11px; /* più compatto */
    opacity: 0.75;
    margin-top: 2px;
    line-height: 1.3;
}

/* =========================
   QTY ROW
========================= */

.slotify-row--qty {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.slotify-field label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.slotify-field input[type="number"] {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
}

/* =========================
   HELP / EMPTY
========================= */

.slotify-help {
    margin-top: 10px;
    font-size: 13px;
}

.slotify-help.is-error {
    color: #b00020;
}

.slotify-help.is-info {
    color: #444;
    opacity: 0.9;
}

.slotify-empty {
    opacity: 0.75;
    width: 100%;
    font-size: 14px;
}

.slotify-checkin {
    max-width: 520px;
    margin: 0 auto;
    padding: 16px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.slotify-checkin__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.slotify-checkin__title {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.2px;
}

.slotify-checkin__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.slotify-status {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.slotify-status--info {
    background: rgba(13, 110, 253, 0.08);
}
.slotify-status--ok {
    background: rgba(25, 135, 84, 0.1);
}
.slotify-status--err {
    background: rgba(220, 53, 69, 0.1);
}

.slotify-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.slotify-qr {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.slotify-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: rgba(0, 0, 0, 0.55);
    font-size: 12px;
}

.slotify-divider::before,
.slotify-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.slotify-manual {
    display: flex;
    gap: 10px;
}

.slotify-input {
    flex: 1;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 14px;
}

.slotify-btn {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.slotify-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.slotify-btn--primary {
    border-color: rgba(13, 110, 253, 0.25);
}

.slotify-btn--danger {
    border-color: rgba(220, 53, 69, 0.25);
}

.slotify-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

/* ============================
   Slotify Countdown (Holds)
   ============================ */

#slotify-countdown-wrapper {
    margin: 14px 0 6px;
    width: 100%;
}

.slotify-countdown {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 12px;

    background: #f6f7fb;
    border: 1px solid rgba(0, 0, 0, 0.08);

    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.slotify-countdown__label {
    font-weight: 600;
    opacity: 0.85;
}

#slotify-countdown-time {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
    padding: 6px 10px;
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* optional small helper text */
.slotify-countdown__hint {
    margin-left: auto;
    font-weight: 500;
    opacity: 0.7;
    font-size: 13px;
}

/* ============================
   States (set via JS classes)
   ============================ */

.slotify-countdown.is-ok {
    background: #f4fbf7;
    border-color: rgba(0, 128, 0, 0.18);
}

.slotify-countdown.is-ok #slotify-countdown-time {
    background: rgba(0, 128, 0, 0.1);
    border-color: rgba(0, 128, 0, 0.18);
}

.slotify-countdown.is-warn {
    background: #fff8eb;
    border-color: rgba(255, 153, 0, 0.25);
}

.slotify-countdown.is-warn #slotify-countdown-time {
    background: rgba(255, 153, 0, 0.14);
    border-color: rgba(255, 153, 0, 0.25);
}

.slotify-countdown.is-danger {
    background: #fff1f2;
    border-color: rgba(220, 38, 38, 0.3);
}

.slotify-countdown.is-danger #slotify-countdown-time {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Pulse when danger */
.slotify-countdown.is-danger {
    animation: slotifyPulse 1.15s ease-in-out infinite;
}

@keyframes slotifyPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 10px 26px rgba(220, 38, 38, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }
}

/* ============================
   Mobile tweaks
   ============================ */

@media (max-width: 520px) {
    .slotify-countdown {
        gap: 8px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .slotify-countdown__hint {
        display: none;
    }
}

.slotify-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #ddd;
}

.slotify-tab-link {
    padding: 8px 14px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: #f7f7f7;
    font-size: 14px;
}

.slotify-tab-link.active {
    background: #fff;
    font-weight: 600;
    border-bottom: 1px solid #fff;
}

.slotify-tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
}

.slotify-tab-content.active {
    display: block;
}

.slotify-single-participant {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
}

/* ===== Slotify Tabs (Checkout) ===== */

.slotify-tabs {
    margin: 14px 0 18px;
    font-size: 14px; /* base più piccolo */
    line-height: 1.35;
}

/* NAV */
.slotify-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slotify-tab-link {
    cursor: pointer;
    user-select: none;
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    color: #222;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.12s ease, border-color 0.12s ease,
    transform 0.12s ease;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slotify-tab-link:hover {
    background: #f1f1f1;
    border-color: #d8d8d8;
    transform: translateY(-1px);
}

.slotify-tab-link.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* Headings inside tab */
.slotify-tab-content p strong {
    font-size: 13px;
}

.woocommerce-checkout .woocommerce {
    max-width: 100% !important;
}

.slotify-tab-content h4,
.slotify-tab-content h5 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

/* Make WooCommerce fields look compact inside slotify tabs */
.slotify-tab-content .form-row {
    margin: 10px 0;
}

.slotify-tab-content .form-row label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

.slotify-tab-content .woocommerce-input-wrapper input[type="text"],
.slotify-tab-content .woocommerce-input-wrapper input[type="email"] {
    width: 100%;
    height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.slotify-tab-content .woocommerce-input-wrapper input[type="text"]:focus,
.slotify-tab-content .woocommerce-input-wrapper input[type="email"]:focus {
    outline: none;
    border-color: #bbb;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Optional: grid for group fields (nome/cognome affiancati) */
@media (min-width: 680px) {
    .slotify-tab-content .slotify-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* Optional: if Woo adds huge error styles, keep them tidy */
.slotify-tab-content .woocommerce-invalid .input-text {
    border-color: #d63638;
}

.slotify-tab-content .required {
    font-weight: 700;
}

.woocommerce-page label,
.woocommerce-page form .form-row label {
    margin-bottom: inherit !important;
    font-size: 18px;
    line-height: 18px;
}

/* ===== WooCommerce variation layout (cart / checkout) ===== */

.woocommerce td.product-name {
    vertical-align: top;
}

/* Ridimensiona la quantità */
.woocommerce td.product-name .product-quantity {
    font-size: 14px;
    font-weight: 600;
    margin-left: 6px;
}

/* Box variation */
.woocommerce td.product-name dl.variation {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 90px 1fr;
    row-gap: 4px;
    column-gap: 8px;
}

/* Label (dt) */
.woocommerce td.product-name dl.variation dt {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* Value (dd) */
.woocommerce td.product-name dl.variation dd {
    margin: 0;
    font-size: 13px;
    color: #111;
}

/* Woo mette <p> dentro dd → reset */
.woocommerce td.product-name dl.variation dd p {
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .woocommerce td.product-name dl.variation {
        grid-template-columns: 1fr;
    }

    .woocommerce td.product-name dl.variation dt {
        margin-top: 6px;
        font-weight: 700;
    }
}

.slotify-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: flex-start;
}

.slotify-checkout-left {
    background: #fff;
}

.slotify-checkout-right {
    position: sticky;
    top: 40px;
    background: #fafafa;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.slotify-checkout-grid .continue-checkout,.slotify-checkout-grid .woocommerce-additional-fields {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .slotify-checkout-grid {
        grid-template-columns: 1fr;
    }

    .slotify-checkout-right {
        position: relative;
        top: auto;
    }
}

body.woocommerce-checkout .woocommerce form.checkout #order_review {
    display: inherit !important;
}

.woocommerce-table {
    width: 100%;
}

/* CSS minimale “nice” (se vuoi spostalo in un file CSS del plugin) */
.slotify-thankyou-wrap {
    max-width: 980px;
    margin: 0 auto;
}
.slotify-hero {
    padding: 18px 18px;
    border-radius: 14px;
    margin: 0 0 18px 0;
    border: 1.8px dashed black;
}
.slotify-hero.is-success {
    background: rgba(0, 128, 0, 0.06);
    border-color: green;
}
.slotify-hero.is-pending {
    background: rgba(255, 170, 0, 0.08);
    border-color: #595911;
}
.slotify-hero.is-failed {
    background: rgba(255, 0, 0, 0.06);
    border-color: red;
}
.slotify-hero h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
}
.slotify-hero p {
    margin: 0;
    opacity: 0.9;
}
.slotify-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 820px) {
    .slotify-grid {
        grid-template-columns: 1fr;
    }
}
.slotify-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 16px;
}
.slotify-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.slotify-meta-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.slotify-meta-table tr + tr td,
.slotify-meta-table tr + tr th {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.slotify-meta-table th {
    padding: 10px 10px 10px 0;
    text-align: left;
    opacity: 0.75;
    font-weight: 600;
    width: 42%;
}
.slotify-meta-table td {
    padding: 10px 0;
    text-align: left;
}
.slotify-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.slotify-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.slotify-ticket-box {
    border: 1px dashed rgba(0, 0, 0, 0.18);
    border-radius: 14px;
    padding: 16px;
    margin: 0 0 18px 0;
}
.slotify-ticket-links {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.slotify-ticket-links li {
    margin: 0;
    padding: 0;
}
.slotify-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 18px 0;
}

.slotify-badge{
    display:inline-block;
    padding:2px 8px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    line-height:1.4;
}
.slotify-badge--ok{ background:#e6f7ec; color:#1e7e34; }
.slotify-badge--danger{ background:#fde8e8; color:#b32d2e; }
.slotify-badge--warn{ background:#fff3cd; color:#856404; }
.slotify-badge--neutral{ background:#f1f1f1; color:#555; }

/* mobile: rendi scrollabile */
.slotify-tickets-table-wrap{ overflow-x:auto; }
.slotify-tickets-table th{ white-space:nowrap; }

.slotify-tickets-table-wrap {
    margin-top: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.slotify-tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.slotify-tickets-table th {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 2px solid #e5e5e5;
    font-weight: 600;
    white-space: nowrap;
}

.slotify-tickets-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

.slotify-uuid {
    color: #777;
    font-size: 12px;
}

.slotify-qty-hint {
    color: #666;
    font-size: 12px;
}

/* Badge */
.slotify-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.slotify-badge--ok {
    background: #e6f7ec;
    color: #1e7e34;
}

.slotify-badge--danger {
    background: #fde8e8;
    color: #b32d2e;
}

.slotify-badge--warn {
    background: #fff3cd;
    color: #856404;
}

.slotify-badge--neutral {
    background: #f1f1f1;
    color: #555;
}

/* PDF button */
.slotify-btn {
    font-size: 13px;
    padding: 6px 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .slotify-tickets-table {
        font-size: 13px;
    }
}