/**
 * =========================================================
 * Mizgerd Event Archive
 * =========================================================
 */


/* =========================================================
 * Root
 * ========================================================= */

.mizgerd-event-archive {
    min-height: 100vh;
    padding-bottom: 72px;
    background: #f8f9fb;
    color: #18181b;
}


.mizgerd-event-archive-container {
    width: min(
        1200px,
        calc(100% - 40px)
    );
    margin-inline: auto;
}


/* =========================================================
 * Archive Hero
 * ========================================================= */

.mizgerd-event-archive-hero {
    margin-bottom: 34px;
    padding: 52px 0;
    background: #fff;
    border-bottom: 1px solid #e8eaf0;
}


.mizgerd-event-archive-hero
.mizgerd-archive-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #71717a;
    font-size: 13px;
    font-weight: 600;
}


.mizgerd-event-archive-hero h1 {
    margin: 0 0 12px;
    color: #18181b;
    font-size: clamp(
        32px,
        4vw,
        48px
    );
    line-height: 1.15;
}


.mizgerd-event-archive-hero p {
    max-width: 680px;
    margin: 0;
    color: #71717a;
    font-size: 16px;
    line-height: 1.7;
}



/* ---------------------------------------------------------
 * Filter Row
 * --------------------------------------------------------- */

.mizgerd-event-filter-row {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        repeat(3, minmax(140px, auto))
        auto
        auto;
    gap: 8px;
    align-items: center;
}


.mizgerd-event-filter-field {
    min-width: 0;
}


.mizgerd-event-filter-field input,
.mizgerd-event-filter-field select {
    width: 100%;
    height: 42px;
    padding-inline: 12px;
    background: #fff;
    border: 1px solid #dfe2e8;
    border-radius: 8px;
    color: #27272a;
    font: inherit;
    font-size: 13px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.mizgerd-event-filter-field input::placeholder {
    color: #a1a1aa;
}


.mizgerd-event-filter-field input:focus,
.mizgerd-event-filter-field select:focus {
    border-color: #a1a1aa;
    box-shadow:
        0 0 0 3px
        rgba(24, 24, 27, .06);
}


/* Filter button */

.mizgerd-event-filter-submit {
    min-height: 42px;
    padding: 0 18px;
    background: #18181b;
    border: 1px solid #18181b;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color .2s ease,
        transform .2s ease;
}


.mizgerd-event-filter-submit:hover {
    background: #27272a;
}


.mizgerd-event-filter-submit:active {
    transform: translateY(1px);
}


/* Clear filters */

.mizgerd-event-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding-inline: 12px;
    border-radius: 8px;
    color: #71717a;
    font-size: 13px;
    text-decoration: none;
}


.mizgerd-event-filter-reset:hover {
    color: #18181b;
    background: #f4f4f5;
}


/* =========================================================
 * Results Header
 * ========================================================= */

.mizgerd-event-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    color: #71717a;
    font-size: 14px;
}


.mizgerd-event-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #dfe2e8;
    border-radius: 8px;
    color: #27272a;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}



/* =========================================================
 * Event Grid
 * ========================================================= */

.mizgerd-event-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* =========================================================
 * Event Card
 * ========================================================= */

.mizgerd-event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 16px;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.mizgerd-event-card:hover {
    transform: translateY(-3px);
    border-color: #d8dbe2;
    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, .07);
}


/* =========================================================
 * Event Thumbnail
 * ========================================================= */

.mizgerd-event-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef0f3;
}


.mizgerd-event-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}


.mizgerd-event-card:hover
.mizgerd-event-card-image img {
    transform: scale(1.025);
}


.mizgerd-event-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #eceef2,
            #f7f8fa
        );
}


/* =========================================================
 * Status Badge
 * ========================================================= */

.mizgerd-event-status {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: 999px;
    color: #3f3f46;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(5px);
}


/* Upcoming */

.mizgerd-event-status-upcoming {
    background: rgba(
        255,
        255,
        255,
        .96
    );
    color: #3f3f46;
}


/* Live */

.mizgerd-event-status-live {
    background: #fff1f1;
    color: #b42318;
}


/* Ended */

.mizgerd-event-status-ended {
    background: #f1f2f4;
    color: #71717a;
}


/* Full */

.mizgerd-event-status-full {
    background: #fff4e5;
    color: #9a6700;
}


/* =========================================================
 * Card Body
 * ========================================================= */

.mizgerd-event-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px;
}


/* =========================================================
 * Event Type / Mode / Access Badges
 * ========================================================= */

.mizgerd-event-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 13px;
}


.mizgerd-event-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    background: #f4f4f5;
    border-radius: 999px;
    color: #65656d;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}


/* Event type */

.mizgerd-event-type-online {
    background: #eef4ff;
    color: #315a9f;
}


.mizgerd-event-type-offline {
    background: #f4f4f5;
    color: #52525b;
}


/* Access */

.mizgerd-event-access-free {
    background: #edf9f1;
    color: #267a46;
}


.mizgerd-event-access-paid {
    background: #fff6e8;
    color: #8a5a14;
}


.mizgerd-event-access-members {
    background: #f1efff;
    color: #5e4ca3;
}


.mizgerd-event-access-course_inherit {
    background: #eef5f5;
    color: #426b6b;
}


/* =========================================================
 * Date / Time
 * ========================================================= */

.mizgerd-event-card-date {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 8px;
    color: #71717a;
    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
 * Title
 * ========================================================= */

.mizgerd-event-card-title {
    margin: 0 0 10px;
    color: #18181b;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}


.mizgerd-event-card-title a {
    color: inherit;
    text-decoration: none;
}


.mizgerd-event-card-title a:hover {
    color: #3f3f46;
}


/* =========================================================
 * Excerpt
 * ========================================================= */

.mizgerd-event-card-excerpt {
    margin: 0 0 15px;
    color: #707078;
    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
 * Mizgerd Timer - Card Style
 * ========================================================= */

.mizgerd-event-card-timer {
    margin: 5px 0 17px;
}


/*
 * Mizgerd_Timer::card()
 */
.mizgerd-countdown--card {
    width: 100%;
}


.mizgerd-countdown--card[hidden] {
    display: none !important;
}


/* Timer unit grid */

.mizgerd-countdown--card
.mizgerd-countdown__units {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 7px;
}


/* Individual unit */

.mizgerd-countdown--card
.mizgerd-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    padding: 8px 5px;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 9px;
}


/* Timer number */

.mizgerd-countdown--card
.mizgerd-countdown__value {
    display: block;
    color: #18181b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric:
        tabular-nums;
}


/* Days / Hours / Minutes / Seconds */

.mizgerd-countdown--card
.mizgerd-countdown__unit-label {
    display: block;
    margin-top: 4px;
    color: #8a8a91;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
}


/*
 * card() currently hides started/ended states,
 * but keep these safe anyway.
 */

.mizgerd-countdown--card
.mizgerd-countdown__started,
.mizgerd-countdown--card
.mizgerd-countdown__ended {
    display: none;
}


/* =========================================================
 * Event Details
 * ========================================================= */

.mizgerd-event-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 14px 0;
    border-top: 1px solid #f0f1f3;
}


.mizgerd-event-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.mizgerd-event-detail-label {
    color: #8a8a91;
    font-size: 10px;
    font-weight: 500;
}


.mizgerd-event-detail strong {
    color: #3f3f46;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
 * Capacity Progress
 * ========================================================= */

.mizgerd-event-capacity-progress {
    margin-top: -4px;
    margin-bottom: 15px;
}


.mizgerd-event-capacity-track {
    width: 100%;
    height: 5px;
    overflow: hidden;
    background: #eeeef1;
    border-radius: 999px;
}


.mizgerd-event-capacity-bar {
    display: block;
    height: 100%;
    background: #18181b;
    border-radius: inherit;
    transition: width .3s ease;
}


/* =========================================================
 * Course Relationship
 * ========================================================= */

.mizgerd-event-card-course {
    margin-top: 2px;
    padding: 11px 12px;
    background: #f8f9fa;
    border: 1px solid #f0f1f3;
    border-radius: 9px;
    color: #71717a;
    font-size: 12px;
    line-height: 1.5;
}


.mizgerd-event-card-course span {
    color: #8a8a91;
}


.mizgerd-event-card-course a,
.mizgerd-event-card-course strong {
    margin-inline-start: 4px;
    color: #29292e;
    font-weight: 600;
    text-decoration: none;
}


.mizgerd-event-card-course a:hover {
    text-decoration: underline;
}


/* =========================================================
 * Card Footer
 * ========================================================= */

.mizgerd-event-card-footer {
    margin-top: auto;
    padding-top: 17px;
}


.mizgerd-event-card-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #f0f1f3;
    color: #18181b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


.mizgerd-event-card-button:hover {
    color: #3f3f46;
}


.mizgerd-event-card-arrow {
    display: inline-flex;
    transition: transform .2s ease;
}


.mizgerd-event-card:hover
.mizgerd-event-card-arrow {
    transform: translateX(3px);
}


[dir="rtl"]
.mizgerd-event-card:hover
.mizgerd-event-card-arrow {
    transform: translateX(-3px);
}


/* Live CTA */

.mizgerd-event-card-button-live {
    color: #b42318;
}


/* Ended CTA */

.mizgerd-event-card-button-ended {
    color: #71717a;
}


/* Full CTA */

.mizgerd-event-card-button-full {
    color: #9a6700;
}


/* =========================================================
 * Empty State
 * ========================================================= */

.mizgerd-event-empty {
    padding: 64px 24px;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    text-align: center;
}


.mizgerd-event-empty h3 {
    margin: 0 0 9px;
    color: #18181b;
    font-size: 20px;
}


.mizgerd-event-empty p {
    max-width: 480px;
    margin: 0 auto 20px;
    color: #71717a;
    font-size: 14px;
    line-height: 1.7;
}


.mizgerd-event-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    background: #18181b;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}


/* =========================================================
 * Pagination
 * ========================================================= */

.mizgerd-pagination {
    margin-top: 42px;
}


.mizgerd-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}


.mizgerd-pagination a,
.mizgerd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding-inline: 12px;
    background: #fff;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    color: #3f3f46;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}


.mizgerd-pagination a:hover {
    background: #f4f4f5;
    border-color: #d4d4d8;
}


.mizgerd-pagination .current {
    background: #18181b;
    border-color: #18181b;
    color: #fff;
}


/* =========================================================
 * Focus Accessibility
 * ========================================================= */

.mizgerd-event-card a:focus-visible,
.mizgerd-event-filter-toggle:focus-visible,
.mizgerd-event-filter-submit:focus-visible,
.mizgerd-event-filter-reset:focus-visible,
.mizgerd-event-empty a:focus-visible,
.mizgerd-pagination a:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 3px;
}


/* =========================================================
 * Tablet
 * ========================================================= */

@media (max-width: 1050px) {

    .mizgerd-event-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .mizgerd-event-filter-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .mizgerd-event-filter-search {
        grid-column: 1 / -1;
    }


    .mizgerd-event-filter-submit,
    .mizgerd-event-filter-reset {
        width: 100%;
    }
}


/* =========================================================
 * Mobile
 * ========================================================= */

@media (max-width: 700px) {

    .mizgerd-event-archive {
        padding-bottom: 48px;
    }


    .mizgerd-event-archive-container {
        width: min(
            100% - 28px,
            1200px
        );
    }


    .mizgerd-event-archive-hero {
        margin-bottom: 24px;
        padding: 36px 0;
    }


    .mizgerd-event-archive-hero p {
        font-size: 14px;
    }


    /* Grid */

    .mizgerd-event-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    /* Mobile filter button */

    .mizgerd-event-filter-toggle {
        display: inline-flex;
    }


    /*
     * Full screen filter drawer
     */

    .mizgerd-event-filters {
        position: fixed;
        inset: 0;
        z-index: 99999;
        margin: 0;
        padding: 24px;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        transform: translateX(-105%);
        transition: transform .25s ease;
    }


    [dir="rtl"]
    .mizgerd-event-filters {
        transform: translateX(105%);
    }


    .mizgerd-event-filters.is-open {
        transform: translateX(0);
    }


    .mizgerd-event-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin-inline-start: auto;
        margin-bottom: 20px;
        padding: 0;
        background: #f4f4f5;
        border: 0;
        border-radius: 8px;
        color: #27272a;
        font-size: 24px;
        cursor: pointer;
    }


    body.mizgerd-filters-open {
        overflow: hidden;
    }


    .mizgerd-event-status-tabs {
        flex-direction: column;
        margin-bottom: 24px;
    }


    .mizgerd-event-status-tabs span {
        width: 100%;
    }


    .mizgerd-event-filter-row {
        display: block;
    }


    .mizgerd-event-filter-field {
        margin-bottom: 10px;
    }


    .mizgerd-event-filter-submit {
        width: 100%;
        margin-bottom: 8px;
    }


    .mizgerd-event-filter-reset {
        width: 100%;
    }


    /* Card */

    .mizgerd-event-card-body {
        padding: 17px;
    }


    .mizgerd-event-card-title {
        font-size: 18px;
    }


    .mizgerd-event-card-details {
        gap: 12px 20px;
    }
}


/* =========================================================
 * Small Mobile
 * ========================================================= */

@media (max-width: 400px) {

    .mizgerd-event-archive-container {
        width: calc(100% - 22px);
    }


    .mizgerd-event-card-badges {
        gap: 5px;
    }


    .mizgerd-event-badge {
        padding: 5px 8px;
        font-size: 10px;
    }


    /*
     * Countdown must stay inside small cards.
     */

    .mizgerd-countdown--card
    .mizgerd-countdown__units {
        gap: 4px;
    }


    .mizgerd-countdown--card
    .mizgerd-countdown__unit {
        min-height: 46px;
        padding-inline: 3px;
    }


    .mizgerd-countdown--card
    .mizgerd-countdown__value {
        font-size: 14px;
    }


    .mizgerd-countdown--card
    .mizgerd-countdown__unit-label {
        font-size: 8px;
    }


    .mizgerd-event-card-details {
        justify-content: space-between;
    }
}


/* =========================================================
 * RTL
 * ========================================================= */

[dir="rtl"]
.mizgerd-event-card,
[dir="rtl"]
.mizgerd-event-filters,
[dir="rtl"]
.mizgerd-event-empty {
    text-align: right;
}


[dir="rtl"]
.mizgerd-event-filter-field select {
    background-position:
        left 10px center;
}


/* =========================================================
 * Reduced Motion
 * ========================================================= */

@media (
    prefers-reduced-motion: reduce
) {

    .mizgerd-event-card,
    .mizgerd-event-card-image img,
    .mizgerd-event-card-arrow,
    .mizgerd-event-capacity-bar,
    .mizgerd-event-filters {
        transition: none;
    }


    .mizgerd-event-card:hover {
        transform: none;
    }


    .mizgerd-event-card:hover
    .mizgerd-event-card-image img {
        transform: none;
    }
}



/**
 * =========================================================
 * Mizgerd Event Archive Filters
 * =========================================================
 */

.mizgerd-event-filters {
    margin-bottom: 28px;
    padding: 18px;

    background: #fff;

    border: 1px solid #e8eaf0;
    border-radius: 14px;
}


/* =========================================================
 * Form
 * ========================================================= */

.mizgerd-event-filters form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    width: 100%;
}


/* =========================================================
 * Status Tabs
 * ========================================================= */

.mizgerd-event-status-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}


.mizgerd-event-status-tabs label {
    position: relative;

    margin: 0;

    cursor: pointer;
}


/*
 * Hide native radio
 */
.mizgerd-event-status-tabs input[type="radio"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


/*
 * Tab button
 */
.mizgerd-event-status-tabs label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 8px 15px;

    background: #f6f7f9;

    border: 1px solid transparent;
    border-radius: 8px;

    color: #71717a;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.mizgerd-event-status-tabs label:hover span {
    background: #eeeef1;
    color: #27272a;
}


/*
 * Selected tab
 */
.mizgerd-event-status-tabs
input[type="radio"]:checked + span {
    background: #18181b;

    border-color: #18181b;

    color: #fff;
}


/*
 * Keyboard focus
 */
.mizgerd-event-status-tabs
input[type="radio"]:focus-visible + span {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}


/* =========================================================
 * Search
 * ========================================================= */

.mizgerd-event-search {
    display: flex;
    align-items: stretch;

    width: 100%;
    max-width: 390px;

    overflow: hidden;

    background: #fff;

    border: 1px solid #dfe2e8;
    border-radius: 9px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


/*
 * Focus around entire search control
 */
.mizgerd-event-search:focus-within {
    border-color: #a1a1aa;

    box-shadow:
        0 0 0 3px
        rgba(24, 24, 27, .06);
}


/* =========================================================
 * Search Input
 * ========================================================= */

.mizgerd-event-search input[type="search"] {
    flex: 1;

    min-width: 0;
    height: 44px;

    margin: 0;
    padding: 0 14px;

    background: transparent;

    border: 0;
    border-radius: 0;

    color: #27272a;

    font: inherit;
    font-size: 13px;
    line-height: 44px;

    outline: none;

    box-shadow: none;

    appearance: none;
    -webkit-appearance: none;
}


.mizgerd-event-search input[type="search"]::placeholder {
    color: #a1a1aa;
}


.mizgerd-event-search
input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}


/*
 * Remove browser native search decorations
 */
.mizgerd-event-search
input[type="search"]::-webkit-search-decoration,
.mizgerd-event-search
input[type="search"]::-webkit-search-cancel-button,
.mizgerd-event-search
input[type="search"]::-webkit-search-results-button,
.mizgerd-event-search
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}


/* =========================================================
 * Search Button
 * ========================================================= */

.mizgerd-event-search button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 82px;
    height: 44px;

    margin: 0;
    padding: 0 17px;

    background: #18181b;

    border: 0;
    border-radius: 0;

    color: #fff;

    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.mizgerd-event-search button[type="submit"]:hover {
    background: #303036;
}


.mizgerd-event-search button[type="submit"]:active {
    background: #09090b;
}


.mizgerd-event-search button[type="submit"]:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}


/* =========================================================
 * Close Button
 *
 * Hidden on desktop.
 * Used for mobile filter drawer.
 * ========================================================= */

.mizgerd-event-filter-close {
    display: none;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0 0 18px;
    margin-inline-start: auto;

    padding: 0;

    background: #f4f4f5;

    border: 0;
    border-radius: 8px;

    color: #27272a;

    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}


.mizgerd-event-filter-close:hover {
    background: #e8e8eb;
}


/* =========================================================
 * Tablet
 * ========================================================= */

@media (max-width: 850px) {

    .mizgerd-event-filters form {
        flex-direction: column;
        align-items: stretch;
    }


    .mizgerd-event-status-tabs {
        width: 100%;
    }


    .mizgerd-event-search {
        max-width: none;
    }
}


/* =========================================================
 * Mobile
 * ========================================================= */

@media (max-width: 700px) {

    /*
     * Drawer
     */
    .mizgerd-event-filters {
        position: fixed;

        inset: 0;

        z-index: 99999;

        width: 100%;
        height: 100%;

        margin: 0;
        padding: 22px;

        overflow-y: auto;

        background: #fff;

        border: 0;
        border-radius: 0;

        transform: translateX(-105%);

        transition:
            transform .25s ease;
    }


    /*
     * RTL drawer comes from the other side
     */
    [dir="rtl"]
    .mizgerd-event-filters {
        transform: translateX(105%);
    }


    .mizgerd-event-filters.is-open {
        transform: translateX(0);
    }


    .mizgerd-event-filter-close {
        display: flex;
    }


    /*
     * Form
     */
    .mizgerd-event-filters form {
        display: block;
    }


    /*
     * Tabs
     */
    .mizgerd-event-status-tabs {
        display: grid;
        grid-template-columns: 1fr;

        gap: 7px;

        margin-bottom: 22px;
    }


    .mizgerd-event-status-tabs label {
        width: 100%;
    }


    .mizgerd-event-status-tabs label span {
        width: 100%;

        min-height: 44px;

        justify-content: flex-start;

        padding-inline: 14px;
    }


    /*
     * Search
     */
    .mizgerd-event-search {
        width: 100%;
        max-width: none;
    }


    .mizgerd-event-search input[type="search"] {
        height: 46px;

        font-size: 14px;
        line-height: 46px;
    }


    .mizgerd-event-search button[type="submit"] {
        min-width: 88px;
        height: 46px;
    }


    /*
     * Lock body while drawer is open
     */
    body.mizgerd-filters-open {
        overflow: hidden;
    }
}


/* =========================================================
 * Small Mobile
 * ========================================================= */

@media (max-width: 400px) {

    .mizgerd-event-filters {
        padding: 18px;
    }


    .mizgerd-event-search button[type="submit"] {
        min-width: 76px;

        padding-inline: 13px;

        font-size: 12px;
    }


    .mizgerd-event-search input[type="search"] {
        padding-inline: 12px;
    }
}


/* =========================================================
 * RTL
 * ========================================================= */

[dir="rtl"]
.mizgerd-event-filters {
    text-align: right;
}


[dir="rtl"]
.mizgerd-event-search input[type="search"] {
    text-align: right;
}


/* =========================================================
 * Reduced Motion
 * ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mizgerd-event-filters,
    .mizgerd-event-status-tabs label span,
    .mizgerd-event-search,
    .mizgerd-event-search button {
        transition: none;
    }
}