.ep-events-app {
    --ep-charcoal: #3B3935;
    --ep-turquoise: #00BFB3;
    --ep-border: rgba(59, 57, 53, 0.14);
    --ep-muted: rgba(59, 57, 53, 0.72);
    color: var(--ep-charcoal);
    margin: 18px 0 32px;
}

.ep-events-shell {
    background: #ffffff;
    border: 1px solid var(--ep-border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(59, 57, 53, 0.08);
    overflow: hidden;
}

.ep-events-toolbar,
.ep-events-pager-bar {
    align-items: center;
    background: rgba(0, 191, 179, 0.055);
    border-bottom: 1px solid rgba(59, 57, 53, 0.1);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 20px;
}

.ep-events-pager-bar {
    border-bottom: 0;
    border-top: 1px solid rgba(59, 57, 53, 0.1);
    justify-content: flex-end;
}

.ep-events-tabs,
.ep-events-calendar-tabs,
.ep-events-pager,
.ep-event-actions,
.ep-share-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-events-tab,
.ep-events-page-button {
    background: #ffffff;
    border: 1px solid rgba(59, 57, 53, 0.2);
    border-radius: 8px;
    color: var(--ep-charcoal);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    min-height: 34px;
    padding: 9px 13px;
}

.ep-events-tab:hover,
.ep-events-page-button:hover {
    background: #ffffff !important;
    border-color: rgba(59, 57, 53, 0.28) !important;
    color: var(--ep-charcoal) !important;
}

.ep-events-tab[aria-pressed="true"] {
    background: var(--ep-turquoise);
    border-color: var(--ep-turquoise);
    color: #ffffff;
}

.ep-events-tab[aria-pressed="true"]:hover,
.ep-events-tab[aria-pressed="true"]:focus {
    background: var(--ep-turquoise) !important;
    border-color: var(--ep-turquoise) !important;
    color: #ffffff !important;
}

.ep-events-page-button {
    display: grid;
    font-size: 18px;
    height: 34px;
    padding: 0;
    place-items: center;
    width: 34px;
}

.ep-events-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.ep-events-page-label {
    color: var(--ep-muted);
    font-size: 13px;
}

.ep-events-list {
    display: flex;
    flex-direction: column;
}

.ep-event-row {
    align-items: center;
    border-bottom: 1px solid rgba(59, 57, 53, 0.09);
    display: grid;
    gap: 18px;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    padding: 20px;
}

.ep-event-row:last-child {
    border-bottom: 0;
}

.ep-event-date {
    border-left: 4px solid var(--ep-turquoise);
    padding-left: 12px;
}

.ep-event-date strong {
    color: var(--ep-charcoal);
    display: block;
    font-size: 26px;
    line-height: 1;
}

.ep-event-date span {
    color: rgba(59, 57, 53, 0.68);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 5px;
    text-transform: uppercase;
}

.ep-event-title {
    font-size: 19px;
    line-height: 1.2;
    margin: 0 0 7px;
}

.ep-event-title button {
    background: transparent;
    border: 0;
    color: var(--ep-charcoal);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: left;
    text-decoration: none;
}

.ep-event-title button:hover {
    background: transparent !important;
    color: var(--ep-charcoal) !important;
    text-decoration: none;
}

.ep-event-organizer {
    color: rgba(59, 57, 53, 0.58);
    font-style: italic;
    font-weight: 500;
}

.ep-event-organizer-list {
    font-size: 13px;
    margin: -2px 0 7px;
}

.ep-event-location,
.ep-event-description {
    color: var(--ep-muted);
    font-size: 14px;
    margin: 0;
}

.ep-event-description {
    margin-top: 6px;
}

.ep-event-actions {
    justify-content: flex-end;
}

.ep-event-calendar-button {
    background: var(--ep-turquoise);
    border: 0;
    border-radius: 8px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    padding: 11px 14px;
    text-decoration: none;
    white-space: nowrap;
}

.ep-event-calendar-button:hover,
.ep-event-calendar-button:focus,
.ep-event-calendar-button:active,
.ep-event-calendar-menu[open] .ep-event-calendar-button {
    background: #00a99f !important;
    color: #ffffff !important;
}

.ep-event-calendar-menu {
    position: relative;
}

.ep-event-calendar-menu summary {
    cursor: pointer;
    list-style: none;
}

.ep-event-calendar-menu summary::-webkit-details-marker {
    display: none;
}

.ep-event-calendar-options {
    background: #ffffff;
    border: 1px solid rgba(59, 57, 53, 0.16);
    border-radius: 8px;
    box-shadow: 0 16px 35px rgba(59, 57, 53, 0.16);
    display: grid;
    gap: 2px;
    margin-top: 8px;
    min-width: 190px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 5;
}

.ep-event-calendar-options a {
    border-radius: 6px;
    color: var(--ep-charcoal);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.ep-event-calendar-options a:hover {
    background: rgba(0, 191, 179, 0.1) !important;
    color: var(--ep-charcoal) !important;
}

.ep-event-share-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(59, 57, 53, 0.14);
    border-radius: 10px;
    color: var(--ep-charcoal);
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    width: 38px;
}

.ep-event-share-button:hover {
    background: rgba(0, 191, 179, 0.08) !important;
    border-color: var(--ep-turquoise) !important;
    color: var(--ep-charcoal) !important;
}

.ep-event-share-button svg {
    display: block;
    height: 20px;
    width: 20px;
}

.ep-event-share-button.whatsapp svg {
    fill: #25D366;
}

.ep-event-share-button.facebook svg {
    fill: #1877F2;
}

.ep-event-share-button.instagram svg {
    fill: #C13584;
}

.ep-event-share-button.tiktok svg {
    fill: #111111;
}

.ep-events-calendar {
    padding: 20px;
}

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

.ep-calendar-title {
    font-weight: 800;
}

.ep-calendar-grid {
    border: 1px solid rgba(59, 57, 53, 0.12);
    border-radius: 10px;
    display: grid;
    overflow: hidden;
}

.ep-calendar-grid.month {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ep-calendar-grid.week,
.ep-calendar-grid.day {
    grid-template-columns: 1fr;
}

.ep-calendar-day-name,
.ep-calendar-cell {
    border-bottom: 1px solid rgba(59, 57, 53, 0.1);
    border-right: 1px solid rgba(59, 57, 53, 0.1);
    font-size: 12px;
    min-height: 82px;
    padding: 8px;
}

.ep-calendar-day-name {
    background: rgba(0, 191, 179, 0.06);
    color: var(--ep-charcoal);
    font-weight: 800;
    min-height: auto;
    text-align: center;
}

.ep-calendar-cell:nth-child(7n) {
    border-right: 0;
}

.ep-calendar-cell.empty {
    background: rgba(59, 57, 53, 0.025);
}

.ep-calendar-date {
    font-weight: 800;
}

.ep-calendar-event {
    background: rgba(0, 191, 179, 0.12);
    border-bottom: 0;
    border-left: 3px solid var(--ep-turquoise);
    border-right: 0;
    border-top: 0;
    border-radius: 7px;
    color: var(--ep-charcoal);
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 8px;
    overflow: hidden;
    padding: 6px;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    width: 100%;
}

.ep-calendar-event:hover {
    background: var(--ep-turquoise) !important;
    color: #ffffff !important;
}

.ep-calendar-event-time {
    display: block;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 2px;
}

.ep-calendar-event-title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
}

.ep-event-organizer-calendar {
    color: inherit;
    display: block;
    font-size: 10px;
    line-height: 1.2;
    margin: 3px 0 0;
    opacity: 0.72;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ep-calendar-grid.month .ep-calendar-event {
    min-height: 64px;
}

.ep-events-empty,
.ep-events-loading,
.ep-events-copy-status {
    color: var(--ep-muted);
    padding: 20px;
}

.ep-events-copy-status {
    background: rgba(0, 191, 179, 0.09);
    border-top: 1px solid rgba(59, 57, 53, 0.1);
    font-size: 13px;
    padding: 12px 20px;
}

.ep-event-detail-panel,
.ep-events-note {
    background: rgba(0, 191, 179, 0.08);
    border: 1px solid rgba(0, 191, 179, 0.28);
    border-left: 4px solid var(--ep-turquoise);
    border-radius: 8px;
    color: var(--ep-charcoal);
    margin: 0 0 24px;
    padding: 14px 16px;
}

.ep-event-single-layout {
    color: var(--ep-charcoal);
    margin: 0 auto 36px;
    max-width: 980px;
}

.ep-event-single-hero {
    background: #ffffff;
    border: 1px solid rgba(59, 57, 53, 0.12);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(59, 57, 53, 0.08);
    margin: 0 0 18px;
    overflow: hidden;
}

.ep-event-single-media {
    background: rgba(59, 57, 53, 0.04);
}

.ep-event-single-image {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.ep-event-single-hero-copy {
    padding: 22px 24px 24px;
}

.ep-event-single-kicker {
    color: var(--ep-turquoise);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.ep-event-single-hero h1 {
    color: var(--ep-charcoal);
    font-size: 38px;
    line-height: 1.08;
    margin: 0 0 10px;
}

.ep-event-single-hero p {
    color: var(--ep-muted);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.ep-event-single-layout .ep-event-detail-panel {
    background: rgba(0, 191, 179, 0.07);
    border-left: 0;
    margin: 0 0 22px;
    padding: 18px;
}

.ep-event-detail-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ep-event-detail-grid div {
    background: #ffffff;
    border: 1px solid rgba(59, 57, 53, 0.11);
    border-radius: 8px;
    padding: 13px 14px;
}

.ep-event-detail-grid span {
    color: rgba(59, 57, 53, 0.58);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.ep-event-detail-grid strong {
    color: var(--ep-charcoal);
    display: block;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ep-event-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ep-event-single-content {
    background: #ffffff;
    border: 1px solid rgba(59, 57, 53, 0.1);
    border-radius: 12px;
    color: var(--ep-charcoal);
    font-size: 17px;
    line-height: 1.68;
    padding: 24px;
}

.ep-event-single-content p:first-child {
    margin-top: 0;
}

.ep-event-single-content p:last-child {
    margin-bottom: 0;
}

.ep-event-calendar-link {
    background: var(--ep-turquoise);
    border-radius: 8px;
    color: #ffffff !important;
    display: inline-flex;
    font-weight: 800;
    padding: 10px 13px;
    text-decoration: none;
}

.ep-event-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 99999;
}

.ep-event-modal-backdrop {
    background: rgba(59, 57, 53, 0.52);
    border: 0;
    cursor: pointer;
    inset: 0;
    position: absolute;
}

.ep-event-modal-backdrop:hover,
.ep-event-modal-backdrop:focus,
.ep-event-modal-backdrop:active {
    background: rgba(59, 57, 53, 0.52) !important;
    outline: 0;
}

.ep-event-modal-panel {
    background: #ffffff;
    border: 1px solid rgba(59, 57, 53, 0.12);
    border-radius: 14px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.24);
    color: var(--ep-charcoal);
    max-height: min(720px, calc(100vh - 36px));
    max-width: 620px;
    overflow: auto;
    padding: 26px;
    position: relative;
    width: min(620px, 100%);
}

.ep-event-modal-close {
    align-items: center;
    background: rgba(59, 57, 53, 0.06);
    border: 1px solid rgba(59, 57, 53, 0.12);
    border-radius: 999px;
    color: var(--ep-charcoal);
    cursor: pointer;
    display: flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
}

.ep-event-modal-close:hover,
.ep-event-modal-close:focus {
    background: rgba(59, 57, 53, 0.1) !important;
    color: var(--ep-charcoal) !important;
}

.ep-event-modal-date {
    color: var(--ep-turquoise);
    font-size: 13px;
    font-weight: 800;
    margin: 0 42px 8px 0;
}

.ep-event-modal-panel h3 {
    color: var(--ep-charcoal);
    font-size: 24px;
    line-height: 1.18;
    margin: 0 42px 10px 0;
}

.ep-event-organizer-modal {
    font-size: 14px;
    margin: -4px 42px 14px 0;
}

.ep-event-modal-location,
.ep-event-modal-description {
    color: var(--ep-muted);
    font-size: 15px;
    margin: 0 0 14px;
}

.ep-event-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 14px;
}

.ep-event-details-button {
    border: 1px solid rgba(59, 57, 53, 0.2);
    border-radius: 8px;
    color: var(--ep-charcoal);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    padding: 11px 14px;
    text-decoration: none;
}

.ep-event-details-button:hover {
    background: #ffffff !important;
    border-color: var(--ep-turquoise) !important;
    color: var(--ep-charcoal) !important;
}

@media (max-width: 780px) {
    .ep-events-toolbar,
    .ep-calendar-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ep-event-row {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .ep-event-actions {
        justify-content: flex-start;
    }

    .ep-calendar-grid.month {
        grid-template-columns: 1fr;
    }

    .ep-calendar-day-name {
        display: none;
    }

    .ep-calendar-cell {
        border-right: 0;
        min-height: auto;
    }

    .ep-event-detail-grid {
        grid-template-columns: 1fr;
    }

    .ep-event-single-hero-copy,
    .ep-event-single-content {
        padding: 18px;
    }

    .ep-event-single-hero h1 {
        font-size: 28px;
    }
}
