/**
 * Zevonix Events — Frontend Styles
 *
 * Brand palette (shared with Zevonix Membership)
 * --ze-navy:          #003874
 * --ze-navy-dark:     #002A58
 * --ze-gold:          #B49759
 * --ze-orange:        #E8612D
 * --ze-orange-hover:  #D4541F
 * --ze-light-blue:    #99CAEA
 * --ze-blue-pale:     #E8F2FA
 * --ze-text-primary:  #003874
 * --ze-text-secondary:#516B84
 * --ze-text-muted:    #8696A7
 * --ze-white:         #FFFFFF
 * --ze-surface:       #FAFBFE
 * --ze-border:        rgba(10, 37, 64, 0.12)
 */

:root {
    --ze-navy: #003874;
    --ze-navy-dark: #002A58;
    --ze-gold: #B49759;
    --ze-orange: #E8612D;
    --ze-orange-hover: #D4541F;
    --ze-light-blue: #99CAEA;
    --ze-blue-pale: #E8F2FA;
    --ze-text-primary: #003874;
    --ze-text-secondary: #516B84;
    --ze-text-muted: #8696A7;
    --ze-white: #FFFFFF;
    --ze-surface: #FAFBFE;
    --ze-border: rgba(10, 37, 64, 0.12);
    --ze-font: Arial, "Helvetica Neue", sans-serif;
    --ze-font-serif: Georgia, "Times New Roman", serif;
    --ze-radius: 10px;
    --ze-radius-lg: 14px;
    --ze-shadow: 0 2px 12px rgba(0, 56, 116, 0.07);
    --ze-shadow-hover: 0 6px 24px rgba(0, 56, 116, 0.12);
    --ze-transition: 0.25s ease;
}

/* ============================================================
   Base / Shared
   ============================================================ */

.ze-wrap,
.ze-wrap *,
.ze-wrap h1,
.ze-wrap h2,
.ze-wrap h3,
.ze-wrap h4,
.ze-wrap label,
.ze-wrap input,
.ze-wrap select,
.ze-wrap textarea,
.ze-wrap button,
.ze-wrap p,
.ze-wrap a {
    font-family: var(--ze-font) !important;
}

.ze-wrap {
    color: var(--ze-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.ze-wrap *,
.ze-wrap *::before,
.ze-wrap *::after {
    box-sizing: border-box;
}

/* Prevent Elementor kit from overriding event link/button colors */
.ze-wrap a {
    color: var(--ze-navy);
}

.ze-wrap a:hover {
    color: var(--ze-orange);
}

/* ============================================================
   Buttons — mirroring Membership plugin conventions
   ============================================================ */

.ze-btn,
button.ze-btn,
a.ze-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    font-family: var(--ze-font) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    line-height: 1.4;
    padding: 12px 28px !important;
    border: none !important;
    border-radius: var(--ze-radius) !important;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    text-decoration: none !important;
}

.ze-btn:focus-visible {
    outline: 3px solid var(--ze-light-blue);
    outline-offset: 2px;
}

.ze-btn-primary,
a.ze-btn-primary,
button.ze-btn-primary {
    background: var(--ze-orange) !important;
    color: #FFFFFF !important;
}

.ze-btn-primary:hover,
.ze-btn-primary:focus,
a.ze-btn-primary:hover,
a.ze-btn-primary:focus {
    background: var(--ze-orange-hover) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(232, 97, 45, 0.35);
    transform: translateY(-1px);
}

.ze-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(232, 97, 45, 0.25);
}

.ze-btn-secondary,
a.ze-btn-secondary {
    background: var(--ze-navy) !important;
    color: #FFFFFF !important;
}

.ze-btn-secondary:hover,
.ze-btn-secondary:focus,
a.ze-btn-secondary:hover {
    background: var(--ze-navy-dark) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(0, 56, 116, 0.3);
}

.ze-btn-outline,
a.ze-btn-outline {
    background: transparent !important;
    color: var(--ze-navy) !important;
    border: 2px solid var(--ze-navy);
}

.ze-btn-outline:hover,
.ze-btn-outline:focus,
a.ze-btn-outline:hover {
    background: var(--ze-navy) !important;
    color: #FFFFFF !important;
}

.ze-btn-block {
    width: 100%;
}

.ze-btn-sm {
    font-size: 0.85rem;
    padding: 8px 18px;
}

.ze-btn-lg {
    font-size: 1.05rem;
    padding: 14px 32px;
}

.ze-btn:disabled,
.ze-btn.ze-btn-loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.ze-btn-loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--ze-white);
    border-radius: 50%;
    animation: ze-spin 0.6s linear infinite;
}

@keyframes ze-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Messages / Notices
   ============================================================ */

.ze-message {
    padding: 14px 20px;
    border-radius: var(--ze-radius);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.ze-message p {
    margin: 0;
}

.ze-message-success {
    background: #D4EDDA;
    color: #155724;
    border-color: #C3E6CB;
}

.ze-message-error {
    background: #F8D7DA;
    color: #721C24;
    border-color: #F5C6CB;
}

.ze-message-info {
    background: var(--ze-blue-pale);
    color: var(--ze-navy);
    border-color: rgba(0, 56, 116, 0.12);
}

.ze-message-warning {
    background: #FFF3CD;
    color: #856404;
    border-color: #FFEEBA;
}

/* ============================================================
   Events Grid — Listing Page
   ============================================================ */

.ze-events-section {
    max-width: 1100px;
    margin: 40px auto;
}

.ze-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.ze-events-header h2 {
    font-family: var(--ze-font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0;
}

.ze-events-header .ze-events-count {
    font-size: 0.9rem;
    color: var(--ze-text-muted);
}

/* Filter / Category Tabs */
.ze-events-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ze-events-filter {
    font-family: var(--ze-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ze-text-secondary);
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ze-transition);
}

.ze-events-filter:hover {
    border-color: var(--ze-navy);
    color: var(--ze-navy);
    background: var(--ze-blue-pale);
}

.ze-events-filter.ze-filter-active {
    background: var(--ze-navy);
    color: var(--ze-white);
    border-color: var(--ze-navy);
}

/* Grid Layout */
.ze-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================================
   Filter Bar
   ============================================================ */

.ze-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
}

.ze-filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ze-filter-toggle {
    display: flex;
    background: var(--ze-surface);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--ze-border);
}

.ze-filter-toggle-btn {
    padding: 0.45rem 1.1rem;
    border: none;
    background: transparent;
    color: var(--ze-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ze-filter-toggle-btn:hover {
    color: var(--ze-navy);
}

.ze-filter-toggle-btn.ze-active {
    background: var(--ze-white);
    color: var(--ze-navy);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ze-filter-selects {
    gap: 0.5rem;
}

.ze-filter-select {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border: 1px solid var(--ze-border);
    border-radius: 8px;
    background: var(--ze-white);
    color: var(--ze-text);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238696A7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    transition: border-color 0.2s ease;
}

.ze-filter-select:hover,
.ze-filter-select:focus {
    border-color: var(--ze-navy);
    outline: none;
}

/* Loading state */
.ze-events-results {
    transition: opacity 0.2s ease;
}

.ze-events-results.ze-loading {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 600px) {
    .ze-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .ze-filter-selects {
        flex-direction: column;
    }
    .ze-filter-select {
        width: 100%;
    }
}

/* ============================================================
   Event Card
   ============================================================ */

.ze-event-card {
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    box-shadow: var(--ze-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--ze-transition), transform var(--ze-transition);
}

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

/* Card Image */
.ze-event-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    font-size: 0;
    line-height: 0;
}

.ze-event-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 0;
    line-height: 0;
}

.ze-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    transition: transform 0.4s ease;
}

.ze-event-card:hover .ze-event-card-image img {
    transform: scale(1.05);
}

/* No-image placeholder */
.ze-event-card-no-image {
    aspect-ratio: 16 / 10;
    background: var(--ze-blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ze-radius-lg) var(--ze-radius-lg) 0 0;
    position: relative;
}

.ze-event-card-no-image svg {
    width: 48px;
    height: 48px;
    fill: var(--ze-light-blue);
    opacity: 0.6;
}

/* Card Body */
.ze-event-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ze-event-card-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ze-navy);
    background: var(--ze-blue-pale);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.ze-event-card-title {
    font-family: var(--ze-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0 0 10px;
    line-height: 1.35;
}

.ze-event-card-title a {
    color: var(--ze-navy) !important;
    text-decoration: none;
    transition: color var(--ze-transition);
}

.ze-event-card-title a:hover {
    color: var(--ze-orange) !important;
}

/* Card Meta */
.ze-event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.ze-event-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ze-text-secondary);
}

.ze-event-card-meta-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--ze-text-muted);
}

/* Price Tag */
.ze-event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ze-border);
}

.ze-event-price-tag {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ze-navy-dark);
    font-variant-numeric: tabular-nums;
}

.ze-event-price-tag.ze-price-free {
    color: #28A745;
}

.ze-event-card-action .ze-btn {
    font-size: 0.82rem;
    padding: 7px 16px;
}

/* ============================================================
   Date Badge — overlay on card image
   ============================================================ */

.ze-date-badge {
    position: absolute;
    top: -1px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 52px;
    padding: 6px 4px;
    background: var(--ze-navy);
    border-radius: 0 0 8px 8px;
    color: var(--ze-white);
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 42, 88, 0.35);
}

.ze-date-badge-day {
    font-size: 1.35rem;
    font-weight: 700;
    display: block;
}

.ze-date-badge-month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 1px;
    opacity: 0.85;
}

/* ============================================================
   Status Badges
   ============================================================ */

.ze-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ze-font);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.4;
    white-space: nowrap;
}

.ze-badge-upcoming {
    background: #D4EDDA;
    color: #155724;
}

.ze-badge-past {
    background: #E9ECEF;
    color: #5A6268;
}

.ze-badge-cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.ze-badge-draft {
    background: #FFF3CD;
    color: #856404;
}

.ze-badge-sold-out {
    background: #FFE0CC;
    color: #C0471A;
}

.ze-badge-free {
    background: #D4EDDA;
    color: #155724;
}

/* ============================================================
   Single Event Page
   ============================================================ */

.ze-event-single {
    max-width: 960px;
    margin: 40px auto;
}

/* Featured Image */
.ze-event-single-image {
    position: relative;
    border-radius: var(--ze-radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
}

.ze-event-single-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--ze-radius-lg);
}

/* Event Header */
.ze-event-single-header {
    margin-bottom: 28px;
}

.ze-event-single-header .ze-event-card-category {
    margin-bottom: 12px;
}

.ze-event-single-title {
    font-family: var(--ze-font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0 0 12px;
    line-height: 1.25;
}

.ze-event-single-subtitle {
    font-size: 1.05rem;
    color: var(--ze-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Event Highlights */
.ze-event-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ze-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--ze-surface);
    border: 1px solid var(--ze-border);
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--ze-text);
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ze-highlight-badge--link {
    text-decoration: none;
    color: var(--ze-navy);
    background: rgba(0, 56, 116, 0.05);
    border-color: rgba(0, 56, 116, 0.15);
    cursor: pointer;
}

.ze-highlight-badge--link:hover {
    background: rgba(0, 56, 116, 0.1);
    border-color: var(--ze-navy);
}

.ze-highlight-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex-shrink: 0;
}

.ze-highlight-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

@media (max-width: 600px) {
    .ze-event-highlights {
        gap: 0.35rem;
    }
    .ze-highlight-badge {
        font-size: 0.775rem;
        padding: 0.35rem 0.7rem;
    }
}

/* Calendar dropdown */
.ze-cal-dropdown {
    position: relative;
    cursor: pointer;
}

.ze-cal-chevron {
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.ze-cal-dropdown.ze-open .ze-cal-chevron {
    transform: rotate(180deg);
}

.ze-cal-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 10;
    overflow: hidden;
}

.ze-cal-dropdown.ze-open .ze-cal-menu {
    display: block;
}

.ze-cal-menu a {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    color: var(--ze-text);
    text-decoration: none;
    transition: background 0.15s;
}

.ze-cal-menu a:hover {
    background: var(--ze-surface);
}

.ze-cal-menu a + a {
    border-top: 1px solid var(--ze-border);
}

/* View Toggle */
.ze-view-toggle {
    display: flex;
    border: 1px solid var(--ze-border);
    border-radius: 8px;
    overflow: hidden;
}

.ze-view-btn {
    padding: 6px 10px;
    border: none;
    background: var(--ze-white);
    color: var(--ze-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ze-view-btn + .ze-view-btn {
    border-left: 1px solid var(--ze-border);
}

.ze-view-btn:hover {
    color: var(--ze-navy);
}

.ze-view-btn.ze-active {
    background: var(--ze-navy);
    color: var(--ze-white);
}

/* List View */
.ze-events-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ze-event-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-bottom: none;
    transition: background 0.15s ease;
}

.ze-event-list-item:first-child {
    border-radius: var(--ze-radius-lg) var(--ze-radius-lg) 0 0;
}

.ze-event-list-item:last-child {
    border-bottom: 1px solid var(--ze-border);
    border-radius: 0 0 var(--ze-radius-lg) var(--ze-radius-lg);
}

.ze-event-list-item:only-child {
    border-radius: var(--ze-radius-lg);
    border-bottom: 1px solid var(--ze-border);
}

.ze-event-list-item:hover {
    background: var(--ze-surface);
}

.ze-event-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px;
    background: var(--ze-navy);
    color: var(--ze-white);
    border-radius: 8px;
    text-align: center;
    flex-shrink: 0;
}

.ze-event-list-day {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.ze-event-list-month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.ze-event-list-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.ze-event-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

.ze-event-list-info {
    flex: 1;
    min-width: 0;
}

.ze-event-list-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.ze-event-list-title a {
    color: var(--ze-navy);
    text-decoration: none;
}

.ze-event-list-title a:hover {
    text-decoration: underline;
}

.ze-event-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--ze-text-muted);
}

.ze-event-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ze-event-list-meta svg {
    flex-shrink: 0;
}

.ze-event-list-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .ze-event-list-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .ze-event-list-thumb {
        display: none;
    }
    .ze-event-list-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Info Bar */
.ze-event-info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    box-shadow: var(--ze-shadow);
    margin-bottom: 32px;
    overflow: hidden;
}

.ze-event-info-item {
    padding: 20px 24px;
    border-right: 1px solid var(--ze-border);
    text-align: center;
}

.ze-event-info-item:last-child {
    border-right: none;
}

.ze-event-info-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ze-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: block;
}

.ze-event-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ze-navy);
    display: block;
}

.ze-event-info-value a {
    color: var(--ze-navy) !important;
    text-decoration: none;
}

.ze-event-info-value a:hover {
    color: var(--ze-orange) !important;
    text-decoration: underline;
}

/* Content Area */
.ze-event-content {
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    box-shadow: var(--ze-shadow);
    padding: 36px 40px;
    margin-bottom: 32px;
}

.ze-event-content h2,
.ze-event-content h3,
.ze-event-content h4 {
    color: var(--ze-navy);
    margin-top: 28px;
    margin-bottom: 12px;
}

.ze-event-content h2:first-child,
.ze-event-content h3:first-child,
.ze-event-content h4:first-child {
    margin-top: 0;
}

.ze-event-content p {
    color: var(--ze-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.ze-event-content ul,
.ze-event-content ol {
    color: var(--ze-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 24px;
    margin-bottom: 16px;
}

/* Two-Column Layout: Content + Sidebar */
.ze-event-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: flex-start;
}

.ze-event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ze-event-sidebar-card {
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    box-shadow: var(--ze-shadow);
    padding: 24px;
}

.ze-event-sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ze-border);
}

.ze-event-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--ze-text-secondary);
    border-bottom: 1px solid var(--ze-border);
}

.ze-event-detail-row:last-child {
    border-bottom: none;
}

.ze-event-detail-row svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--ze-text-muted);
    margin-top: 1px;
}

.ze-event-detail-row strong {
    color: var(--ze-navy);
    display: block;
    margin-bottom: 2px;
    font-size: 0.82rem;
}

/* Organizer Card */
.ze-organizer-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

.ze-organizer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ze-light-blue);
    color: var(--ze-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.ze-organizer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ze-organizer-avatar--img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ze-organizer-name {
    font-weight: 700;
    color: var(--ze-navy);
    font-size: 0.9rem;
}

.ze-organizer-role {
    font-size: 0.8rem;
    color: var(--ze-text-muted);
}

/* Map / Venue */
.ze-event-map {
    border-radius: var(--ze-radius);
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid var(--ze-border);
}

.ze-event-map iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

/* ============================================================
   Tickets Section
   ============================================================ */

.ze-tickets {
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    box-shadow: var(--ze-shadow);
    padding: 32px 36px;
    margin-bottom: 32px;
}

.ze-tickets-title {
    font-family: var(--ze-font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0 0 6px;
}

.ze-tickets-subtitle {
    font-size: 0.9rem;
    color: var(--ze-text-muted);
    margin: 0 0 24px;
}

/* Ticket Card */
.ze-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.ze-ticket-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--ze-surface);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius);
    transition: border-color var(--ze-transition);
}

.ze-ticket-card:hover {
    border-color: rgba(0, 56, 116, 0.15);
}

.ze-ticket-info {
    flex: 1;
    min-width: 0;
}

.ze-ticket-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0 0 4px;
}

.ze-ticket-description {
    font-size: 0.85rem;
    color: var(--ze-text-secondary);
    margin: 0 0 6px;
    line-height: 1.5;
}

.ze-ticket-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ze-navy-dark);
    font-variant-numeric: tabular-nums;
}

.ze-ticket-price .ze-ticket-fee {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--ze-text-muted);
    margin-left: 4px;
}

.ze-ticket-price.ze-price-free {
    color: #28A745;
}

.ze-ticket-remaining {
    font-size: 0.78rem;
    color: var(--ze-text-muted);
    margin-top: 2px;
}

.ze-ticket-remaining.ze-low-stock {
    color: #E8612D;
    font-weight: 600;
}

/* Quantity Selector */
.ze-ticket-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.ze-qty-btn,
button.ze-qty-btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: var(--ze-white);
    border: 1px solid rgba(10, 37, 64, 0.15);
    color: var(--ze-navy);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ze-transition);
    user-select: none;
}

.ze-qty-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.ze-qty-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.ze-qty-btn:hover {
    background: var(--ze-blue-pale);
    border-color: var(--ze-navy);
}

.ze-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ze-qty-input {
    width: 48px;
    height: 36px;
    text-align: center;
    font-family: var(--ze-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ze-navy);
    border: 1px solid rgba(10, 37, 64, 0.15);
    border-left: none;
    border-right: none;
    outline: none;
    -moz-appearance: textfield;
}

.ze-qty-input::-webkit-inner-spin-button,
.ze-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Sold Out State */
.ze-ticket-card.ze-ticket-sold-out {
    opacity: 0.55;
    pointer-events: none;
    position: relative;
}

.ze-ticket-card.ze-ticket-sold-out::after {
    content: "SOLD OUT";
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #721C24;
    background: #F8D7DA;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Free Ticket */
.ze-ticket-card.ze-ticket-free .ze-ticket-price {
    color: #28A745;
}

/* Ticket Summary / Total */
.ze-tickets-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid var(--ze-border);
    margin-top: 8px;
}

.ze-tickets-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ze-text-secondary);
}

.ze-tickets-total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ze-navy-dark);
    font-variant-numeric: tabular-nums;
}

.ze-tickets-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================================
   Checkout Success / Error
   ============================================================ */

.ze-checkout-result {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    padding: 48px 36px;
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    box-shadow: var(--ze-shadow);
}

.ze-checkout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.ze-checkout-icon-success {
    background: #D4EDDA;
}

.ze-checkout-icon-success svg {
    width: 32px;
    height: 32px;
    fill: #28A745;
}

.ze-checkout-icon-error {
    background: #F8D7DA;
}

.ze-checkout-icon-error svg {
    width: 32px;
    height: 32px;
    fill: #DC3545;
}

.ze-checkout-result h2 {
    font-family: var(--ze-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0 0 10px;
}

.ze-checkout-result p {
    font-size: 0.95rem;
    color: var(--ze-text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}

.ze-checkout-details {
    background: var(--ze-surface);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: left;
}

.ze-checkout-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--ze-text-secondary);
    border-bottom: 1px solid var(--ze-border);
}

.ze-checkout-detail-row:last-child {
    border-bottom: none;
}

.ze-checkout-detail-row strong {
    color: var(--ze-navy);
}

.ze-checkout-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   Event Form — Member Dashboard
   ============================================================ */

.ze-event-form {
    max-width: 780px;
    margin: 40px auto;
}

.ze-event-form .ze-form-card {
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    box-shadow: var(--ze-shadow);
    padding: 36px 40px;
}

.ze-event-form .ze-form-title {
    font-family: var(--ze-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0 0 6px;
}

.ze-event-form .ze-form-subtitle {
    font-size: 0.92rem;
    color: var(--ze-text-secondary);
    margin: 0 0 28px;
}

/* Section Titles */
.ze-form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 28px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--ze-border);
}

.ze-form-section-title:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Form Groups */
.ze-form-group {
    margin-bottom: 20px;
}

.ze-form-group label,
.ze-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ze-navy);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.ze-form-group label .ze-required,
.ze-required {
    color: var(--ze-orange);
    margin-left: 2px;
}

.ze-input,
.ze-select,
.ze-textarea {
    display: block;
    width: 100%;
    font-family: var(--ze-font);
    font-size: 0.925rem;
    color: var(--ze-text-primary);
    background: var(--ze-white);
    border: 1px solid rgba(10, 37, 64, 0.15);
    border-radius: var(--ze-radius);
    padding: 10px 14px;
    transition: border-color var(--ze-transition), box-shadow var(--ze-transition);
    outline: none;
}

.ze-input:focus,
.ze-select:focus,
.ze-textarea:focus {
    border-color: var(--ze-navy);
    box-shadow: 0 0 0 3px rgba(0, 56, 116, 0.12);
}

.ze-input::placeholder,
.ze-textarea::placeholder {
    color: var(--ze-text-muted);
}

.ze-textarea {
    min-height: 100px;
    resize: vertical;
}

.ze-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23516B84' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Form Grid */
.ze-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.ze-form-grid .ze-form-group.ze-full-width {
    grid-column: 1 / -1;
}

/* Date/Time Inputs */
.ze-datetime-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ze-input[type="date"],
.ze-input[type="time"],
.ze-input[type="datetime-local"] {
    font-family: var(--ze-font);
}

/* Venue Fields */
.ze-venue-fields {
    background: var(--ze-surface);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.ze-venue-fields .ze-form-group:last-child {
    margin-bottom: 0;
}

/* Ticket Setup Section */
.ze-ticket-setup {
    margin-bottom: 20px;
}

.ze-ticket-setup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ze-ticket-setup-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 0;
}

.ze-ticket-type-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    background: var(--ze-surface);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius);
    margin-bottom: 10px;
}

.ze-ticket-type-row .ze-form-group {
    margin-bottom: 0;
}

.ze-ticket-type-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    color: #DC3545;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--ze-transition);
    margin-bottom: 0;
}

.ze-ticket-type-remove:hover {
    background: #F8D7DA;
    border-color: #DC3545;
}

.ze-add-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ze-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ze-navy);
    background: none;
    border: 1px dashed rgba(0, 56, 116, 0.25);
    border-radius: var(--ze-radius);
    padding: 10px 18px;
    cursor: pointer;
    transition: all var(--ze-transition);
}

.ze-add-ticket-btn:hover {
    border-color: var(--ze-navy);
    background: var(--ze-blue-pale);
}

/* Image Upload Area */
.ze-image-upload {
    margin-bottom: 20px;
}

.ze-image-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 20px;
    border: 2px dashed rgba(10, 37, 64, 0.15);
    border-radius: var(--ze-radius);
    background: var(--ze-surface);
    cursor: pointer;
    transition: all var(--ze-transition);
    text-align: center;
}

.ze-image-upload-area:hover {
    border-color: var(--ze-navy);
    background: var(--ze-blue-pale);
}

.ze-image-upload-area svg {
    width: 36px;
    height: 36px;
    color: var(--ze-text-muted);
}

.ze-image-upload-text {
    font-size: 0.9rem;
    color: var(--ze-text-secondary);
}

.ze-image-upload-text strong {
    color: var(--ze-navy);
}

.ze-image-upload-hint {
    font-size: 0.78rem;
    color: var(--ze-text-muted);
}

.ze-image-upload-preview {
    position: relative;
    margin-top: 12px;
    display: inline-block;
}

.ze-image-upload-preview img {
    max-width: 200px;
    height: auto;
    border-radius: var(--ze-radius);
    border: 1px solid var(--ze-border);
}

.ze-image-upload-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DC3545;
    color: var(--ze-white);
    border: none;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Form Actions */
.ze-form-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ze-form-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--ze-text-secondary);
}

.ze-form-footer a {
    color: var(--ze-navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--ze-transition);
}

.ze-form-footer a:hover {
    border-bottom-color: var(--ze-navy);
}

/* ============================================================
   Events Empty State
   ============================================================ */

.ze-events-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    box-shadow: var(--ze-shadow);
}

.ze-events-empty svg {
    width: 56px;
    height: 56px;
    fill: var(--ze-text-muted);
    opacity: 0.4;
    margin-bottom: 16px;
}

.ze-events-empty h3 {
    font-family: var(--ze-font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ze-text-secondary);
    margin: 0 0 8px;
}

.ze-events-empty p {
    font-size: 0.92rem;
    color: var(--ze-text-muted);
    margin: 0 0 20px;
}

/* ============================================================
   Pagination
   ============================================================ */

.ze-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
}

.ze-pagination a,
.ze-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ze-text-secondary);
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--ze-transition);
}

.ze-pagination a:hover {
    color: var(--ze-navy);
    border-color: var(--ze-navy);
    background: var(--ze-blue-pale);
}

.ze-pagination .ze-page-current {
    background: var(--ze-navy);
    color: var(--ze-white);
    border-color: var(--ze-navy);
}

/* ============================================================
   Utility Classes
   ============================================================ */

.ze-text-center { text-align: center; }
.ze-text-right  { text-align: right; }
.ze-mt-0  { margin-top: 0; }
.ze-mt-1  { margin-top: 10px; }
.ze-mt-2  { margin-top: 20px; }
.ze-mt-3  { margin-top: 30px; }
.ze-mb-0  { margin-bottom: 0; }
.ze-mb-1  { margin-bottom: 10px; }
.ze-mb-2  { margin-bottom: 20px; }
.ze-mb-3  { margin-bottom: 30px; }
.ze-hidden { display: none !important; }

.ze-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Theme Override — expand content area for event pages
   ============================================================ */

.kw-content-area:has(.ze-wrap),
.kw-content-area:has(.ze-event-single) {
    max-width: 100% !important;
}

.kw-page-content:has(.ze-wrap) .kw-container {
    max-width: 1100px;
}

/* ============================================================
   Responsive — Tablet (768px)
   ============================================================ */

@media (max-width: 1024px) {
    .ze-event-layout {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .ze-events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .ze-events-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .ze-event-single {
        margin: 20px auto;
    }

    .ze-event-single-title {
        font-size: 1.5rem;
    }

    .ze-event-info-bar {
        grid-template-columns: 1fr !important;
    }

    .ze-event-info-item {
        border-right: none;
        border-bottom: 1px solid var(--ze-border);
    }

    .ze-event-info-item:nth-child(odd) {
        border-right: 1px solid var(--ze-border);
    }

    .ze-event-info-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .ze-event-layout {
        grid-template-columns: 1fr;
    }

    .ze-event-content {
        padding: 24px 20px;
    }

    .ze-tickets {
        padding: 24px 20px;
    }

    .ze-ticket-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .ze-ticket-quantity {
        align-self: flex-start;
    }

    .ze-ticket-card.ze-ticket-sold-out::after {
        position: static;
        transform: none;
        display: inline-block;
        align-self: flex-start;
    }

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

    .ze-datetime-group {
        grid-template-columns: 1fr;
    }

    .ze-ticket-type-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ze-event-form .ze-form-card {
        padding: 24px 20px;
    }

    .ze-events-header h2 {
        font-size: 1.4rem;
    }
}

/* ============================================================
   Responsive — Mobile (480px)
   ============================================================ */

@media (max-width: 480px) {
    .ze-events-section {
        margin: 20px auto;
    }

    .ze-event-info-bar {
        grid-template-columns: 1fr !important;
    }

    .ze-event-info-item {
        border-right: none !important;
        border-bottom: 1px solid var(--ze-border);
    }

    .ze-event-info-item:last-child {
        border-bottom: none;
    }

    .ze-checkout-result {
        padding: 32px 20px;
    }

    .ze-tickets-summary {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .ze-tickets-actions {
        justify-content: center;
        width: 100%;
    }

    .ze-tickets-actions .ze-btn {
        width: 100%;
    }

    .ze-event-form {
        margin: 20px auto;
    }
}

/* Theme override — expand content area for events pages */
.kw-content-area:has(.ze-events-grid),
.kw-content-area:has(.ze-event-single),
.kw-content-area:has(.ze-tickets) {
    max-width: 100% !important;
    font-family: var(--ze-font) !important;
}

.kw-page-content:has(.ze-events-grid) .kw-container,
.kw-page-content:has(.ze-event-single) .kw-container {
    max-width: 1200px;
}

/* Payment Result Page */
.ze-payment-result {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.ze-payment-success,
.ze-payment-cancelled {
    text-align: center;
    background: var(--ze-white);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius-lg);
    padding: 40px 36px;
    box-shadow: var(--ze-shadow);
}

.ze-payment-result,
.ze-payment-result *,
.ze-payment-success,
.ze-payment-success *,
.ze-payment-cancelled,
.ze-payment-cancelled * {
    font-family: var(--ze-font) !important;
}

.ze-payment-success h2,
.ze-payment-cancelled h2 {
    color: var(--ze-navy);
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.ze-payment-success h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ze-navy);
}

.ze-payment-success p,
.ze-payment-cancelled p {
    color: var(--ze-text-secondary);
    margin: 0 0 24px;
    font-size: 0.95rem;
}

.ze-order-summary {
    text-align: left;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ze-border);
}

.ze-order-table td,
.ze-order-table th,
.ze-order-table code {
    font-family: var(--ze-font) !important;
}

.ze-order-summary h3 {
    font-family: var(--ze-font) !important;
    font-size: 1rem;
    color: var(--ze-navy);
    margin: 0 0 12px;
}

.ze-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ze-order-table td,
.ze-order-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ze-border);
    text-align: left;
    color: var(--ze-text-secondary);
}

.ze-order-table td:first-child {
    font-weight: 600;
    color: var(--ze-text-primary);
    width: 40%;
}

/* Print styles for ticket confirmation */
@media print {
    body * { visibility: hidden; }
    .ze-payment-result, .ze-payment-result * { visibility: visible; }
    .ze-payment-result { position: absolute; left: 0; top: 0; width: 100%; }
    .ze-payment-success { box-shadow: none; border: none; padding: 20px; }
    .ze-btn { display: none !important; }
    .kw-header, .kw-footer, .kw-page-banner, .kw-topbar { display: none !important; }
}

/* Rich Text Editor */
.ze-richtext-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: var(--ze-surface);
    border: 1px solid rgba(10, 37, 64, 0.15);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
}

.ze-richtext-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--ze-text-secondary);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.15s ease;
    padding: 0 !important;
}

.ze-richtext-toolbar button:hover {
    background: var(--ze-blue-pale);
    color: var(--ze-navy);
}

.ze-toolbar-sep {
    width: 1px;
    height: 20px;
    background: rgba(10, 37, 64, 0.12);
    margin: 0 4px;
}

.ze-richtext-editor {
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
    padding: 14px 16px;
    border: 1px solid rgba(10, 37, 64, 0.15);
    border-radius: 0 0 10px 10px;
    font-family: var(--ze-font) !important;
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--ze-text-primary);
    background: var(--ze-white);
    outline: none;
}

.ze-richtext-editor:focus {
    border-color: var(--ze-navy);
    box-shadow: 0 0 0 3px rgba(0, 56, 116, 0.12);
}

.ze-richtext-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--ze-text-muted);
    pointer-events: none;
}

.ze-richtext-editor h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ze-navy);
    margin: 1rem 0 0.5rem;
}

.ze-richtext-editor ul,
.ze-richtext-editor ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.ze-richtext-editor a {
    color: var(--ze-orange);
    text-decoration: underline;
}

/* ── Recurrence UI ───────────────────────────── */

.ze-recurrence-fields {
    margin-bottom: 8px;
}

#ze-recurrence-options {
    margin-top: 12px;
    padding: 16px;
    background: var(--ze-surface);
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ze-recurrence-interval-row div {
    margin-top: 4px;
}

.ze-day-checkboxes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.ze-day-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid var(--ze-border);
    border-radius: var(--ze-radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.ze-day-checkboxes label:has(input:checked) {
    background: var(--ze-navy);
    color: #fff;
    border-color: var(--ze-navy);
}

.ze-day-checkboxes input {
    display: none;
}

.ze-monthly-mode-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.ze-monthly-mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.ze-recurrence-end-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.ze-recurrence-end-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    flex-wrap: wrap;
}

.ze-recurrence-end-options input[type="number"],
.ze-recurrence-end-options input[type="date"] {
    margin: 0;
}

.ze-badge-recurring {
    background: #e8f4fd;
    color: var(--ze-navy);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
