.tc-events-wrap * {
    box-sizing: border-box;
}

.tc-events-wrap {
    height: auto;
    width: 100%;
    display: inline-block;
}

.tclist-filter-fields {
    flex: 3;
    display: flex;
    flex-flow: row wrap;
    gap: 15px;
}

.tclist-categories {
    flex: 1;
}

.tclist-dates-range {
    flex: 2;
}

.tc-date-wrap {
    flex: 1;
}

.tclist-events .tc-single-event h5 {
    margin: 10px 0;
    padding: 0;
}

.tc-events-wrap .tc-event-datepicker {
    background: url(../images/calendar-icon.svg) no-repeat 7px center;
    background-size: 27px;
    padding-left: 40px;
    width: 100%;
}

.tc-event-date-wrap .tc-only-event-start {
    width: 100%;
}

.tclist-events .tc-single-event h5 a {
    text-decoration: none;
}

.tc-2-column {
    flex: 1 0 44%;
}

.tc-3-column {
    flex: 1 0 30%;
}

.tc-4-column {
    flex: 1 0 22%;
}

.tclist-filters,
.tclist-events {
    opacity: 0;
    visibility: hidden;
    transition: 0.5s linear;
}

.tclist-events.loaded {
    opacity: 1;
    visibility: visible;
}

.tclist-filters.visible {
    display: flex;
    flex-flow: row wrap;
    margin: 0;
    gap: 15px;
    opacity: 1;
    visibility: visible;
}

.tclist-filter-field h5 {
    margin-bottom: 15px;
}

.tc-wrap-date-around {
    display: flex;
    flex-flow: row wrap;
    gap: 15px;
}

.tclist-filter-button {
    flex: 1;
    align-self: end;
}

.tclist-filter-button button {
    width: 100%;
    height: 100%;
    padding: 0 15%;
}

.tclist-filter-button button:hover {
    text-decoration: none;
}

.tclist-categories select {
    margin: 0;
    padding: 0;
    float: left;
    width: 100%;
}

#tc_category_ids ~ .ms-options-wrap button {
    height: 100%;
    padding-left: 12px;
    text-transform: capitalize;
}

#tc_category_ids ~ .ms-options-wrap > button:after {
    right: 16px;
}

#tc_category_ids ~ .ms-options-wrap > .ms-options > ul label {
    line-height: 1;
}

#tc_category_ids ~ .ms-options-wrap > .ms-options ul input[type="checkbox"] {
    margin: 0;
    height: 20px;
    width: 20px;
    border-radius: 4px;
}

#tc_category_ids ~ .ms-options-wrap > .ms-options > ul input[type="checkbox"] {
    top: 10px;
    left: 18px;
}

#tc_category_ids ~ .ms-options-wrap > .ms-options > ul input[type="checkbox"]:checked::before {
    height: 20px;
    width: 22px;
}

#tc_category_ids ~ .ms-options-wrap > .ms-options > ul label {
    padding: 12px 10px 12px 45px;
}

#tc_category_ids ~ .ms-options-wrap > .ms-options ul li {
    margin: 0;
}

.tc-event-date-wrap {
    float: left;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.03);
}

.tc-event-date {
    width: 100%;
    float: left;
}

.tc-event-date-start {
    background-color: rgba(139, 219, 150, 0.3);
    padding-right: 10px;
}

.tc-end-event {
    text-align: right;
    background-color: rgba(219, 98, 98, 0.3);
    padding-left: 10px;
}

.tc-date-show {
    font-weight: bold;
}

.tc-event-date-wrap span {
    opacity: 0.9;
}

.tc-event-location {
    padding:0;
    margin: 0;
    float: left;
    width: 100%;
    background-size: 25px;
}

.tc-event-location p {
    margin-bottom: 0;
}

.tclist-events {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    min-height: 250px;
    margin-top: 25px;
    transition: 0.5s linear;
}

.tc-calendar-date-wrap span {
    float: left;
    width: 100%;
    font-size: 15px;
}

body .ms-options-wrap > .ms-options {
    position: relative;
}

body .tc-fullwidth-date {
    width: 100%;
    text-align: left;
}


/* PAGINATION */

.tc-events-wrap .pagination ul li {
    display: inline-block;
}

.tc-events-wrap .pagination {
    width: 100%;
}

.tc-listing-loader {
    display: block;
    width: 30px;
    height: 30px;
    position: relative;
    margin: 100px auto 0 auto;
    border: 4px solid #Fff;
    top: 50%;
    animation: loader 2s infinite ease;
}

.tc-loader-inner {
    vertical-align: top;
    display: inline-block;
    width: 100%;
    background-color: #ebebeb;
    animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(180deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-inner {
    0% {
        height: 0%;
    }

    25% {
        height: 0%;
    }

    50% {
        height: 100%;
    }

    75% {
        height: 100%;
    }

    100% {
        height: 0%;
    }
}

@media screen and (max-width: 768px) {

    .tclist-filter-fields {
        flex: 1 0 100%;
    }
}

@media screen and (max-width: 540px) {

    .tclist-filter-fields {
        flex-direction: column;
    }
}

@media screen and (max-width: 375px) {

    .tc-wrap-date-around {
        flex-direction: column;
    }
}