/* EventEule Elementor Widgets Styles - Updated: 2026-03-29 */

/* Icon wrapper */
.eventeule-date-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Font icons */
.eventeule-date-icon i {
    font-size: 16px;
    line-height: 1;
}

/* SVG icons */
.eventeule-date-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Date wrapper */
.eventeule-start-date-wrapper,
.eventeule-end-date-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Event title */
.eventeule-event-title {
    margin: 0;
}

.eventeule-event-title a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.eventeule-event-title a:hover {
    opacity: 0.7;
}

/* Empty state */
.eventeule-no-date {
    opacity: 0.5;
    font-style: italic;
}

/* Date Box Widget */
.eventeule-date-box-wrapper {
    display: inline-block;
}

.eventeule-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.eventeule-date-day,
.eventeule-date-month {
    display: block;
    text-align: center;
    line-height: 1;
}

.eventeule-date-day {
    font-weight: bold;
}

.eventeule-date-month {
    text-transform: uppercase;
}

/* Event List Widget */
.eventeule-event-list {
    display: grid;
    width: 100%;
}

.eventeule-event-item {
    display: flex;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Vertical Layout (Card Style) */
.eventeule-layout-vertical .eventeule-event-item {
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

/* Horizontal Layout */
.eventeule-layout-horizontal .eventeule-event-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.eventeule-layout-horizontal .eventeule-event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.eventeule-layout-vertical .eventeule-event-date-box-wrapper {
    flex-shrink: 0;
}

.eventeule-layout-vertical .eventeule-event-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* Horizontal Layout (Date + Content) */
.eventeule-layout-horizontal .eventeule-event-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
}

.eventeule-layout-horizontal .eventeule-event-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    order: 1;
}

.eventeule-layout-horizontal .eventeule-event-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    order: 1;
    border-radius: 12px;
    overflow: hidden;
}

.eventeule-layout-horizontal .eventeule-event-content {
    flex: 1;
    min-width: 0;
    order: 2;
}

/* Date box at the right side */
.eventeule-layout-horizontal .eventeule-event-date-box-wrapper.eventeule-horizontal-date {
    flex-shrink: 0;
    align-self: flex-start;
    order: 2;
    margin-left: auto;
}

.eventeule-layout-vertical .eventeule-event-item:hover {
    transform: translateY(-5px);
}

.eventeule-layout-horizontal .eventeule-event-item:hover {
    transform: translateY(-2px);
}

/* Date Box - Modern Design */
.eventeule-event-date-box-wrapper {
    flex-shrink: 0;
}

.eventeule-event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
}

/* Horizontal layout date box styles */
.eventeule-layout-horizontal .eventeule-event-date-box-wrapper.eventeule-horizontal-date {
    margin-top: 5px;
    width: 110px;
    height: 110px;
}

.eventeule-layout-horizontal .eventeule-event-date-box {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    height: 100%;
}

.eventeule-layout-horizontal .eventeule-event-date-day {
    font-size: 38px;
    font-weight: 700;
}

.eventeule-layout-horizontal .eventeule-event-date-month {
    font-size: 14px;
    font-weight: 600;
}

/* Date Box Overlay Style */
.eventeule-event-date-box-wrapper.eventeule-date-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    pointer-events: none;
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.eventeule-date-overlay .eventeule-event-date-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Add hover effect for overlay date box */
.eventeule-event-item:hover .eventeule-date-overlay .eventeule-event-date-box {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.eventeule-event-date-day,
.eventeule-event-date-month {
    display: block;
    text-align: center;
    line-height: 1.2;
}

.eventeule-event-date-day {
    font-weight: bold;
    margin-bottom: 2px;
}

.eventeule-event-date-month {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-size: 0.85em;
}

/* Content Wrapper - Allows flexible layout */
.eventeule-event-content-wrapper {
    min-width: 0; /* Allow content to shrink */
}

.eventeule-layout-vertical .eventeule-event-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eventeule-event-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.eventeule-layout-vertical .eventeule-event-image {
    width: 100%;
    height: auto;
}

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

.eventeule-event-item:hover .eventeule-event-image img {
    transform: scale(1.05);
}

.eventeule-event-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.eventeule-event-title {
    margin: 0;
    line-height: 1.3;
    font-size: 26px;
    font-weight: 600;
}

.eventeule-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.eventeule-event-title a:hover {
    opacity: 0.8;
}

.eventeule-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
}

.eventeule-event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eventeule-event-meta .eventeule-meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
}

.eventeule-event-meta .eventeule-meta-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Meta icon SVGs using data URIs */
.eventeule-event-location .eventeule-meta-icon::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ef4444"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.eventeule-event-date .eventeule-meta-icon::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233b82f6"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"/></svg>');
}

.eventeule-event-time .eventeule-meta-icon::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238b5cf6"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>');
}

.eventeule-event-price .eventeule-meta-icon::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2310b981"><path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"/></svg>');
}

.eventeule-event-meta svg,
.eventeule-event-meta .dashicons {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Meta icon colors - kept for backwards compatibility */
.eventeule-event-location {
    color: #ef4444;
}

.eventeule-event-date {
    color: #3b82f6;
}

.eventeule-event-time {
    color: #8b5cf6;
}

.eventeule-event-price {
    color: #10b981;
}

.eventeule-event-excerpt {
    line-height: 1.6;
    color: #6b7280;
    font-size: 15px;
}

.eventeule-event-read-more {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    align-self: flex-start;
    padding: 10px 24px;
    border: 2px solid #6366f1;
    border-radius: 6px;
    color: #6366f1;
    font-weight: 500;
    font-size: 15px;
    background: transparent;
    margin-top: auto;
}

.eventeule-event-read-more:hover {
    text-decoration: none;
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.eventeule-event-excerpt {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* ─── Status-Badges (analog category badge style) ─── */
.eventeule-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    align-self: flex-start;
}

.eventeule-status-badge--today {
    background: #3b82f6;
    color: #fff;
}

.eventeule-status-badge--now {
    background: #10b981;
    color: #fff;
}

.eventeule-status-badge--soon {
    background: #f59e0b;
    color: #fff;
}

.eventeule-status-badge--cancelled {
    background: #ef4444;
    color: #fff;
}

/* ─── Cancelled card state ─── */
.eventeule-event-card--cancelled {
    opacity: .7;
    border-color: #fca5a5 !important;
}

.eventeule-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .eventeule-event-item {
        flex-direction: column !important;
    }
    
    .eventeule-layout-horizontal .eventeule-event-content-wrapper {
        flex-direction: column !important;
    }
    
    .eventeule-layout-horizontal .eventeule-event-image {
        width: 100% !important;
        height: 200px !important;
    }
    
    .eventeule-event-date-box-wrapper {
        align-self: flex-start;
    }
}

/* Additional styling improvements */
.eventeule-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eventeule-event-item {
    background: #fff;
    overflow: hidden;
}

/* Hover effects */
.eventeule-event-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Better spacing for horizontal layout */
.eventeule-layout-horizontal .eventeule-event-title {
    margin-top: 0;
}

/* ======================================= */
/* Event List Card Widget */
/* ======================================= */

.eventeule-event-list-card {
    display: grid;
    width: 100%;
}

.eventeule-event-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.eventeule-event-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Card Image */
.eventeule-event-card-image {
    flex-shrink: 0;
    overflow: hidden;
}

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

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

/* Card Content */
.eventeule-event-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Category Badge */
.eventeule-event-category {
    display: inline-block;
    padding: 4px 12px;
    background: #6366f1;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

/* Card Title */
.eventeule-event-card-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.eventeule-event-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.eventeule-event-card-title a:hover {
    color: #6366f1;
}

/* Card Meta */
.eventeule-event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.eventeule-event-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eventeule-event-card-meta svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.eventeule-meta-location {
    color: #ef4444;
}

.eventeule-meta-date {
    color: #3b82f6;
}

.eventeule-meta-time {
    color: #8b5cf6;
}

.eventeule-meta-price {
    color: #10b981;
    font-weight: 600;
}

/* Card Footer */
.eventeule-event-card-footer {
    margin-top: auto;
}

.eventeule-event-card-button {
    display: inline-block;
    padding: 12px 28px;
    background: #6366f1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.eventeule-event-card-button:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.eventeule-event-card-link {
    display: inline-block;
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.eventeule-event-card-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* No Events Message */
.eventeule-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 16px;
    font-style: italic;
}

/* Responsive - Card Layout */
@media (max-width: 768px) {
    .eventeule-event-card {
        flex-direction: column;
    }
    
    .eventeule-event-card-image {
        width: 100% !important;
        height: 200px !important;
    }
    
    .eventeule-event-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ======================================= */
/* Responsive Visibility Classes */
/* ======================================= */

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
    .eventeule-hide-desktop {
        display: none !important;
    }
}

/* Tablet (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .eventeule-hide-tablet {
        display: none !important;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .eventeule-hide-mobile {
        display: none !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Registration Popup Widget
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Trigger button ────────────────────────────────────────────────────────── */
.ee-reg-popup-trigger-wrap {
    display: block;
}

.ee-reg-popup-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    border: 2px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s,
                transform 0.12s, box-shadow 0.18s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
}

.ee-reg-popup-trigger:focus {
    outline: none;
}
.ee-reg-popup-trigger:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 2px;
}
/* Higher specificity to override theme button styles (e.g. .wrapper button { border: ... }) */
.ee-reg-popup-wrap .ee-reg-popup-trigger {
    border: 2px solid transparent;
}
.ee-reg-popup-wrap .ee-reg-popup-trigger--primary   { border-color: #6366f1; }
.ee-reg-popup-wrap .ee-reg-popup-trigger--secondary { border-color: #8b5cf6; }
.ee-reg-popup-wrap .ee-reg-popup-trigger--outline   { border-color: #6366f1; }

/* Size variants */
.ee-reg-popup-trigger--sm { padding: 8px 18px;  font-size: 13px; border-radius: 6px; }
.ee-reg-popup-trigger--md { padding: 12px 28px; font-size: 15px; border-radius: 8px; }
.ee-reg-popup-trigger--lg { padding: 16px 36px; font-size: 17px; border-radius: 10px; }

/* Type: primary */
.ee-reg-popup-trigger--primary {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
.ee-reg-popup-trigger--primary:hover:not(:disabled) {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Type: secondary */
.ee-reg-popup-trigger--secondary {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}
.ee-reg-popup-trigger--secondary:hover:not(:disabled) {
    background: #7c3aed;
    border-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Type: outline */
.ee-reg-popup-trigger--outline {
    background: transparent;
    color: #6366f1;
    border-color: #6366f1;
}
.ee-reg-popup-trigger--outline:hover:not(:disabled) {
    background: #6366f1;
    color: #fff;
    transform: translateY(-1px);
}

/* Disabled state */
.ee-reg-popup-trigger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Spots indicator below button */
.ee-reg-popup-spots {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}
.ee-reg-popup-spots--full {
    color: #dc2626;
    font-weight: 600;
}
.ee-reg-popup-closed {
    display: inline-block;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* ── Editor preview: show popup inline so all controls are live-editable ─── */
.ee-reg-popup-overlay.ee-reg-popup-overlay--editor {
    position: relative !important;
    inset: auto !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-top: 12px;
}

.ee-reg-popup-overlay.ee-reg-popup-overlay--editor .ee-reg-popup-dialog {
    transform: none !important;
    max-height: none !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

/* ── Overlay ────────────────────────────────────────────────────────────────── */
.ee-reg-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.ee-reg-popup-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Dialog card ────────────────────────────────────────────────────────────── */
.ee-reg-popup-dialog {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.25s ease;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.ee-reg-popup-overlay.is-open .ee-reg-popup-dialog {
    transform: scale(1) translateY(0);
}

/* ── Dialog header ──────────────────────────────────────────────────────────── */
.ee-reg-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.ee-reg-popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.ee-reg-popup-title .dashicons {
    color: #6366f1;
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.ee-reg-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ee-reg-popup-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ── Event info row ─────────────────────────────────────────────────────────── */
.ee-reg-popup-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #4b5563;
}

.ee-reg-popup-event-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.ee-reg-popup-event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ee-reg-popup-event-meta svg {
    flex-shrink: 0;
    color: #6366f1;
    opacity: 0.8;
}

/* ── Capacity indicator ─────────────────────────────────────────────────────── */
.ee-reg-popup-capacity {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
    border-bottom: 1px solid #bae6fd;
}

.ee-reg-popup-capacity--warning {
    color: #92400e;
    background: #fef3c7;
    border-bottom-color: #fde68a;
}

.ee-reg-popup-capacity--full {
    color: #991b1b;
    background: #fee2e2;
    border-bottom-color: #fca5a5;
}

/* ── Body / Form ─────────────────────────────────────────────────────────────── */
.ee-reg-popup-body {
    padding: 20px 24px 28px;
}

/* Strip the inline-page form container styles inside the popup */
.ee-reg-popup-body .eventeule-registration {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

/* The popup header already shows the title */
.ee-reg-popup-body .eventeule-registration__title {
    display: none;
}

/* Capacity shown in the capacity bar above */
.ee-reg-popup-body .eventeule-registration__counter {
    display: none;
}

/* ── Editor placeholder ─────────────────────────────────────────────────────── */
.ee-reg-popup-notice {
    padding: 12px 16px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
}

/* ── Body scroll-lock when popup is open ────────────────────────────────────── */
body.ee-popup-open {
    overflow: hidden;
}

/* ── Responsive: bottom-sheet on mobile ─────────────────────────────────────── */
@media (max-width: 600px) {
    .ee-reg-popup-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .ee-reg-popup-dialog {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 93vh;
        transform: translateY(24px);
    }

    .ee-reg-popup-overlay.is-open .ee-reg-popup-dialog {
        transform: translateY(0);
    }

    .ee-reg-popup-header {
        border-radius: 20px 20px 0 0;
        padding: 16px 20px 14px;
    }

    .ee-reg-popup-event-meta,
    .ee-reg-popup-capacity {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ee-reg-popup-body {
        padding: 16px 20px 32px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Capacity Widget  (.ee-capacity)
   ───────────────────────────────────────────────────────────────────────────── */

.ee-capacity {
    font-size: 14px;
    color: #1f2937;
}

.ee-capacity__label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* ── Numbers / header row ──────────────────────────────────────────────────── */
.ee-capacity__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.ee-capacity__numbers {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* ── Progress bar ──────────────────────────────────────────────────────────── */
.ee-capacity__track {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.ee-capacity__fill {
    height: 100%;
    border-radius: 99px;
    background-color: #6366f1;
    transition: width 0.4s ease;
}

/* ── Text variant ──────────────────────────────────────────────────────────── */
.ee-capacity__text {
    font-size: 14px;
    font-weight: 600;
}

.ee-capacity--full .ee-capacity__text {
    color: #dc2626;
}

.ee-capacity--warning .ee-capacity__text {
    color: #d97706;
}

/* ── Unlimited ─────────────────────────────────────────────────────────────── */
.ee-capacity__unlimited {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* ── Badge variant ─────────────────────────────────────────────────────────── */
.ee-capacity__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ee-capacity__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.ee-capacity__badge--available {
    background: #dbeafe;
    color: #1d4ed8;
}

.ee-capacity--warning .ee-capacity__badge--available {
    background: #fef3c7;
    color: #92400e;
}

.ee-capacity__badge--full {
    background: #fee2e2;
    color: #991b1b;
}

.ee-capacity__badge--total {
    background: #f3f4f6;
    color: #6b7280;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Status Widget  (.ee-status-badge)
   ───────────────────────────────────────────────────────────────────────────── */

.ee-status-badge-wrap {
    display: flex; /* overridden by Elementor align selector */
}

.ee-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.5;
}

/* ── Filled (default) ─────────────────────────────────────── */
.ee-status-badge--now       { background: #10b981; color: #fff; }
.ee-status-badge--today     { background: #3b82f6; color: #fff; }
.ee-status-badge--soon      { background: #f59e0b; color: #fff; }
.ee-status-badge--cancelled { background: #ef4444; color: #fff; }
.ee-status-badge--past      { background: #9ca3af; color: #fff; }

/* ── Outline variant ──────────────────────────────────────── */
.ee-status-badge.is-outline {
    background: transparent !important;
    border: 2px solid currentColor;
}
.ee-status-badge--now.is-outline       { color: #10b981; border-color: #10b981; }
.ee-status-badge--today.is-outline     { color: #3b82f6; border-color: #3b82f6; }
.ee-status-badge--soon.is-outline      { color: #d97706; border-color: #d97706; }
.ee-status-badge--cancelled.is-outline { color: #ef4444; border-color: #ef4444; }
.ee-status-badge--past.is-outline      { color: #9ca3af; border-color: #9ca3af; }

/* ── Pill preset ──────────────────────────────────────────── */
.ee-status-badge--preset-pill {
    border-radius: 9999px;
    padding: 4px 14px;
}

/* ── Tag preset (sharp corners, small) ───────────────────── */
.ee-status-badge--preset-tag {
    border-radius: 3px;
    font-size: 11px;
    padding: 3px 8px;
    letter-spacing: 0.7px;
}

/* ── Plain text preset ────────────────────────────────────── */
.ee-status-badge--preset-plain {
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}
.ee-status-badge--now.ee-status-badge--preset-plain       { color: #059669; }
.ee-status-badge--today.ee-status-badge--preset-plain     { color: #2563eb; }
.ee-status-badge--soon.ee-status-badge--preset-plain      { color: #d97706; }
.ee-status-badge--cancelled.ee-status-badge--preset-plain { color: #dc2626; }
.ee-status-badge--past.ee-status-badge--preset-plain      { color: #6b7280; }

/* ==========================================================================
   Metadata Widgets (Time, Location, Price, ShortDesc, Note, Category, RegUrl)
   ========================================================================== */

/* ── Shared inline-meta base ── */
.ee-event-time,
.ee-event-location,
.ee-event-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ee-event-time__icon,
.ee-event-location__icon,
.ee-event-price__icon {
    flex-shrink: 0;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
}

/* ── Short description ── */
.ee-event-short-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Note ── */
.ee-event-note {
    font-size: 0.9rem;
    line-height: 1.6;
}

.ee-event-note__header {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ee-event-note__icon {
    flex-shrink: 0;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
}

/* ── Category ── */
.ee-event-category {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.ee-event-category a {
    text-decoration: none;
    color: inherit;
}

.ee-event-category a:hover {
    text-decoration: underline;
}

.ee-event-category__badge {
    display: inline-block;
    padding: 3px 10px;
    background: #ede9fe;
    color: #6d28d9;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ── Registration URL Button ── */
.ee-event-regurl-wrap {
    display: block;
}

.ee-event-regurl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    background: #6366f1;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.12s;
}

.ee-event-regurl-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    text-decoration: none;
}

.ee-event-regurl-link {
    color: #6366f1;
    text-decoration: underline;
    font-weight: 500;
}

.ee-event-regurl-link:hover {
    color: #4f46e5;
}
