/* ==========================================================================
   TIS Events — Public Styles
   ========================================================================== */

/* Body lock when overlay is open */
body.tis-overlay-open {
    overflow: hidden !important;
}

/* ==========================================================================
   Events Listing Grid
   ========================================================================== */
.tis-events-listing {
    margin: 20px 0;
}

.tis-events-grid {
    display: grid;
    gap: 25px;
}

.tis-events-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tis-events-listing[data-columns="1"] .tis-events-grid { grid-template-columns: 1fr; }
.tis-events-listing[data-columns="2"] .tis-events-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tis-events-listing[data-columns="3"] .tis-events-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tis-events-listing[data-columns="4"] .tis-events-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tis-events-listing[data-columns="5"] .tis-events-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tis-events-listing[data-columns="6"] .tis-events-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.tis-events-list .tis-events-grid { grid-template-columns: 1fr; }

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

@media (min-width: 769px) and (max-width: 1024px) {
    .tis-events-listing[data-columns="3"] .tis-events-grid,
    .tis-events-listing[data-columns="4"] .tis-events-grid,
    .tis-events-listing[data-columns="5"] .tis-events-grid,
    .tis-events-listing[data-columns="6"] .tis-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Event Card (Listing)
   ========================================================================== */
.tis-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tis-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tis-event-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.tis-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.tis-event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tis-badge-online { background: #007bff; color: #fff; }
.tis-badge-hybrid { background: #6f42c1; color: #fff; }

.tis-event-content { padding: 20px; }

/* Date & Location Badges Row */
.tis-event-meta-badges {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tis-event-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    line-height: 1.2;
    flex-shrink: 0;
}

.tis-date-day { font-size: 24px; font-weight: 700; color: #333; }
.tis-date-month { font-size: 13px; font-weight: 600; text-transform: uppercase; color: #e74c3c; }
.tis-date-year { font-size: 11px; color: #999; }

.tis-event-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #555;
    line-height: 1.3;
    min-width: 0;
}

.tis-event-location-badge .dashicons {
    font-size: 16px; width: 16px; height: 16px; color: #999; flex-shrink: 0;
}

.tis-location-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tis-event-title { margin: 0 0 14px; font-size: 18px; line-height: 1.4; }
.tis-event-title a { color: #333; text-decoration: none !important; }
.tis-event-title a:hover { color: #2563eb; }

.tis-event-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.tis-event-btn:hover { background: #1d4ed8; color: #fff !important; }

.tis-events-pagination { margin: 30px 0; text-align: center; }

.tis-events-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.tis-events-pagination .page-numbers.current {
    background: #0073aa; color: #fff; border-color: #0073aa;
}

.tis-no-events { text-align: center; padding: 40px; color: #666; font-size: 16px; }

.tis-events-list .tis-event-card { display: flex; flex-direction: row; }
.tis-events-list .tis-event-image { width: 250px; flex-shrink: 0; aspect-ratio: auto; }
.tis-events-list .tis-event-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ==========================================================================
   Single Event Page — Two-Column Layout
   ========================================================================== */
.tis-single-event-page {
    padding: 40px 0 60px;
    background: #f5f6fa;
}

.tis-single-event-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Image */
.tis-single-event-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 36px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tis-single-event-hero img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

.tis-hero-cats {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tis-hero-cat {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

/* Two-Column Grid */
.tis-single-event-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: start;
}

.tis-event-main-col {
    min-width: 0;
}

/* Status Banners */
.tis-event-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.tis-event-status-banner .dashicons {
    font-size: 18px; width: 18px; height: 18px;
}

.tis-event-status-past {
    background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}

.tis-event-status-ongoing {
    background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}

/* Event Title */
.tis-single-event-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.3;
    margin: 0 0 16px;
}

/* Date Bar */
.tis-single-event-date-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
    margin-bottom: 24px;
    font-size: 15px;
    color: #4a5568;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tis-single-event-date-bar .dashicons {
    color: #0073aa; font-size: 20px; width: 20px; height: 20px;
}

/* Event Content */
.tis-single-event-content {
    background: #fff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.tis-single-event-content p { margin-bottom: 16px; }
.tis-single-event-content img { max-width: 100%; height: auto; border-radius: 8px; }

.tis-single-event-content h2,
.tis-single-event-content h3,
.tis-single-event-content h4 {
    color: #1a202c;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* ==========================================================================
   RIGHT COLUMN: Sidebar
   ========================================================================== */
.tis-event-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sidebar Cards */
.tis-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 14px;
}

.tis-sidebar-card-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 10px;
}

.tis-sidebar-card-icon .dashicons {
    font-size: 20px; width: 20px; height: 20px; color: #2563eb;
}

.tis-sidebar-card-body {
    flex: 1;
    min-width: 0;
}

.tis-sidebar-card-body h3 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
}

.tis-sidebar-date-start { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: #1f2937; }
.tis-sidebar-time { margin: 0 0 2px; font-size: 14px; color: #6b7280; }
.tis-sidebar-date-end { margin: 4px 0 0; font-size: 13px; color: #9ca3af; }

.tis-sidebar-venue-name { margin: 0 0 4px; font-size: 15px; color: #1f2937; }
.tis-sidebar-venue-address { margin: 0 0 8px; font-size: 14px; color: #6b7280; line-height: 1.5; }

.tis-sidebar-venue-map a,
.tis-sidebar-venue-online a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.tis-sidebar-venue-map a:hover,
.tis-sidebar-venue-online a:hover { text-decoration: underline; }

.tis-sidebar-venue-map .dashicons,
.tis-sidebar-venue-online .dashicons { font-size: 14px; width: 14px; height: 14px; }

.tis-sidebar-venue-map,
.tis-sidebar-venue-online { margin: 6px 0; }

.tis-sidebar-venue-type {
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tis-sidebar-organizer-name { margin: 0 0 6px; font-size: 15px; color: #1f2937; }

.tis-sidebar-organizer-phone,
.tis-sidebar-organizer-email {
    margin: 4px 0;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tis-sidebar-organizer-phone .dashicons,
.tis-sidebar-organizer-email .dashicons { font-size: 14px; width: 14px; height: 14px; color: #9ca3af; }

.tis-sidebar-organizer-phone a,
.tis-sidebar-organizer-email a { color: #2563eb; text-decoration: none; }

.tis-sidebar-organizer-phone a:hover,
.tis-sidebar-organizer-email a:hover { text-decoration: underline; }

/* ==========================================================================
   Registration Section (in sidebar)
   ========================================================================== */
.tis-registration-section {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid #2563eb;
    position: sticky;
    top: 40px;
}

/* ==========================================================================
   Ticket Cards
   ========================================================================== */
.tis-ticket-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tis-ticket-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tis-ticket-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tis-ticket-card.tis-sold-out { opacity: 0.5; background: #f3f4f6; }

.tis-ticket-card.tis-ticket-login-required {
    background: #fffbeb;
    border-color: #fbbf24;
}

.tis-ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.tis-tc-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.tis-tc-price { flex-shrink: 0; }
.tis-tc-amount { font-size: 17px; font-weight: 700; color: #1f2937; }
.tis-tc-free { font-size: 15px; font-weight: 700; color: #16a34a; }

.tis-tc-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.tis-ticket-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.tis-tc-remaining { font-size: 12px; color: #9ca3af; }

.tis-tc-soldout {
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* +/- Quantity Control */
.tis-qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.tis-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.tis-qty-btn:hover { background: #eff6ff; color: #2563eb; }
.tis-qty-btn:active { background: #dbeafe; }

.tis-ticket-qty-input {
    width: 40px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    background: #fff;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

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

/* Step Total */
.tis-step-total {
    padding: 14px 16px;
    margin-top: 16px;
    background: #eff6ff;
    border-radius: 8px;
    text-align: right;
    font-size: 16px;
    color: #1e40af;
}

/* Login to Register */
.tis-login-to-book-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fbbf24;
    color: #1f2937;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
    white-space: nowrap;
}

.tis-login-to-book-btn:hover { background: #f59e0b; color: #1f2937; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.tis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    line-height: 1.4;
}

.tis-btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.tis-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.tis-btn-primary:disabled {
    background: #d1d5db;
    border-color: #d1d5db;
    color: #fff;
    cursor: not-allowed;
}

.tis-btn-outline {
    background: transparent;
    color: #4b5563;
    border-color: #d1d5db;
}

.tis-btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

.tis-btn-block {
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    font-size: 16px;
}

/* ==========================================================================
   Booking Overlay (Full-page modal for Steps 2/3)
   ========================================================================== */
.tis-booking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tis-booking-overlay.tis-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.tis-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tis-overlay-panel {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 94%;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.tis-overlay-visible .tis-overlay-panel {
    transform: translateY(0);
}

/* Overlay Header */
.tis-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 2;
}

.tis-overlay-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.tis-overlay-event-name {
    margin: 2px 0 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.tis-overlay-close {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.tis-overlay-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Overlay Step Indicator */
.tis-overlay-steps {
    padding: 16px 28px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tis-overlay-steps .tis-steps-bar {
    margin-bottom: 0;
    padding: 0;
}

/* Overlay Body */
.tis-overlay-body {
    padding: 28px;
}

/* ==========================================================================
   Step Indicator Bar
   ========================================================================== */
.tis-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0;
}

.tis-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.tis-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.tis-step-label {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.3s;
    white-space: nowrap;
}

.tis-step-item.active .tis-step-num {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.tis-step-item.active .tis-step-label { color: #2563eb; }

.tis-step-item.completed .tis-step-num {
    background: #16a34a;
    color: #fff;
}

.tis-step-item.completed .tis-step-label { color: #16a34a; }

.tis-step-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 12px;
    max-width: 60px;
    border-radius: 2px;
}

/* Step Panels */
.tis-step-panel {
    display: none;
}

.tis-step-panel.active {
    display: block;
    animation: tisFadeIn 0.25s ease;
}

@keyframes tisFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tis-step-info {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 24px;
}

.tis-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* ==========================================================================
   Step 2 — Attendee Cards (inside overlay — full width)
   ========================================================================== */
.tis-attendee-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.tis-attendee-card-header {
    background: #f9fafb;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tis-attendee-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.tis-attendee-ticket {
    font-weight: 400;
    color: #6b7280;
    font-size: 14px;
}

.tis-attendee-card-body {
    padding: 20px;
}

/* ==========================================================================
   Form Fields (Shared)
   ========================================================================== */
.tis-form-group {
    margin-bottom: 16px;
}

.tis-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.tis-form-group .required { color: #dc2626; }

.tis-form-group input[type="text"],
.tis-form-group input[type="email"],
.tis-form-group input[type="tel"],
.tis-form-group input[type="number"],
.tis-form-group input[type="date"],
.tis-form-group textarea,
.tis-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.tis-form-group input:focus,
.tis-form-group textarea:focus,
.tis-form-group select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tis-field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.tis-radio-group,
.tis-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tis-radio-label,
.tis-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
}

/* ==========================================================================
   Step 3 — Order Summary & Payment
   ========================================================================== */
.tis-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
}

.tis-summary-table th,
.tis-summary-table td {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

.tis-summary-table thead { background: #f9fafb; }

.tis-summary-table thead th {
    font-weight: 700;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tis-summary-table tfoot { background: #eff6ff; font-weight: 700; }
.tis-summary-table tfoot td { font-size: 16px; color: #1e40af; }

.tis-payment-methods { margin: 24px 0; }

.tis-payment-methods h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.tis-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
    color: #374151;
}

.tis-payment-option:hover { border-color: #2563eb; background: #eff6ff; }

.tis-payment-option input:checked ~ span { font-weight: 700; color: #2563eb; }

/* ==========================================================================
   Status Messages
   ========================================================================== */
.tis-booking-success {
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
    margin: 12px 0;
    font-size: 14px;
}

.tis-booking-error {
    padding: 16px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    margin: 12px 0;
    font-size: 14px;
}

.tis-booking-closed,
.tis-login-required {
    padding: 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #92400e;
    margin: 12px 0;
    text-align: center;
    font-size: 14px;
}

.tis-login-required a { color: #2563eb; font-weight: 600; }

/* ==========================================================================
   Single Event — Detail Cards (fallback for non-template view)
   ========================================================================== */
.tis-single-event-details { margin: 30px 0; }

.tis-status-past-banner { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.tis-status-ongoing-banner { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.tis-detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tis-detail-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.tis-detail-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }

.tis-detail-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 12px;
}

.tis-detail-card-icon .dashicons { font-size: 24px; width: 24px; height: 24px; color: #2563eb; }

.tis-detail-card-body h4 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
}

.tis-detail-primary { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: #1f2937; line-height: 1.4; }
.tis-detail-secondary { margin: 0 0 2px; font-size: 14px; color: #6b7280; line-height: 1.4; }
.tis-detail-secondary .dashicons { font-size: 14px; width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; color: #9ca3af; }

.tis-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.tis-detail-link:hover { text-decoration: underline; }
.tis-detail-link .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* ==========================================================================
   Thank You Page
   ========================================================================== */
.tis-thankyou-page { max-width: 640px; margin: 30px auto; }

.tis-thankyou-header { text-align: center; margin-bottom: 30px; }

.tis-success-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 12px;
}

.tis-thankyou-header h2 { margin: 10px 0 5px; color: #16a34a; font-size: 26px; }
.tis-thankyou-header p { color: #6b7280; font-size: 15px; }

.tis-booking-details-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tis-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
}

.tis-detail-row:last-child { border-bottom: none; }
.tis-label { color: #6b7280; font-weight: 600; }
.tis-value { color: #1f2937; }

.tis-items-table { width: 100%; border-collapse: collapse; margin: 16px 0; }

.tis-items-table th,
.tis-items-table td { padding: 10px 12px; border: 1px solid #e5e7eb; text-align: left; }

.tis-items-table thead { background: #f9fafb; }
.tis-items-table tfoot { font-weight: 700; background: #eff6ff; }

.tis-booking-qr { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e5e7eb; }

.tis-qr-image img {
    max-width: 200px;
    border: 8px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.tis-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tis-status-confirmed { background: #f0fdf4; color: #166534; }
.tis-status-pending { background: #fffbeb; color: #92400e; }
.tis-status-cancelled { background: #fef2f2; color: #991b1b; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .tis-events-list .tis-event-card { flex-direction: column; }
    .tis-events-list .tis-event-image { width: 100%; aspect-ratio: 16/9; }

    .tis-detail-cards { grid-template-columns: 1fr; }

    .tis-single-event-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tis-registration-section {
        position: static;
    }

    .tis-single-event-hero {
        margin: 0 12px 24px;
        border-radius: 12px;
    }

    .tis-single-event-container { padding: 0 16px !important; }
    .tis-single-event-title { font-size: 24px !important; }

    .tis-single-event-date-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .tis-single-event-content { padding: 20px; }

    .tis-ticket-cards { gap: 10px; }

    .tis-step-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .tis-step-nav .tis-btn {
        width: 100%;
        justify-content: center;
    }

    .tis-overlay-panel {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .tis-overlay-header {
        border-radius: 0;
        padding: 16px 20px 12px;
    }

    .tis-overlay-body { padding: 20px; }
    .tis-overlay-steps { padding: 12px 20px; }

    .tis-summary-table th:nth-child(3),
    .tis-summary-table td:nth-child(3) { display: none; }

    .tis-booking-details-card { padding: 20px 16px; }
    .tis-detail-row { flex-direction: column; gap: 4px; }

    .tis-step-label { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tis-single-event-layout {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }

    .tis-single-event-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .tis-single-event-hero {
        margin: 0 20px 32px;
    }
}

/* ==========================================================================
   Elementor / Page Builder Compatibility
   ========================================================================== */
.elementor-widget-container .tis-events-listing,
.elementor-element .tis-events-listing,
.e-con .tis-events-listing,
.elementor-section .tis-events-listing {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.elementor-widget-container .tis-events-grid,
.elementor-element .tis-events-grid,
.e-con .tis-events-grid,
.elementor-section .tis-events-grid {
    width: 100% !important;
}

.elementor-widget-container .tis-event-card,
.elementor-element .tis-event-card {
    min-width: 0;
    max-width: 100%;
}
