/* Critical calendar layout loaded before the full theme/customizer CSS. */
.tribe-common-form-control-checkbox__input {
    border: 1px solid #555555 !important;
    border-radius: 50px !important;
}

.tribe-common-form-control-checkbox__input:checked {
    background-color: #0381FE !important;
    border: 1px solid #0381FE !important;
}

.tribe-filter-bar-c-filter__container {
    display: none !important;
}

.tribe-filter-bar-c-filter.tribe-filter-bar-c-filter--open .tribe-filter-bar-c-filter__container {
    display: block !important;
}

@media (min-width: 768px) {
    .tribe-events .tribe-events-l-container {
        max-width: 1440px !important;
        min-height: 700px;
        padding: 0 !important;
    }

    .tribe-filter-bar--vertical.tribe-filter-bar {
        margin-right: 0 !important;
        padding: 69px 24px 21px !important;
        width: 354px !important;
        z-index: 0 !important;
    }

    .tribe-events .tribe-events-header--has-event-search .tribe-events-c-events-bar {
        background-color: #f7f7f7 !important;
        border: 0 !important;
        border-radius: 20px !important;
        height: 48px !important;
        left: -354px !important;
        margin-bottom: 0 !important;
        position: absolute !important;
        top: -60px !important;
        width: 306px !important;
    }

    .tribe-events .tribe-events-header--has-event-search .tribe-events-c-events-bar .tribe-events-c-events-bar__views,
    .tribe-events .tribe-events-c-top-bar__actions,
    .tribe-events-c-subscribe-dropdown,
    .tribe-events-c-subscribe-dropdown__container {
        display: none !important;
    }

    .tribe-events .tribe-events-c-search__input-control {
        background-color: #f7f7f7;
        border-radius: 20px !important;
        height: 48px !important;
        margin: 0 !important;
    }

    .tribe-events .tribe-events-c-events-bar .tribe-common-form-control-text__input {
        margin: 0 !important;
        padding: 14px 24px 14px 44px !important;
    }

    .tribe-events--filter-bar-vertical .tribe-events-l-container .tribe-filter-bar--open ~ .tribe-events-calendar-month,
    .tribe-events--filter-bar-vertical .tribe-events-l-container .tribe-filter-bar--open ~ .tribe-events-calendar-list,
    .tribe-events--filter-bar-vertical .tribe-events-l-container .tribe-filter-bar--open ~ .tribe-events-calendar-day,
    .tribe-events--filter-bar-vertical .tribe-events-l-container .tribe-filter-bar--open ~ .tribe-events-calendar-latest-past {
        background: #F7F7F7;
        min-height: 700px;
        padding: 80px 24px;
        width: calc(100% - 354px) !important;
    }

    .tribe-events .tribe-events-header__top-bar {
        margin-bottom: 24px;
    }

    .tribe-events .tribe-events-c-top-bar {
        align-items: center !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .tribe-events .tribe-events-c-top-bar__nav-list {
        align-items: center;
        display: flex;
        gap: 56px;
    }

    .tribe-events .tribe-events-c-top-bar__nav-list-item {
        flex: none;
        padding-right: 0 !important;
    }

    .tribe-events-header .tribe-events-c-top-bar > .tribe-events-c-top-bar__datepicker {
        display: none;
    }

    .tribe-events .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__content {
        background-color: transparent !important;
    }

    .tribe-events .tribe-events-calendar-month__header-row {
        background: #ffffff;
        border: 1px solid #EEEEEE;
        border-bottom: 0;
        display: flex;
    }

    .tribe-events .tribe-events-calendar-month__header-column {
        padding: 10px 0;
        width: var(--tec-grid-width-1-of-7);
    }

    .tribe-events .tribe-events-calendar-month__header-column-title {
        color: #000000;
        font-family: SamsungOne, sans-serif;
        font-size: 18px !important;
        font-weight: 700;
        line-height: 23.94px !important;
        text-align: center !important;
    }

    .tribe-events .tribe-events-calendar-month__body {
        background-color: #ffffff;
        border-top: 1px solid #eeeeee;
    }

    .tribe-events .tribe-events-calendar-month__week {
        border-left: 1px solid #eeeeee;
    }

    .tribe-events .tribe-events-calendar-month__day {
        aspect-ratio: auto;
        border-color: #eeeeee;
        border-style: solid;
        border-width: 0 1px 1px 0;
        min-height: 168px;
        overflow: visible;
        padding: 4px !important;
        padding-top: 0;
    }

    .tribe-events .tribe-events-calendar-month__day::after {
        display: none !important;
    }

    .tribe-events .tribe-events-calendar-month__day-date-daynum {
        display: block;
        font-size: 18px;
        height: 44px;
        line-height: 44px;
        position: relative;
        text-align: center;
        width: 44px;
        z-index: 1;
    }

    .tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum,
    .tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum a {
        color: #ffffff !important;
    }

    .tribe-events .tribe-events-calendar-month__day.tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date.tribe-common-h4::after {
        background: #2189FF;
        border-radius: 100%;
        content: '';
        display: block;
        height: 44px;
        left: 4px;
        position: absolute;
        top: 4px;
        width: 44px;
        z-index: 0;
    }

    .tribe-events .tribe-events-calendar-month__calendar-event {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        margin: 4px !important;
        padding: 10px !important;
        position: relative !important;
    }

    .tribe-events .tribe-events-calendar-month__calendar-event-datetime,
    .tribe-events .tribe-events-calendar-month__day--past .tribe-events-calendar-month__calendar-event-datetime {
        color: #000000;
        font-family: SamsungOne, sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 14.39px;
        opacity: 1;
        text-align: left;
    }

    .tribe-events .tribe-events-calendar-month__calendar-event-title {
        color: #000000;
        font-family: SamsungOne, sans-serif;
        font-size: 12px;
        font-weight: 400;
        line-height: 14.39px;
        margin: 0;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tribe-events .tribe-events-calendar-month__calendar-event.tribe_events_cat-webinar,
    .tribe-events .tribe-events-calendar-month__day--past .tribe-events-calendar-month__calendar-event.tribe_events_cat-webinar,
    .tribe-events .tribe-events-calendar-month__multiday-event.tribe_events_cat-webinar .tribe-events-calendar-month__multiday-event-bar {
        background-color: #98CBFD;
    }
}

@media (max-width: 767px) {
    .tribe-events .tribe-events-l-container {
        padding: 6.6vw !important;
    }

    .tribe-events-c-top-bar > .tribe-events-c-events-bar__filter-button-container,
    .tribe-events-c-top-bar > .tribe-events-c-events-bar__views {
        display: none !important;
    }

    .tribe-events .tribe-events-c-top-bar__nav-list {
        align-items: center !important;
        display: flex !important;
        gap: 16px !important;
    }

    .tribe-events .tribe-events-c-top-bar__nav-list-item {
        padding: 0 !important;
    }

    .tribe-events .tribe-events-calendar-month__day {
        border: none;
        border-radius: 100% !important;
    }

    .tribe-events .tribe-events-calendar-month__day-cell--mobile {
        align-items: center;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        text-align: center;
        top: 0;
    }

    .tribe-events .tribe-events-calendar-month__mobile-events-icon--event {
        background-color: #2189FF !important;
        border-radius: 50%;
        bottom: 8px !important;
        height: 4px !important;
        position: absolute !important;
        width: 4px !important;
    }

    .tribe-events .tribe-events-calendar-month__day-cell--selected,
    .tribe-events .tribe-events-calendar-month__day-cell--selected:focus,
    .tribe-events .tribe-events-calendar-month__day-cell--selected:hover {
        background-color: #2189FF !important;
        border: none !important;
    }

    .tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date time {
        color: #ffffff;
    }

    .tribe-events .tribe-events-calendar-month-mobile-events__mobile-day--show {
        display: flex !important;
        flex-direction: column;
        gap: 16px !important;
    }

    .tribe-events .tribe-events-c-day-marker::after {
        height: 0 !important;
    }

    .tribe-events-calendar-month-mobile-events .tribe-events-c-day-marker .tribe-events-c-day-marker__date {
        font-family: SamsungOne, sans-serif;
        font-size: 4.4vw !important;
        font-weight: 700 !important;
        line-height: 6.6vw !important;
        text-align: center;
    }

    .tribe-events .tribe-events-calendar-month-mobile-events__mobile-event {
        background: rgba(0, 0, 0, 0.1);
        border: none !important;
        border-radius: 4px;
        padding: 10px !important;
    }

    .tribe-events .tribe-events-calendar-month-mobile-events__mobile-event.tribe_events_cat-webinar {
        background-color: #98CBFD;
    }
}
