.smeb-booking-box {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.smeb-booking-box h3 {
    margin-top: 0;
}

.smeb-booking-box form.cart {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.smeb-booking-box input[type="number"] {
    width: 90px;
    padding: 8px;
}

.smeb-book-button {
    cursor: pointer;
}

.smeb-sold-out {
    color: #b00020;
    font-weight: 600;
}

.smeb-upcoming-wrap {
    margin: 30px 0;
}

.smeb-upcoming-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.smeb-upcoming-toolbar h2 {
    margin: 0;
}

.smeb-view-toggle {
    display: inline-flex;
    gap: 8px;
}

.smeb-view-toggle button {
    border: 1px solid #d0d0d0;
    background: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.smeb-view-toggle button.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.smeb-upcoming-events.smeb-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.smeb-upcoming-events.smeb-view-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.smeb-event-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.smeb-event-card-inner {
    padding: 18px;
}

.smeb-event-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.smeb-view-list .smeb-event-card {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.smeb-view-list .smeb-event-image img {
    height: 100%;
    min-height: 180px;
}

.smeb-event-card h3 {
    margin: 0 0 10px;
}

.smeb-event-card h3 a {
    text-decoration: none;
}

.smeb-event-meta {
    margin: 0 0 12px;
    color: #555;
    line-height: 1.6;
}

.smeb-event-excerpt {
    margin-bottom: 16px;
}

.smeb-event-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.smeb-event-actions .button {
    display: inline-block;
    text-decoration: none;
}

.smeb-no-events {
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

@media (max-width: 700px) {
    .smeb-view-list .smeb-event-card {
        display: block;
    }
}

/* WooCommerce Order Received ticket display */
.smeb-thankyou-tickets {
    margin: 32px 0;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
}

.smeb-thankyou-tickets h2 {
    margin-top: 0;
}

.smeb-thankyou-ticket-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
}

.smeb-thankyou-ticket-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.smeb-thankyou-ticket-header h3 {
    margin: 0;
}

.smeb-thankyou-ticket-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #eef7ee;
    color: #256029;
}

.smeb-thankyou-ticket-code {
    margin: 12px 0 16px;
    padding: 14px;
    border: 2px dashed #222;
    border-radius: 10px;
    background: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
}

.smeb-thankyou-ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
}

.smeb-thankyou-ticket-table th,
.smeb-thankyou-ticket-table td {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.smeb-thankyou-ticket-table th {
    width: 130px;
}

.smeb-thankyou-ticket-actions {
    margin-bottom: 0;
}

@media print {
    .woocommerce-order-overview,
    .woocommerce-order-details,
    .woocommerce-customer-details,
    .smeb-ticket-print-button {
        display: none !important;
    }

    .smeb-thankyou-tickets {
        border: none;
        padding: 0;
    }
}

.smeb-thankyou-ticket-qr {
    margin: 14px 0;
    text-align: center;
}

.smeb-thankyou-ticket-qr img {
    display: inline-block;
    max-width: 180px;
    height: auto;
    background: #fff;
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.smeb-ticket-pdf-button {
    margin-left: 6px;
}


.smeb-single-event-featured-image {
    margin: 0 0 24px;
}

.smeb-single-event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.smeb-event-actions .smeb-view-event-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid #111;
}

.smeb-event-actions .smeb-view-event-button:hover,
.smeb-event-actions .smeb-view-event-button:focus {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* Mobile check-in dashboard */
.smeb-checkin-dashboard {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 12px;
}

.smeb-checkin-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.smeb-checkin-header h2 {
    margin: 0 0 6px;
}

.smeb-checkin-header p {
    margin: 0;
    color: #666;
}

.smeb-checkin-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    font-weight: 700;
}

.smeb-checkin-success {
    background: #effaf0;
    border-color: #b7e2bd;
    color: #1f6628;
}

.smeb-checkin-filters {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
}

.smeb-checkin-filters label span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #333;
}

.smeb-checkin-filters select,
.smeb-checkin-filters input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
}

.smeb-checkin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.smeb-checkin-stats div {
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fafafa;
    text-align: center;
}

.smeb-checkin-stats strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.smeb-checkin-stats span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
}

.smeb-checkin-list {
    display: grid;
    gap: 12px;
}

.smeb-checkin-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.smeb-checkin-card.is-checked-in {
    border-color: #b7e2bd;
    background: #fbfffb;
}

.smeb-checkin-card h3 {
    margin: 8px 0 6px;
    font-size: 20px;
}

.smeb-checkin-status-pill {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #fff3cd;
    color: #7a5600;
}

.smeb-checkin-card.is-checked-in .smeb-checkin-status-pill {
    background: #dff7e3;
    color: #1f6628;
}

.smeb-checkin-ticket-code {
    display: inline-block;
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 2px dashed #222;
    border-radius: 10px;
    background: #fafafa;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.smeb-checkin-meta {
    margin: 0;
    color: #555;
    line-height: 1.65;
}

.smeb-checkin-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
}

.smeb-checkin-action-form {
    margin: 0;
}

.smeb-checkin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #222;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
}

.smeb-checkin-btn-primary,
.smeb-checkin-btn-dark {
    background: #111;
    color: #fff;
}

.smeb-checkin-btn-primary:hover,
.smeb-checkin-btn-dark:hover,
.smeb-checkin-btn-primary:focus,
.smeb-checkin-btn-dark:focus {
    background: #333;
    color: #fff;
}

.smeb-checkin-btn-secondary {
    background: #fff;
    color: #111;
}

.smeb-checkin-empty {
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fafafa;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 720px) {
    .smeb-checkin-dashboard {
        margin: 16px auto;
        padding: 0 10px;
    }

    .smeb-checkin-filters,
    .smeb-checkin-card {
        grid-template-columns: 1fr;
    }

    .smeb-checkin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .smeb-checkin-card-actions {
        min-width: 0;
    }
}

/* Refined professional mobile check-in dashboard - v0.4.6 */
.smeb-checkin-dashboard {
    --smeb-ci-bg: #f5f7fb;
    --smeb-ci-panel: #ffffff;
    --smeb-ci-ink: #111827;
    --smeb-ci-muted: #667085;
    --smeb-ci-border: #e4e7ec;
    --smeb-ci-soft: #f9fafb;
    --smeb-ci-primary: #111827;
    --smeb-ci-primary-hover: #344054;
    --smeb-ci-success-bg: #ecfdf3;
    --smeb-ci-success-border: #abefc6;
    --smeb-ci-success-text: #067647;
    --smeb-ci-warning-bg: #fffaeb;
    --smeb-ci-warning-text: #b54708;
    max-width: 1080px;
    margin: 28px auto;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, var(--smeb-ci-bg) 100%);
    color: var(--smeb-ci-ink);
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.10);
    border: 1px solid rgba(228, 231, 236, 0.85);
}

.smeb-checkin-header {
    position: relative;
    overflow: hidden;
    margin: 0 0 18px;
    padding: 24px;
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 35%), linear-gradient(135deg, #111827 0%, #344054 100%);
    color: #fff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.24);
}

.smeb-checkin-header::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.smeb-checkin-header h2 {
    position: relative;
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.smeb-checkin-header p {
    position: relative;
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    line-height: 1.55;
}

.smeb-checkin-notice {
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 22px rgba(16,24,40,0.04);
}

.smeb-checkin-filters {
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) auto;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--smeb-ci-border);
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 30px rgba(16,24,40,0.06);
}

.smeb-checkin-filters label span {
    margin-bottom: 8px;
    color: #344054;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.smeb-checkin-filters select,
.smeb-checkin-filters input[type="search"] {
    min-height: 50px;
    border-radius: 14px;
    border-color: #d0d5dd;
    background: #fff;
    color: var(--smeb-ci-ink);
    box-shadow: 0 1px 2px rgba(16,24,40,0.05);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.smeb-checkin-filters select:focus,
.smeb-checkin-filters input[type="search"]:focus {
    outline: none;
    border-color: #98a2b3;
    box-shadow: 0 0 0 4px rgba(152,162,179,0.18);
}

.smeb-checkin-stats {
    gap: 14px;
    margin-bottom: 18px;
}

.smeb-checkin-stats div {
    position: relative;
    overflow: hidden;
    padding: 18px 14px;
    border-radius: 20px;
    background: var(--smeb-ci-panel);
    border-color: var(--smeb-ci-border);
    box-shadow: 0 10px 28px rgba(16,24,40,0.055);
}

.smeb-checkin-stats div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: #111827;
    opacity: 0.82;
}

.smeb-checkin-stats strong {
    font-size: clamp(26px, 5vw, 40px);
    color: #101828;
    letter-spacing: -0.04em;
}

.smeb-checkin-stats span {
    color: var(--smeb-ci-muted);
    letter-spacing: 0.045em;
}

.smeb-checkin-list {
    gap: 14px;
}

.smeb-checkin-card {
    grid-template-columns: minmax(0, 1fr) 170px;
    padding: 18px;
    border-radius: 24px;
    border-color: var(--smeb-ci-border);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 16px 40px rgba(16,24,40,0.07);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.smeb-checkin-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 48px rgba(16,24,40,0.10);
}

.smeb-checkin-card.is-checked-in {
    border-color: var(--smeb-ci-success-border);
    background: linear-gradient(180deg, #ffffff 0%, #f6fef9 100%);
}

.smeb-checkin-card h3 {
    margin: 10px 0 8px;
    color: #101828;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.smeb-checkin-status-pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--smeb-ci-warning-bg);
    color: var(--smeb-ci-warning-text);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.smeb-checkin-card.is-checked-in .smeb-checkin-status-pill {
    background: var(--smeb-ci-success-bg);
    color: var(--smeb-ci-success-text);
}

.smeb-checkin-ticket-code {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px dashed #98a2b3;
    border-radius: 14px;
    background: #f9fafb;
    color: #101828;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.smeb-checkin-meta {
    color: #475467;
    font-size: 14px;
    line-height: 1.75;
}

.smeb-checkin-meta strong {
    color: #101828;
}

.smeb-checkin-card-actions {
    gap: 10px;
    min-width: 170px;
}

.smeb-checkin-btn {
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 14px;
    border-width: 1px;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(16,24,40,0.08);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.smeb-checkin-btn:hover,
.smeb-checkin-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(16,24,40,0.14);
}

.smeb-checkin-btn-primary,
.smeb-checkin-btn-dark {
    background: var(--smeb-ci-primary);
    border-color: var(--smeb-ci-primary);
    color: #fff;
}

.smeb-checkin-btn-primary:hover,
.smeb-checkin-btn-dark:hover,
.smeb-checkin-btn-primary:focus,
.smeb-checkin-btn-dark:focus {
    background: var(--smeb-ci-primary-hover);
    border-color: var(--smeb-ci-primary-hover);
}

.smeb-checkin-btn-secondary {
    background: #fff;
    color: #101828;
    border-color: #d0d5dd;
}

.smeb-checkin-empty {
    padding: 28px 18px;
    border-radius: 22px;
    background: #fff;
    border-color: var(--smeb-ci-border);
    box-shadow: 0 12px 28px rgba(16,24,40,0.05);
    color: #475467;
}

@media (max-width: 720px) {
    .smeb-checkin-dashboard {
        margin: 10px auto;
        padding: 12px;
        border-radius: 22px;
    }

    .smeb-checkin-header {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .smeb-checkin-filters,
    .smeb-checkin-card {
        grid-template-columns: 1fr;
    }

    .smeb-checkin-filters {
        padding: 14px;
        border-radius: 18px;
    }

    .smeb-checkin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smeb-checkin-stats div {
        padding: 16px 10px;
    }

    .smeb-checkin-card {
        padding: 16px;
        border-radius: 20px;
    }

    .smeb-checkin-card-actions {
        min-width: 0;
    }

    .smeb-checkin-btn {
        width: 100%;
        min-height: 52px;
    }
}

@media (max-width: 420px) {
    .smeb-checkin-stats {
        gap: 10px;
    }

    .smeb-checkin-stats strong {
        font-size: 28px;
    }

    .smeb-checkin-stats span {
        font-size: 10px;
    }
}

/* Multi-tenant customer dashboard */
.smeb-tenant-card,
.smeb-customer-dashboard .smeb-tenant-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 24px;
    margin: 22px 0;
}

.smeb-dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: stretch;
    color: #fff;
    background: linear-gradient(135deg, #111827, #334155);
    border-radius: 24px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

.smeb-dashboard-hero h2 {
    color: #fff;
    margin: 6px 0 8px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
}

.smeb-dashboard-hero p {
    margin: 0;
    color: rgba(255,255,255,0.75);
}

.smeb-eyebrow {
    display: inline-flex;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
}

.smeb-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 12px;
    min-width: 240px;
}

.smeb-dashboard-stats div {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 18px;
}

.smeb-dashboard-stats strong {
    display: block;
    font-size: 24px;
    color: #fff;
}

.smeb-dashboard-stats span {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.smeb-tenant-form label {
    display: block;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.smeb-tenant-form input[type="text"],
.smeb-tenant-form input[type="email"],
.smeb-tenant-form input[type="password"],
.smeb-tenant-form input[type="date"],
.smeb-tenant-form input[type="number"],
.smeb-tenant-form textarea,
.smeb-tenant-form select {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    background: #f9fafb;
}

.smeb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.smeb-checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 600 !important;
}

.smeb-primary-btn,
.smeb-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.smeb-small-btn {
    padding: 9px 13px;
    font-size: 13px;
}

.smeb-danger-btn {
    background: #b91c1c;
}

.smeb-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.smeb-table-actions form {
    margin: 0;
}

.smeb-responsive-table {
    overflow-x: auto;
}

.smeb-responsive-table table {
    width: 100%;
    border-collapse: collapse;
}

.smeb-responsive-table th,
.smeb-responsive-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.smeb-responsive-table th {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.smeb-alert {
    border-radius: 14px;
    padding: 13px 15px;
    margin: 16px 0;
    font-weight: 700;
}

.smeb-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.smeb-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.smeb-muted {
    color: #6b7280;
}

@media (max-width: 760px) {
    .smeb-dashboard-hero,
    .smeb-form-grid {
        display: block;
    }

    .smeb-dashboard-stats {
        margin-top: 20px;
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .smeb-tenant-card,
    .smeb-customer-dashboard .smeb-tenant-card {
        padding: 18px;
        border-radius: 18px;
    }
}

/* v0.5.1 customer dashboard image/login additions */
.smeb-image-upload-box {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    margin: 12px 0 18px;
}

.smeb-current-image {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.smeb-current-image img,
.smeb-event-thumb-cell img {
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.smeb-event-thumb-cell img {
    width: 72px;
    height: 54px;
}

.smeb-login-card {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Customer portal navigation */
.smeb-customer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 18px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.smeb-customer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #334155;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.smeb-customer-nav a:hover,
.smeb-customer-nav a:focus {
    color: #0f172a;
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.08);
}

.smeb-customer-nav a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

@media (max-width: 640px) {
    .smeb-customer-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .smeb-customer-nav a {
        width: 100%;
    }
}

/* v5.5 customer revenue and bookings analytics dashboard */
.smeb-analytics-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: stretch;
    margin: 0 0 22px;
    padding: 30px;
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 35%), linear-gradient(135deg, #0f172a, #1e293b 58%, #334155);
    color: #ffffff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.smeb-analytics-hero h2 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    color: #ffffff;
}

.smeb-analytics-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
}

.smeb-analytics-hero .smeb-eyebrow {
    color: #bfdbfe;
}

.smeb-analytics-hero-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.smeb-analytics-hero-metric span,
.smeb-analytics-hero-metric small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.smeb-analytics-hero-metric strong {
    display: block;
    margin: 8px 0;
    font-size: 34px;
    line-height: 1;
    color: #ffffff;
}

.smeb-analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}

.smeb-analytics-card {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.smeb-analytics-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #000000, #14b8a6);
}

.smeb-analytics-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.smeb-analytics-card strong {
    display: block;
    margin: 8px 0 4px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.05;
}

.smeb-analytics-card small {
    color: #64748b;
    font-weight: 650;
}

.smeb-analytics-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 20px;
}

.smeb-analytics-panel {
    margin: 0;
}

.smeb-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.smeb-panel-header h3 {
    margin: 0;
}

.smeb-panel-header span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #000000;
    font-size: 12px;
    font-weight: 900;
}

.smeb-progress {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 16px;
}

.smeb-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #000000, #14b8a6);
}

.smeb-progress-checkin span {
    background: linear-gradient(90deg, #16a34a, #84cc16);
}

.smeb-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.smeb-mini-stats div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.smeb-mini-stats strong {
    display: block;
    color: #0f172a;
    font-size: 22px;
}

.smeb-mini-stats span,
.smeb-analytics-list-row span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.smeb-analytics-list {
    display: grid;
    gap: 10px;
}

.smeb-analytics-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.smeb-analytics-list-row strong {
    color: #0f172a;
}

.smeb-analytics-list-row div strong,
.smeb-analytics-list-row div span {
    display: block;
}

.smeb-dashboard-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 14px;
}

.smeb-dashboard-section-title h3 {
    margin: 4px 0 0;
    font-size: 26px;
}

.smeb-dashboard-section-title p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 900px) {
    .smeb-analytics-hero,
    .smeb-analytics-panels {
        grid-template-columns: 1fr;
    }

    .smeb-analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .smeb-analytics-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .smeb-analytics-grid,
    .smeb-mini-stats {
        grid-template-columns: 1fr;
    }

    .smeb-dashboard-section-title,
    .smeb-panel-header,
    .smeb-analytics-list-row {
        display: block;
    }

    .smeb-panel-header span,
    .smeb-analytics-list-row > strong {
        margin-top: 10px;
    }
}

/* v5.6 customer analytics refinements */
.smeb-event-stats-card {
    margin-top: 24px;
}

.smeb-event-stats-table table {
    min-width: 860px;
}

.smeb-table-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.10);
    margin: 8px 0 4px;
}

.smeb-table-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #000000, #14b8a6);
}

.smeb-event-stats-table small {
    color: #64748b;
    font-size: 12px;
}

/* live QR scanner */
.smeb-checkin-btn-scan {
    background: linear-gradient(135deg, #16a34a, #0f766e);
    color: #fff !important;
    border: 0;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.smeb-scanner-panel {
    margin: 18px 0 24px;
    border-radius: 24px;
    padding: 18px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
}

.smeb-scanner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.smeb-scanner-head strong,
.smeb-scanner-head span {
    display: block;
}

.smeb-scanner-head strong {
    font-size: 18px;
}

.smeb-scanner-head span {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    margin-top: 2px;
}

.smeb-scanner-video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #020617;
    aspect-ratio: 4 / 3;
}

.smeb-scanner-video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.smeb-scanner-frame {
    position: absolute;
    inset: 18%;
    border: 3px solid rgba(34, 197, 94, 0.95);
    border-radius: 22px;
    box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.30), 0 0 30px rgba(34, 197, 94, 0.35);
    pointer-events: none;
}

.smeb-scanner-result {
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    font-weight: 800;
}

.smeb-scanner-result.is-success {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.smeb-scanner-result.is-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.smeb-scanner-result.is-error {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

@media (max-width: 640px) {
    .smeb-scanner-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .smeb-scanner-head .smeb-checkin-btn {
        width: 100%;
    }
}

/* UX Stabilisation & Polish */
:root {
    --smeb-bg: #f6f7fb;
    --smeb-surface: #ffffff;
    --smeb-surface-soft: #f8fafc;
    --smeb-border: #e5e7eb;
    --smeb-border-strong: #d1d5db;
    --smeb-text: #111827;
    --smeb-muted: #6b7280;
    --smeb-primary: #111827;
    --smeb-primary-soft: #eef2ff;
    --smeb-success: #047857;
    --smeb-success-soft: #ecfdf5;
    --smeb-danger: #b91c1c;
    --smeb-danger-soft: #fef2f2;
    --smeb-warning: #92400e;
    --smeb-warning-soft: #fffbeb;
    --smeb-radius: 18px;
    --smeb-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --smeb-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.smeb-customer-dashboard,
.smeb-checkin-dashboard,
.smeb-upcoming-wrap,
.smeb-ticket-page,
.smeb-register-card,
.smeb-login-card {
    color: var(--smeb-text);
    font-family: inherit;
}

.smeb-customer-dashboard,
.smeb-checkin-dashboard {
    max-width: 1180px;
    margin: 24px auto;
}

.smeb-customer-nav {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 10px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--smeb-shadow-soft);
    backdrop-filter: blur(12px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.smeb-customer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--smeb-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.smeb-customer-nav a:hover,
.smeb-customer-nav a.is-active {
    background: var(--smeb-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.smeb-tenant-card,
.smeb-checkin-card,
.smeb-analytics-card,
.smeb-analytics-panel,
.smeb-event-card,
.smeb-booking-box,
.smeb-thankyou-ticket-card,
.smeb-register-card,
.smeb-login-card {
    border: 1px solid var(--smeb-border) !important;
    border-radius: var(--smeb-radius) !important;
    background: var(--smeb-surface) !important;
    box-shadow: var(--smeb-shadow-soft);
}

.smeb-tenant-card,
.smeb-register-card,
.smeb-login-card {
    padding: 24px;
    margin-bottom: 22px;
}

.smeb-dashboard-section-title,
.smeb-panel-header,
.smeb-checkin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.smeb-dashboard-section-title h2,
.smeb-panel-header h2,
.smeb-checkin-header h2,
.smeb-tenant-card h2,
.smeb-tenant-card h3 {
    margin-top: 0;
    color: var(--smeb-text);
    letter-spacing: -0.02em;
}

.smeb-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--smeb-primary-soft);
    color: #000000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.smeb-muted,
.smeb-help {
    color: var(--smeb-muted);
}

.smeb-analytics-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(160px, 0.55fr));
    gap: 16px;
    margin-bottom: 18px;
}

.smeb-analytics-hero-metric,
.smeb-analytics-card {
    padding: 22px;
    border-radius: var(--smeb-radius);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid var(--smeb-border);
    box-shadow: var(--smeb-shadow-soft);
}

.smeb-analytics-hero-metric strong,
.smeb-analytics-card strong,
.smeb-analytics-card .smeb-card-revenue {
    display: block;
    margin-top: 8px;
    color: var(--smeb-text);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.smeb-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.smeb-analytics-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
}

.smeb-analytics-panel {
    padding: 22px;
}

.smeb-analytics-list-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--smeb-border);
}

.smeb-analytics-list-row:last-child {
    border-bottom: 0;
}

.smeb-progress,
.smeb-table-progress {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.smeb-progress > span,
.smeb-table-progress > span,
.smeb-progress-checkin > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111827, #000000);
}

.smeb-tenant-form label,
.smeb-register-card label,
.smeb-login-card label {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
    color: var(--smeb-text);
    font-size: 13px;
    font-weight: 800;
}

.smeb-tenant-form input[type="text"],
.smeb-tenant-form input[type="email"],
.smeb-tenant-form input[type="password"],
.smeb-tenant-form input[type="date"],
.smeb-tenant-form input[type="number"],
.smeb-tenant-form textarea,
.smeb-tenant-form select,
.smeb-register-card input,
.smeb-login-card input,
.smeb-checkin-filters input,
.smeb-checkin-filters select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--smeb-border-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--smeb-text);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.smeb-tenant-form textarea {
    min-height: 110px;
    resize: vertical;
}

.smeb-tenant-form input:focus,
.smeb-tenant-form textarea:focus,
.smeb-tenant-form select:focus,
.smeb-register-card input:focus,
.smeb-login-card input:focus,
.smeb-checkin-filters input:focus,
.smeb-checkin-filters select:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.smeb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.smeb-image-upload-box {
    padding: 16px;
    border: 1px dashed var(--smeb-border-strong);
    border-radius: 16px;
    background: var(--smeb-surface-soft);
}

.smeb-current-image img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 14px;
    box-shadow: var(--smeb-shadow-soft);
}

.smeb-file-selected-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--smeb-success-soft);
    color: var(--smeb-success);
    font-size: 13px;
    font-weight: 700;
}

.smeb-primary-btn,
.smeb-small-btn,
.smeb-ticket-button,
.smeb-view-event-button,
.smeb-checkin-btn,
.smeb-book-button,
.smeb-event-actions .button,
.smeb-thankyou-ticket-actions .button,
.smeb-ticket-pdf-button,
.smeb-ticket-print-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: var(--smeb-primary) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.smeb-primary-btn:hover,
.smeb-small-btn:hover,
.smeb-ticket-button:hover,
.smeb-view-event-button:hover,
.smeb-checkin-btn:hover,
.smeb-book-button:hover,
.smeb-event-actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.22);
}

.smeb-checkin-btn-secondary,
.smeb-ticket-print-button {
    background: #fff !important;
    color: var(--smeb-text) !important;
    border-color: var(--smeb-border-strong) !important;
    box-shadow: none;
}

.smeb-checkin-btn-scan {
    background: linear-gradient(135deg, #111827, #000000) !important;
}

.smeb-danger-btn {
    background: var(--smeb-danger) !important;
    color: #fff !important;
}

.smeb-is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.smeb-alert,
.smeb-checkin-notice,
.smeb-scanner-result {
    margin: 14px 0;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid var(--smeb-border);
    font-weight: 700;
}

.smeb-alert-success,
.smeb-checkin-success {
    background: var(--smeb-success-soft);
    border-color: rgba(4, 120, 87, 0.22);
    color: var(--smeb-success);
}

.smeb-alert-error {
    background: var(--smeb-danger-soft);
    border-color: rgba(185, 28, 28, 0.22);
    color: var(--smeb-danger);
}

.smeb-responsive-table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--smeb-border);
    border-radius: 16px;
    background: #fff;
}

.smeb-responsive-table table,
.smeb-event-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.smeb-responsive-table th,
.smeb-responsive-table td,
.smeb-event-stats-table th,
.smeb-event-stats-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--smeb-border);
    text-align: left;
    vertical-align: middle;
}

.smeb-responsive-table th,
.smeb-event-stats-table th {
    background: var(--smeb-surface-soft);
    color: var(--smeb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.smeb-responsive-table tr:last-child td,
.smeb-event-stats-table tr:last-child td {
    border-bottom: 0;
}

.smeb-event-thumb-cell img {
    width: 74px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
}

.smeb-checkin-dashboard {
    padding: 4px 0;
}

.smeb-checkin-header {
    padding: 24px;
    border-radius: 22px;
    background: radial-gradient(circle at top left, #eef2ff, #ffffff 46%, #f8fafc);
    border: 1px solid var(--smeb-border);
    box-shadow: var(--smeb-shadow-soft);
}

.smeb-checkin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.smeb-mini-stats,
.smeb-checkin-stats > div {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--smeb-border);
    box-shadow: var(--smeb-shadow-soft);
}

.smeb-checkin-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 18px 0;
    padding: 16px;
    border-radius: 18px;
    background: var(--smeb-surface-soft);
    border: 1px solid var(--smeb-border);
}

.smeb-checkin-list {
    display: grid;
    gap: 12px;
}

.smeb-checkin-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px;
    align-items: center;
}

.smeb-checkin-ticket-code {
    display: inline-flex;
    margin-top: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--smeb-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
}

.smeb-checkin-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--smeb-warning-soft);
    color: var(--smeb-warning);
    font-size: 12px;
    font-weight: 900;
}

.smeb-checkin-status-pill.is-checked-in,
.smeb-checkin-card.is-checked-in .smeb-checkin-status-pill {
    background: var(--smeb-success-soft);
    color: var(--smeb-success);
}

.smeb-scanner-panel {
    margin: 18px 0;
    padding: 18px;
    border-radius: 22px;
    background: #020617;
    color: #fff;
    box-shadow: var(--smeb-shadow);
}

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

.smeb-scanner-video-wrap,
.smeb-scanner-frame {
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

.smeb-upcoming-toolbar {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--smeb-border);
    box-shadow: var(--smeb-shadow-soft);
}

.smeb-event-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.smeb-event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--smeb-shadow);
}

.smeb-event-card h3 a {
    color: var(--smeb-text);
}

.smeb-event-meta {
    color: var(--smeb-muted);
}

.smeb-single-event-featured-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--smeb-shadow-soft);
}

@media (max-width: 900px) {
    .smeb-analytics-hero,
    .smeb-analytics-panels,
    .smeb-checkin-filters {
        grid-template-columns: 1fr;
    }

    .smeb-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .smeb-customer-dashboard,
    .smeb-checkin-dashboard {
        margin: 12px auto;
    }

    .smeb-customer-nav {
        position: relative;
        top: auto;
        border-radius: 18px;
        justify-content: flex-start;
    }

    .smeb-customer-nav a {
        min-height: 44px;
        padding: 11px 14px;
    }

    .smeb-tenant-card,
    .smeb-register-card,
    .smeb-login-card,
    .smeb-checkin-header,
    .smeb-analytics-panel {
        padding: 18px;
        border-radius: 18px !important;
    }

    .smeb-checkin-card {
        grid-template-columns: 1fr;
    }

    .smeb-checkin-card-actions,
    .smeb-event-actions,
    .smeb-table-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .smeb-primary-btn,
    .smeb-small-btn,
    .smeb-ticket-button,
    .smeb-view-event-button,
    .smeb-checkin-btn,
    .smeb-book-button,
    .smeb-event-actions .button {
        width: 100%;
        min-height: 46px;
    }

    .smeb-responsive-table {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .smeb-responsive-table table,
    .smeb-responsive-table thead,
    .smeb-responsive-table tbody,
    .smeb-responsive-table th,
    .smeb-responsive-table td,
    .smeb-responsive-table tr {
        display: block;
    }

    .smeb-responsive-table thead {
        display: none;
    }

    .smeb-responsive-table tr {
        margin-bottom: 12px;
        padding: 14px;
        border: 1px solid var(--smeb-border);
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--smeb-shadow-soft);
    }

    .smeb-responsive-table td {
        display: grid;
        grid-template-columns: 42% 1fr;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px solid var(--smeb-border);
    }

    .smeb-responsive-table td:last-child {
        border-bottom: 0;
    }

    .smeb-responsive-table td::before {
        content: attr(data-label);
        color: var(--smeb-muted);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }
}

/* fix: analytics hero metric text was inheriting white text on a white card */
.smeb-analytics-hero .smeb-analytics-hero-metric span {
    color: #64748b !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.smeb-analytics-hero .smeb-analytics-hero-metric strong {
    color: #0f172a !important;
}

.smeb-analytics-hero .smeb-analytics-hero-metric small {
    color: #16a34a !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

/* Modern Analytics Dashboard Redesign */
.smeb-customer-dashboard {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.smeb-customer-dashboard .smeb-customer-nav {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    gap: 14px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 999px;
    margin-bottom: 28px;
    overflow-x: auto;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.smeb-customer-dashboard .smeb-customer-nav a {
    text-decoration: none !important;
    color: #64748b;
    font-weight: 700;
    padding: 14px 18px;
    border-radius: 999px;
    white-space: nowrap;
    transition: all .2s ease;
}

.smeb-customer-dashboard .smeb-customer-nav a.is-active,
.smeb-customer-dashboard .smeb-customer-nav a:hover,
.smeb-customer-dashboard .smeb-customer-nav a:focus {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.smeb-customer-dashboard .smeb-analytics-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg,#0f172a,#1e3a8a);
    border-radius: 34px;
    padding: 48px;
    color: #ffffff;
    margin-bottom: 32px;
    flex-wrap: wrap;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.smeb-customer-dashboard .smeb-analytics-hero > div:first-child {
    flex: 1 1 520px;
}

.smeb-customer-dashboard .smeb-analytics-hero h2 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    margin: 18px 0;
    color: #ffffff !important;
    letter-spacing: -0.05em;
}

.smeb-customer-dashboard .smeb-analytics-hero p {
    font-size: 20px;
    opacity: .92;
    max-width: 720px;
    color: #ffffff;
    margin: 0;
}

.smeb-customer-dashboard .smeb-analytics-hero .smeb-eyebrow {
    display: inline-flex;
    background: rgba(255,255,255,.15);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 0;
}

.smeb-customer-dashboard .smeb-analytics-hero-metric {
    background: #ffffff !important;
    color: #0f172a !important;
    border-radius: 28px !important;
    padding: 36px !important;
    min-width: 340px;
    max-width: 430px;
    flex: 0 1 390px;
    border: 0 !important;
    box-shadow: 0 25px 50px rgba(0,0,0,.18) !important;
}

.smeb-customer-dashboard .smeb-analytics-hero-metric span {
    color: #64748b !important;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.smeb-customer-dashboard .smeb-analytics-hero-metric strong {
    display: block;
    font-size: clamp(40px, 4.5vw, 58px);
    margin: 12px 0;
    line-height: 1;
    color: #0f172a !important;
    letter-spacing: -0.06em;
}

.smeb-customer-dashboard .smeb-analytics-hero-metric small {
    color: #16a34a !important;
    font-weight: 800;
    margin: 0;
    font-size: 14px;
}

.smeb-customer-dashboard .smeb-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 22px;
    margin: 0 0 28px;
}

.smeb-customer-dashboard .smeb-analytics-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 28px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.05) !important;
    position: relative;
    overflow: hidden;
}

.smeb-customer-dashboard .smeb-analytics-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #000000;
}

.smeb-customer-dashboard .smeb-analytics-card:nth-child(1)::before { background:#10b981; }
.smeb-customer-dashboard .smeb-analytics-card:nth-child(2)::before { background:#000000; }
.smeb-customer-dashboard .smeb-analytics-card:nth-child(3)::before { background:#000000; }
.smeb-customer-dashboard .smeb-analytics-card:nth-child(4)::before { background:#f97316; }
.smeb-customer-dashboard .smeb-analytics-card:nth-child(5)::before { background:#14b8a6; }
.smeb-customer-dashboard .smeb-analytics-card:nth-child(6)::before { background:#000000; }

.smeb-customer-dashboard .smeb-analytics-card span {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 16px;
}

.smeb-customer-dashboard .smeb-analytics-card strong {
    display: block;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1;
    color: #0f172a !important;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
}

.smeb-customer-dashboard .smeb-analytics-card small {
    display: block;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.smeb-customer-dashboard .smeb-analytics-panels {
    gap: 24px;
}

.smeb-customer-dashboard .smeb-analytics-panel,
.smeb-customer-dashboard .smeb-tenant-card {
    border-radius: 28px !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.05) !important;
}

@media (max-width: 768px) {
    .smeb-customer-dashboard {
        padding: 0 14px;
        margin: 24px auto;
    }

    .smeb-customer-dashboard .smeb-customer-nav {
        border-radius: 24px;
        padding: 10px;
    }

    .smeb-customer-dashboard .smeb-customer-nav a {
        min-height: 42px;
        padding: 12px 14px;
    }

    .smeb-customer-dashboard .smeb-analytics-hero {
        padding: 30px;
        border-radius: 28px;
    }

    .smeb-customer-dashboard .smeb-analytics-hero p {
        font-size: 17px;
    }

    .smeb-customer-dashboard .smeb-analytics-hero-metric {
        width: 100%;
        min-width: unset;
        max-width: none;
        padding: 28px !important;
    }
}


/* analytics amount sizing fix: keep normal KPI numbers at previous size, enlarge money only */
.smeb-customer-dashboard .smeb-analytics-card strong {
    font-size: clamp(36px, 4vw, 52px) !important;
}

.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong,
.smeb-customer-dashboard .smeb-analytics-hero-metric strong {
    font-size: clamp(52px, 6vw, 72px) !important;
    font-weight: 900 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.06em !important;
}

@media (max-width: 768px) {
    .smeb-customer-dashboard .smeb-analytics-card strong {
        font-size: 38px !important;
    }

    .smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong,
    .smeb-customer-dashboard .smeb-analytics-hero-metric strong {
        font-size: 52px !important;
    }
}

/* customer analytics monetary value fix
   Make only money values large and keep the currency symbol + amount on one line.
   WooCommerce wc_price() wraps values in spans, so target those inner spans too. */
.smeb-customer-dashboard .smeb-analytics-card strong {
    font-size: clamp(36px, 4vw, 52px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong,
.smeb-customer-dashboard .smeb-analytics-hero-metric strong {
    display: block !important;
    white-space: nowrap !important;
    font-size: clamp(64px, 7vw, 88px) !important;
    font-weight: 900 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em !important;
    color: #0f172a !important;
}

.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong .amount,
.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong .woocommerce-Price-amount,
.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong .woocommerce-Price-amount bdi,
.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong .woocommerce-Price-currencySymbol,
.smeb-customer-dashboard .smeb-analytics-hero-metric strong .amount,
.smeb-customer-dashboard .smeb-analytics-hero-metric strong .woocommerce-Price-amount,
.smeb-customer-dashboard .smeb-analytics-hero-metric strong .woocommerce-Price-amount bdi,
.smeb-customer-dashboard .smeb-analytics-hero-metric strong .woocommerce-Price-currencySymbol {
    display: inline !important;
    white-space: nowrap !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
}

.smeb-customer-dashboard .smeb-analytics-hero-metric {
    min-width: 420px !important;
}

@media (max-width: 768px) {
    .smeb-customer-dashboard .smeb-analytics-card strong {
        font-size: 38px !important;
    }

    .smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong,
    .smeb-customer-dashboard .smeb-analytics-hero-metric strong {
        font-size: clamp(46px, 13vw, 62px) !important;
    }

    .smeb-customer-dashboard .smeb-analytics-hero-metric {
        min-width: 0 !important;
        width: 100% !important;
    }
}


/* requested balance fix
   Keep the top Actual Revenue hero value as-is.
   Make Gross Revenue and Average Booking Value cards exactly match the normal KPI cards
   such as Bookings and Tickets Sold. */
.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong {
    display: block !important;
    font-size: clamp(36px, 4vw, 52px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.05em !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong .amount,
.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong .woocommerce-Price-amount,
.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong .woocommerce-Price-amount bdi,
.smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong .woocommerce-Price-currencySymbol {
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .smeb-customer-dashboard .smeb-analytics-card.smeb-card-money strong {
        font-size: 38px !important;
    }
}


/* responsive event detail hero image
   Desktop keeps a landscape hero. Tablet/mobile use a taller crop so the hero does not become a thin strip. */
.smeb-single-event-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    margin: 0 0 24px;
}

.smeb-single-event-featured-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
    border-radius: inherit;
}

@media (max-width: 900px) {
    .smeb-single-event-featured-image {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    .smeb-single-event-featured-image {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }
}


/* Event policy fields and detail display */
.smeb-event-policy-fields {
    margin: 18px 0;
    padding: 18px;
}
.smeb-event-policy-fields h4 {
    margin: 0 0 14px;
}
.smeb-event-policy-fields label {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
}
.smeb-event-policy-fields textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    min-height: 110px;
    resize: vertical;
}
.smeb-event-policies {
    margin-top: 24px;
    border-top: 1px solid rgba(0,0,0,.12);
    padding-top: 18px;
}
.smeb-event-policies h4 {
    margin: 0 0 12px;
}
.smeb-event-policy-item {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}
.smeb-event-policy-item summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 14px;
    background: #f7f7f7;
}
.smeb-event-policy-content {
    padding: 12px 14px 14px;
}
.smeb-event-policy-content p:last-child {
    margin-bottom: 0;
}


/* prevent event policy blocks from creating/behaving like a right-side overlay column. */
.smeb-event-policy-fields,
.smeb-event-policies,
.smeb-booking-box .smeb-event-policies {
    clear: both !important;
    float: none !important;
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
    display: block !important;
    z-index: auto !important;
}
.smeb-event-policy-fields label,
.smeb-event-policies h4,
.smeb-event-policy-item,
.smeb-event-policy-content,
.smeb-event-policy-item summary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.smeb-event-policy-fields textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* Event CRUD policy fields must remain in normal form flow.
   Do not treat this block as a separate dashboard card/column/sidebar. */
.smeb-dashboard-form-card .smeb-tenant-form {
    display: block !important;
}
.smeb-dashboard-form-card .smeb-event-policy-fields--crud,
.smeb-customer-dashboard .smeb-dashboard-form-card .smeb-event-policy-fields--crud {
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
    margin: 18px 0 !important;
    padding: 18px !important;
    border: 1px solid var(--smeb-border, #e5e7eb) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
    z-index: auto !important;
}
.smeb-dashboard-form-card .smeb-event-policy-fields--crud h4 {
    margin: 0 0 14px !important;
}
.smeb-dashboard-form-card .smeb-event-policy-fields--crud label {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.smeb-dashboard-form-card .smeb-event-policy-fields--crud textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 110px !important;
    margin-top: 7px !important;
    box-sizing: border-box !important;
}


/* black accent colour overrides. Styling only; no layout changes. */
.smeb-customer-dashboard,
.smeb-event-detail,
.smeb-event-booking-box,
.smeb-dashboard-form-card,
.smeb-tenant-card,
.smeb-content-card-carousel,
.smeb-event-card-carousel,
.smeb-event-policies,
.smeb-detail-card-carousel {
    --smeb-primary: #000000;
    --smeb-primary-hover: #222222;
    --smeb-primary-soft: #f3f4f6;
    --smeb-ci-primary: #000000;
    --smeb-ci-primary-hover: #222222;
}
.smeb-customer-dashboard a,
.smeb-event-detail a,
.smeb-event-booking-box a {
    color: #000000;
}
.smeb-primary-btn,
.smeb-secondary-btn.smeb-active,
.smeb-customer-dashboard button[type="submit"],
.smeb-customer-dashboard input[type="submit"],
.smeb-customer-dashboard .button-primary,
.smeb-dashboard-form-card button[type="submit"],
.smeb-dashboard-form-card input[type="submit"],
.smeb-event-booking-box button,
.smeb-event-booking-box input[type="submit"],
.smeb-checkin-btn-primary,
.smeb-event-card-carousel button,
.smeb-detail-card-carousel button,
.smeb-carousel-prev,
.smeb-carousel-next,
.smeb-content-card-carousel-prev,
.smeb-content-card-carousel-next,
.smeb-event-detail-card-carousel-prev,
.smeb-event-detail-card-carousel-next,
.smeb-event-add-card,
.smeb-event-upload-card-image,
.smeb-event-geocode-button,
.smeb-add-recurring-date {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.smeb-primary-btn:hover,
.smeb-secondary-btn.smeb-active:hover,
.smeb-customer-dashboard button[type="submit"]:hover,
.smeb-customer-dashboard input[type="submit"]:hover,
.smeb-customer-dashboard .button-primary:hover,
.smeb-dashboard-form-card button[type="submit"]:hover,
.smeb-dashboard-form-card input[type="submit"]:hover,
.smeb-event-booking-box button:hover,
.smeb-event-booking-box input[type="submit"]:hover,
.smeb-checkin-btn-primary:hover,
.smeb-event-card-carousel button:hover,
.smeb-detail-card-carousel button:hover,
.smeb-carousel-prev:hover,
.smeb-carousel-next:hover,
.smeb-content-card-carousel-prev:hover,
.smeb-content-card-carousel-next:hover,
.smeb-event-detail-card-carousel-prev:hover,
.smeb-event-detail-card-carousel-next:hover,
.smeb-event-add-card:hover,
.smeb-event-upload-card-image:hover,
.smeb-event-geocode-button:hover,
.smeb-add-recurring-date:hover {
    background: #222222 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}
.smeb-customer-dashboard .smeb-secondary-btn,
.smeb-customer-dashboard .button,
.smeb-remove-recurring-date,
.smeb-event-remove-card,
.smeb-event-policies summary,
.smeb-event-policy-item summary {
    border-color: #000000 !important;
    color: #000000 !important;
}
.smeb-customer-dashboard .smeb-secondary-btn:hover,
.smeb-customer-dashboard .button:hover,
.smeb-remove-recurring-date:hover,
.smeb-event-remove-card:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}
.smeb-customer-dashboard .active,
.smeb-customer-dashboard .is-active,
.smeb-customer-dashboard [aria-selected="true"],
.smeb-customer-dashboard .current,
.smeb-customer-dashboard .smeb-tab.active,
.smeb-customer-dashboard .smeb-nav a.active,
.smeb-customer-dashboard .smeb-dashboard-nav a.active {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}
/* TinyMCE/QuickTags tabs inside the Events CRUD form. */
.smeb-dashboard-form-card .wp-editor-tabs button,
.smeb-dashboard-form-card .wp-switch-editor,
.smeb-customer-dashboard .wp-editor-tabs button,
.smeb-customer-dashboard .wp-switch-editor {
    background: #f3f4f6 !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}
.smeb-dashboard-form-card .wp-editor-tabs .switch-tmce,
.smeb-dashboard-form-card .wp-editor-tabs .switch-html,
.smeb-customer-dashboard .wp-editor-tabs .switch-tmce,
.smeb-customer-dashboard .wp-editor-tabs .switch-html,
.smeb-dashboard-form-card .wp-editor-wrap.tmce-active .switch-tmce,
.smeb-dashboard-form-card .wp-editor-wrap.html-active .switch-html,
.smeb-customer-dashboard .wp-editor-wrap.tmce-active .switch-tmce,
.smeb-customer-dashboard .wp-editor-wrap.html-active .switch-html {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}
.smeb-customer-dashboard input:focus,
.smeb-customer-dashboard textarea:focus,
.smeb-customer-dashboard select:focus,
.smeb-event-booking-box input:focus,
.smeb-event-booking-box textarea:focus,
.smeb-event-booking-box select:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 1px #000000 !important;
    outline: none !important;
}
.smeb-event-card-carousel-dot.is-active,
.smeb-detail-card-carousel-dot.is-active,
.smeb-content-card-carousel-dot.is-active,
.smeb-event-detail-card-carousel-dot.is-active {
    background: #000000 !important;
}


/* geocode helper text and smallprint public policy display. */
.smeb-geocode-help {
    margin: 8px 0 6px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #64748b !important;
    max-width: 760px !important;
}
.smeb-geocode-status {
    display: block !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}
.smeb-event-policies,
.smeb-event-policies h4,
.smeb-event-policy-item,
.smeb-event-policy-item summary,
.smeb-event-policy-content,
.smeb-event-policy-content p,
.smeb-event-policy-content li {
    font-size: 12px !important;
    line-height: 1.45 !important;
}
.smeb-event-policies h4 {
    font-size: 13px !important;
    line-height: 1.35 !important;
}
.smeb-event-policy-item summary {
    font-size: 12px !important;
    padding: 9px 11px !important;
}
.smeb-event-policy-content {
    padding: 10px 11px 11px !important;
}


/* hard black accent override for inherited theme/Elementor colours. Styling only. */
.smeb-customer-dashboard,
.smeb-event-detail,
.smeb-event-booking-box,
.smeb-dashboard-form-card,
.smeb-tenant-card,
.smeb-content-card-carousel,
.smeb-event-card-carousel,
.smeb-event-policies,
.smeb-detail-card-carousel,
.smeb-checkin-dashboard,
.smeb-upcoming-events {
    --smeb-primary: #000000 !important;
    --smeb-primary-hover: #222222 !important;
    --smeb-accent: #000000 !important;
    --smeb-ci-primary: #000000 !important;
    --smeb-ci-primary-hover: #222222 !important;
    --e-global-color-primary: #000000 !important;
    --e-global-color-secondary: #000000 !important;
    --e-global-color-accent: #000000 !important;
    --wp--preset--color--primary: #000000 !important;
    --wp--preset--color--accent: #000000 !important;
    --ast-global-color-0: #000000 !important;
    --ast-global-color-1: #000000 !important;
    --theme-palette-color-1: #000000 !important;
    --theme-palette-color-2: #000000 !important;
}
.smeb-customer-dashboard button,
.smeb-customer-dashboard .button,
.smeb-customer-dashboard .button-primary,
.smeb-customer-dashboard input[type="submit"],
.smeb-customer-dashboard a.smeb-primary-btn,
.smeb-customer-dashboard .smeb-primary-btn,
.smeb-dashboard-form-card button,
.smeb-dashboard-form-card .button,
.smeb-dashboard-form-card input[type="submit"],
.smeb-event-booking-box button,
.smeb-event-booking-box .button,
.smeb-event-booking-box input[type="submit"],
.smeb-event-detail button,
.smeb-event-detail .button,
.smeb-event-detail input[type="submit"],
.smeb-content-card-carousel button,
.smeb-event-card-carousel button,
.smeb-detail-card-carousel button,
.smeb-checkin-dashboard button,
.smeb-upcoming-events button,
.smeb-carousel-prev,
.smeb-carousel-next,
.smeb-content-card-carousel-prev,
.smeb-content-card-carousel-next,
.smeb-event-detail-card-carousel-prev,
.smeb-event-detail-card-carousel-next,
.smeb-event-geocode-button,
.smeb-event-add-card,
.smeb-event-upload-card-image,
.smeb-add-recurring-date {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.smeb-customer-dashboard button:hover,
.smeb-customer-dashboard .button:hover,
.smeb-customer-dashboard .button-primary:hover,
.smeb-customer-dashboard input[type="submit"]:hover,
.smeb-customer-dashboard a.smeb-primary-btn:hover,
.smeb-customer-dashboard .smeb-primary-btn:hover,
.smeb-dashboard-form-card button:hover,
.smeb-dashboard-form-card .button:hover,
.smeb-dashboard-form-card input[type="submit"]:hover,
.smeb-event-booking-box button:hover,
.smeb-event-booking-box .button:hover,
.smeb-event-booking-box input[type="submit"]:hover,
.smeb-event-detail button:hover,
.smeb-event-detail .button:hover,
.smeb-event-detail input[type="submit"]:hover,
.smeb-content-card-carousel button:hover,
.smeb-event-card-carousel button:hover,
.smeb-detail-card-carousel button:hover,
.smeb-checkin-dashboard button:hover,
.smeb-upcoming-events button:hover,
.smeb-carousel-prev:hover,
.smeb-carousel-next:hover,
.smeb-content-card-carousel-prev:hover,
.smeb-content-card-carousel-next:hover,
.smeb-event-detail-card-carousel-prev:hover,
.smeb-event-detail-card-carousel-next:hover,
.smeb-event-geocode-button:hover,
.smeb-event-add-card:hover,
.smeb-event-upload-card-image:hover,
.smeb-add-recurring-date:hover {
    background: #222222 !important;
    background-color: #222222 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}
.smeb-customer-dashboard a,
.smeb-event-detail a,
.smeb-event-booking-box a,
.smeb-dashboard-form-card a,
.smeb-tenant-card a {
    color: #000000 !important;
}
.smeb-customer-dashboard .active,
.smeb-customer-dashboard .is-active,
.smeb-customer-dashboard .current,
.smeb-customer-dashboard [aria-selected="true"],
.smeb-customer-dashboard .smeb-active,
.smeb-customer-dashboard .smeb-tab.active,
.smeb-customer-dashboard .smeb-nav a.active,
.smeb-customer-dashboard .smeb-dashboard-nav a.active,
.smeb-customer-dashboard .smeb-menu a.active,
.smeb-customer-dashboard .smeb-analytics-card::before,
.smeb-customer-dashboard .smeb-stat-card::before,
.smeb-customer-dashboard .smeb-kpi-card::before,
.smeb-content-card-carousel-dot.is-active,
.smeb-event-card-carousel-dot.is-active,
.smeb-detail-card-carousel-dot.is-active,
.smeb-event-detail-card-carousel-dot.is-active {
    background: #000000 !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}
.smeb-customer-dashboard input:focus,
.smeb-customer-dashboard textarea:focus,
.smeb-customer-dashboard select:focus,
.smeb-dashboard-form-card input:focus,
.smeb-dashboard-form-card textarea:focus,
.smeb-dashboard-form-card select:focus,
.smeb-event-booking-box input:focus,
.smeb-event-booking-box textarea:focus,
.smeb-event-booking-box select:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 1px #000000 !important;
    outline-color: #000000 !important;
}
.smeb-dashboard-form-card .wp-switch-editor,
.smeb-dashboard-form-card .wp-editor-tabs button,
.smeb-customer-dashboard .wp-switch-editor,
.smeb-customer-dashboard .wp-editor-tabs button {
    border-color: #000000 !important;
    color: #000000 !important;
}
.smeb-dashboard-form-card .wp-editor-wrap.tmce-active .switch-tmce,
.smeb-dashboard-form-card .wp-editor-wrap.html-active .switch-html,
.smeb-customer-dashboard .wp-editor-wrap.tmce-active .switch-tmce,
.smeb-customer-dashboard .wp-editor-wrap.html-active .switch-html {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}


/* keep WordPress Visual/Code editor tabs correctly aligned while grey with black text. */
#wp-smeb_event_description_editor-wrap .wp-editor-tabs {
    display: block !important;
    float: right !important;
    position: relative !important;
    z-index: 10 !important;
    top: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    height: auto !important;
    line-height: normal !important;
    width: auto !important;
}
#wp-smeb_event_description_editor-wrap .wp-editor-tabs .wp-switch-editor,
#wp-smeb_event_description_editor-wrap button.wp-switch-editor,
#wp-smeb_event_description_editor-wrap .switch-tmce,
#wp-smeb_event_description_editor-wrap .switch-html {
    display: block !important;
    float: left !important;
    position: relative !important;
    top: 1px !important;
    right: auto !important;
    left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    line-height: 20px !important;
    margin: 5px 0 0 5px !important;
    padding: 3px 8px 4px !important;
    box-sizing: content-box !important;
    border: 1px solid #cbd5e1 !important;
    border-bottom-color: #cbd5e1 !important;
    border-radius: 0 !important;
    background: #eeeeee !important;
    background-color: #eeeeee !important;
    color: #000000 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
}
#wp-smeb_event_description_editor-wrap .wp-editor-tabs .wp-switch-editor:hover,
#wp-smeb_event_description_editor-wrap button.wp-switch-editor:hover,
#wp-smeb_event_description_editor-wrap .switch-tmce:hover,
#wp-smeb_event_description_editor-wrap .switch-html:hover {
    background: #e5e7eb !important;
    background-color: #e5e7eb !important;
    color: #000000 !important;
    border-color: #94a3b8 !important;
}
#wp-smeb_event_description_editor-wrap.tmce-active .wp-editor-tabs .switch-tmce,
#wp-smeb_event_description_editor-wrap.html-active .wp-editor-tabs .switch-html {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #cbd5e1 !important;
    border-bottom-color: #ffffff !important;
}
#wp-smeb_event_description_editor-wrap .wp-editor-container {
    clear: both !important;
}


/* Manager dashboard action buttons - black background with white text, scoped to action links/buttons only. */
.smeb-customer-dashboard .smeb-table-actions a.smeb-small-btn,
.smeb-customer-dashboard .smeb-table-actions button.smeb-small-btn,
.smeb-customer-dashboard .smeb-dashboard-section-title a.smeb-small-btn,
.smeb-customer-dashboard .smeb-dashboard-section-title a.smeb-primary-btn,
.smeb-customer-dashboard a.smeb-primary-btn,
.smeb-customer-dashboard button.smeb-primary-btn {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #000000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
.smeb-customer-dashboard .smeb-table-actions a.smeb-small-btn:hover,
.smeb-customer-dashboard .smeb-table-actions button.smeb-small-btn:hover,
.smeb-customer-dashboard .smeb-dashboard-section-title a.smeb-small-btn:hover,
.smeb-customer-dashboard .smeb-dashboard-section-title a.smeb-primary-btn:hover,
.smeb-customer-dashboard a.smeb-primary-btn:hover,
.smeb-customer-dashboard button.smeb-primary-btn:hover,
.smeb-customer-dashboard .smeb-table-actions a.smeb-small-btn:focus,
.smeb-customer-dashboard .smeb-table-actions button.smeb-small-btn:focus,
.smeb-customer-dashboard .smeb-dashboard-section-title a.smeb-small-btn:focus,
.smeb-customer-dashboard .smeb-dashboard-section-title a.smeb-primary-btn:focus,
.smeb-customer-dashboard a.smeb-primary-btn:focus,
.smeb-customer-dashboard button.smeb-primary-btn:focus {
    background: #222222 !important;
    background-color: #222222 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #222222 !important;
}


/* force white text on Events dashboard nav/menu buttons hover/active */
.smeb-customer-nav a:hover,
.smeb-customer-nav a:focus,
.smeb-customer-nav a.is-active,
.smeb-customer-dashboard .smeb-customer-nav a:hover,
.smeb-customer-dashboard .smeb-customer-nav a:focus,
.smeb-customer-dashboard .smeb-customer-nav a.is-active {
    color: #ffffff !important;
}
.smeb-customer-nav a:hover *,
.smeb-customer-nav a:focus *,
.smeb-customer-nav a.is-active *,
.smeb-customer-dashboard .smeb-customer-nav a:hover *,
.smeb-customer-dashboard .smeb-customer-nav a:focus *,
.smeb-customer-dashboard .smeb-customer-nav a.is-active * {
    color: #ffffff !important;
}


/* Booking calendar for manager dashboards */
.smeb-booking-calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}

.smeb-booking-calendar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.smeb-booking-calendar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.smeb-booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.smeb-booking-calendar-weekday {
  font-size: .78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0 4px 4px;
}

.smeb-booking-calendar-day {
  min-height: 132px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.smeb-booking-calendar-day.is-empty {
  background: rgba(248, 250, 252, .66);
  box-shadow: none;
}

.smeb-booking-calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  font-size: .84rem;
  margin-bottom: 8px;
}

.smeb-booking-calendar-event {
  display: grid;
  gap: 3px;
  border-left: 3px solid #0f766e;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px;
  margin: 6px 0;
  color: #0f172a;
  text-decoration: none;
}

.smeb-booking-calendar-event:hover {
  background: #ecfdf5;
  color: #0f172a;
}

.smeb-booking-calendar-event strong {
  font-size: .86rem;
  line-height: 1.25;
}

.smeb-booking-calendar-event small,
.smeb-booking-calendar-event span {
  color: #64748b;
  font-size: .76rem;
  line-height: 1.25;
}

.smeb-booking-calendar-table {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .smeb-booking-calendar-grid {
    grid-template-columns: 1fr;
  }

  .smeb-booking-calendar-weekday,
  .smeb-booking-calendar-day.is-empty {
    display: none;
  }

  .smeb-booking-calendar-day {
    min-height: 0;
  }
}


/* cross-dashboard switcher */
.smeb-dashboard-switcher{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;padding:10px;border:1px solid rgba(15,23,42,.10);border-radius:16px;background:rgba(248,250,252,.86)}
.smeb-dashboard-switcher span{font-size:.78rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-right:4px}
.smeb-dashboard-switcher a{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border-radius:999px;border:1px solid rgba(15,23,42,.12);background:#fff;color:#0f172a;font-weight:800;text-decoration:none}
.smeb-dashboard-switcher a.is-active,.smeb-dashboard-switcher a:hover,.smeb-dashboard-switcher a:focus{background:#0f766e;border-color:#0f766e;color:#fff}


/* Professional public Events listing and event detail layouts. */
.smeb-upcoming-wrap {
    width: calc(100% - 32px) !important;
    max-width: 1200px !important;
    margin: clamp(24px, 4vw, 56px) auto !important;
    padding: clamp(20px, 3vw, 38px) !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08) !important;
}

.smeb-upcoming-toolbar {
    align-items: flex-end !important;
    margin-bottom: 28px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.smeb-upcoming-toolbar h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
}

.smeb-view-toggle {
    padding: 4px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
}

.smeb-view-toggle button {
    min-height: 40px !important;
    padding: 9px 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Fixed three-card desktop grid. One or two events never stretch full width. */
.smeb-upcoming-events.smeb-view-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 360px)) !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 24px !important;
}

.smeb-upcoming-events.smeb-view-grid .smeb-event-card {
    width: 100% !important;
    max-width: 360px !important;
    min-width: 0 !important;
}

.smeb-event-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

.smeb-event-card:hover {
    transform: translateY(-4px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.13) !important;
}

.smeb-event-image {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #eef2f7 !important;
}

.smeb-event-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    transition: transform .3s ease !important;
}

.smeb-event-card:hover .smeb-event-image img {
    transform: scale(1.035) !important;
}

.smeb-event-card-inner {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    padding: 22px !important;
    box-sizing: border-box !important;
}

.smeb-event-card h3 {
    margin: 0 0 14px !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
}

.smeb-event-card h3 a {
    color: #111827 !important;
    text-decoration: none !important;
}

.smeb-event-meta {
    margin: 0 0 16px !important;
    padding: 14px !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
}

.smeb-event-meta strong {
    color: #111827 !important;
}

.smeb-event-excerpt {
    margin: 0 0 20px !important;
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.smeb-event-excerpt p:last-child {
    margin-bottom: 0 !important;
}

.smeb-event-actions {
    margin-top: auto !important;
    padding-top: 4px !important;
}

.smeb-event-actions .button,
.smeb-view-event-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 10px 18px !important;
    border: 1px solid #000000 !important;
    border-radius: 999px !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.smeb-event-actions .button:hover,
.smeb-view-event-button:hover {
    background: #222222 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}

.smeb-no-events {
    padding: clamp(24px, 4vw, 44px) !important;
    color: #475569 !important;
    text-align: center !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
}

/* Public individual event page. */
body.single-smeb_event .entry-header {
    width: calc(100% - 32px) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(6px, 2vw, 24px) !important;
    padding-right: clamp(6px, 2vw, 24px) !important;
    box-sizing: border-box !important;
}

body.single-smeb_event .entry-title {
    margin-bottom: 20px !important;
    color: #111827 !important;
    font-size: clamp(34px, 5vw, 58px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
}

.smeb-event-detail {
    width: calc(100% - 32px) !important;
    max-width: 1180px !important;
    margin: clamp(18px, 3vw, 42px) auto clamp(36px, 5vw, 72px) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.smeb-event-detail__inner {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

.smeb-single-event-featured-image {
    width: 100% !important;
    margin: 0 0 28px !important;
    overflow: hidden !important;
    aspect-ratio: 16 / 9 !important;
    background: #eef2f7 !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12) !important;
}

.smeb-single-event-featured-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.smeb-event-detail__content-card {
    margin: 0 0 28px !important;
    padding: clamp(24px, 4vw, 48px) !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08) !important;
}

.smeb-event-detail__description {
    max-width: 820px !important;
    margin: 0 auto !important;
    color: #334155 !important;
    font-size: clamp(16px, 1.4vw, 18px) !important;
    line-height: 1.8 !important;
}

.smeb-event-detail__description > :first-child {
    margin-top: 0 !important;
}

.smeb-event-detail__description > :last-child {
    margin-bottom: 0 !important;
}

.smeb-event-detail__description h2,
.smeb-event-detail__description h3,
.smeb-event-detail__description h4 {
    color: #111827 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

.smeb-event-detail__description h2 {
    margin: 1.5em 0 .65em !important;
    font-size: clamp(28px, 3vw, 38px) !important;
}

.smeb-event-detail__description h3 {
    margin: 1.35em 0 .6em !important;
    font-size: clamp(23px, 2.4vw, 30px) !important;
}

.smeb-event-detail__description p,
.smeb-event-detail__description ul,
.smeb-event-detail__description ol,
.smeb-event-detail__description blockquote {
    margin-top: 0 !important;
    margin-bottom: 1.25em !important;
}

.smeb-event-detail__description ul,
.smeb-event-detail__description ol {
    padding-left: 1.35em !important;
}

.smeb-event-detail__description blockquote {
    padding: 18px 22px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    border-left: 4px solid #000000 !important;
    border-radius: 0 12px 12px 0 !important;
}

.smeb-event-detail__description img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
}

.smeb-event-detail .smeb-event-card-carousel {
    width: 100% !important;
    margin: 0 0 28px !important;
    padding: clamp(20px, 3vw, 30px) !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08) !important;
}

.smeb-event-detail .smeb-booking-box {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(24px, 4vw, 42px) !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08) !important;
}

.smeb-event-detail .smeb-booking-box > h3,
.smeb-event-detail .smeb-booking-box > form,
.smeb-event-detail .smeb-booking-box > .smeb-event-policies,
.smeb-event-detail .smeb-booking-box > .smeb-sold-out {
    grid-column: 1 / -1 !important;
}

.smeb-event-detail .smeb-booking-box > h3 {
    margin: 0 0 8px !important;
    color: #111827 !important;
    font-size: clamp(26px, 3vw, 36px) !important;
    line-height: 1.2 !important;
}

.smeb-event-detail .smeb-booking-box > p {
    margin: 0 !important;
    padding: 14px 16px !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
}

.smeb-event-detail .smeb-booking-box > p strong {
    color: #111827 !important;
}

.smeb-event-detail .smeb-booking-box form.cart {
    margin: 8px 0 0 !important;
    padding-top: 20px !important;
    border-top: 1px solid #e5e7eb !important;
}

.smeb-event-detail .smeb-booking-box input[type="number"] {
    min-height: 44px !important;
    padding: 9px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
}

.smeb-event-detail .smeb-event-policies {
    margin-top: 14px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e5e7eb !important;
}

@media (max-width: 960px) {
    .smeb-upcoming-events.smeb-view-grid {
        grid-template-columns: repeat(2, minmax(0, 360px)) !important;
    }
}

@media (max-width: 700px) {
    .smeb-upcoming-wrap,
    .smeb-event-detail,
    body.single-smeb_event .entry-header {
        width: calc(100% - 20px) !important;
    }

    .smeb-upcoming-wrap {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .smeb-upcoming-toolbar {
        align-items: stretch !important;
    }

    .smeb-view-toggle {
        width: 100% !important;
    }

    .smeb-view-toggle button {
        flex: 1 1 50% !important;
    }

    .smeb-upcoming-events.smeb-view-grid {
        grid-template-columns: minmax(0, 420px) !important;
        gap: 18px !important;
    }

    .smeb-upcoming-events.smeb-view-grid .smeb-event-card {
        max-width: 420px !important;
    }

    .smeb-event-card-inner {
        padding: 18px !important;
    }

    .smeb-event-detail__content-card,
    .smeb-event-detail .smeb-event-card-carousel,
    .smeb-event-detail .smeb-booking-box {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .smeb-single-event-featured-image {
        border-radius: 16px !important;
    }

    .smeb-event-detail .smeb-booking-box {
        grid-template-columns: 1fr !important;
    }

    .smeb-event-detail .smeb-booking-box > h3,
    .smeb-event-detail .smeb-booking-box > form,
    .smeb-event-detail .smeb-booking-box > .smeb-event-policies,
    .smeb-event-detail .smeb-booking-box > .smeb-sold-out {
        grid-column: auto !important;
    }
}


/* Staymanager Event Bookings page asset/grid isolation.
 * The theme renders the shortcode dynamically, so these rules now load on the
 * Events template and protect the listing from generic theme article/grid CSS.
 */
body.page-template-templates-events-php .wild-plugin-shortcode-wrap,
body.page-template-templates-events .wild-plugin-shortcode-wrap,
body.post-type-archive-smeb_event .wild-plugin-shortcode-wrap,
.wild-plugin-shortcode-wrap:has(> .smeb-upcoming-wrap) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
    box-sizing: border-box !important;
}

body.page-template-templates-events-php .smeb-upcoming-wrap,
body.page-template-templates-events .smeb-upcoming-wrap,
body.post-type-archive-smeb_event .smeb-upcoming-wrap {
    display: block !important;
    width: min(1200px, calc(100% - 32px)) !important;
    max-width: 1200px !important;
    min-width: 0 !important;
    margin: clamp(28px, 4vw, 56px) auto !important;
    padding: clamp(22px, 3vw, 38px) !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

body.page-template-templates-events-php .smeb-upcoming-events.smeb-view-grid,
body.page-template-templates-events .smeb-upcoming-events.smeb-view-grid,
body.post-type-archive-smeb_event .smeb-upcoming-events.smeb-view-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    justify-content: start !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

body.page-template-templates-events-php .smeb-upcoming-events.smeb-view-grid > .smeb-event-card,
body.page-template-templates-events .smeb-upcoming-events.smeb-view-grid > .smeb-event-card,
body.post-type-archive-smeb_event .smeb-upcoming-events.smeb-view-grid > .smeb-event-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: relative !important;
    box-sizing: border-box !important;
}

body.page-template-templates-events-php .smeb-event-image,
body.page-template-templates-events .smeb-event-image,
body.post-type-archive-smeb_event .smeb-event-image {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.page-template-templates-events-php .smeb-event-image img,
body.page-template-templates-events .smeb-event-image img,
body.post-type-archive-smeb_event .smeb-event-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 !important;
}

@media (max-width: 960px) {
    body.page-template-templates-events-php .smeb-upcoming-events.smeb-view-grid,
    body.page-template-templates-events .smeb-upcoming-events.smeb-view-grid,
    body.post-type-archive-smeb_event .smeb-upcoming-events.smeb-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    body.page-template-templates-events-php .smeb-upcoming-wrap,
    body.page-template-templates-events .smeb-upcoming-wrap,
    body.post-type-archive-smeb_event .smeb-upcoming-wrap {
        width: calc(100% - 20px) !important;
        padding: 18px !important;
    }

    body.page-template-templates-events-php .smeb-upcoming-events.smeb-view-grid,
    body.page-template-templates-events .smeb-upcoming-events.smeb-view-grid,
    body.post-type-archive-smeb_event .smeb-upcoming-events.smeb-view-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }
}

/* Staymanager native event checkout */
.smeb-native-booking-form select,
.smeb-native-booking-form input[type="text"],
.smeb-native-booking-form input[type="email"],
.smeb-native-booking-form input[type="number"],
.smeb-native-booking-form input:not([type]) { width:100%; box-sizing:border-box; padding:10px 12px; margin-top:6px; }
.smeb-native-booking-form fieldset { border:1px solid #dcdcde; border-radius:8px; padding:12px 14px; margin:14px 0; }
.smeb-customer-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.smeb-booking-error { border-left:4px solid #b32d2e; background:#fff2f2; padding:10px 12px; margin-bottom:14px; }
.smeb-platform-help { color:#646970; font-size:.9em; }
@media (max-width:720px){ .smeb-customer-grid{grid-template-columns:1fr;} }
