/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
#y360-calendar .shortcode-filtered {
    display: none !important;
}

#y360-calendar div.icon {
    display: inline-block;
    line-height: 1;
}

#y360-calendar div.icon svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    display: inline-block;
    transform: translateY(-1px);
}

#y360-calendar div.icon svg path {
    fill: currentColor;
}

#y360-calendar tr.class-row.canceled td {
    text-decoration: line-through;
}

#y360-calendar .mobile-label {
    display: none;
}

#y360-calendar {
    max-width: 1600px;
    padding: 2rem;
    color: #212529;
    /* color: red; */
    line-height: 1.4;
    font-size: 16px;
    border-radius: 8px;
    background: white;
    text-align: left;
}

#y360-calendar .main-row {
    display: flex;
}

#y360-calendar .main-row .filter-side {
    width: 25%;
    padding-right: 32px;
}

#y360-calendar .main-row .calendar-side {
    width: 75%;
}

#y360-calendar .filter-item {
    display: flex;
    align-items: flex-start;
    line-height: 20px;
    font-size: 16px;
    margin-top: 0.5rem;
    cursor: pointer;
}

#y360-calendar .filter-item label {
    line-height: 1.4;
    font-size: 16px;
    margin: 0;
    padding: 0;
    transform: translateY(-2px);
    padding-left: 8px;
}

#y360-calendar .schedules-header,
#y360-calendar .filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

#y360-calendar .schedules-header-left {
    display: flex;
    align-items: center;
}

#y360-calendar .filters-header {
    color: var(--y360-color);
    font-size: 24px;
}

#y360-calendar .filter-header {
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    font-size: 20px;
}

#y360-calendar .filter-options .filter-item input {
    background: none;
    box-shadow: none;
    height: unset;
    padding: 0;
    border: none;
}

#y360-calendar .filters > div:first-child {
    margin-bottom: 24px;
}

#y360-calendar .filters-header .filter-reset {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-size: 16px;
}

#y360-calendar .schedules-header .arrow-navigation {
    display: flex;
    align-items: center;
    min-width: 280px;
    justify-content: space-between;
}

#y360-calendar .schedules-header .arrow-navigation .prev-day,
#y360-calendar .schedules-header .arrow-navigation .next-day {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid var(--y360-color);
    color: var(--y360-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 0;
    line-height: 0;
    cursor: pointer;
}

#y360-calendar .schedules-header .arrow-navigation .prev-day.disabled,
#y360-calendar .schedules-header .arrow-navigation .next-day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#y360-calendar .schedules-header .arrow-navigation .current-day {
    margin: 0 20px;
    font-size: 24px;
    color: var(--y360-color);
}

#y360-calendar .filters .filter-header .icon {
    display: none;
}

#y360-calendar .schedule-header,
#y360-calendar .class-row {
    display: flex;
    padding: 8px 16px;
    align-items: center;
}

#y360-calendar .schedule-header > div,
#y360-calendar .class-row > div {
    flex-grow: 1;
    flex-basis: 0;
}

#y360-calendar .pdf-btn,
#y360-calendar .view-today {
    background: var(--y360-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

#y360-calendar .view-today {
    margin-left: 1rem;
}

#y360-calendar .schedule-location a,
#y360-calendar .schedule-class a {
    color: var(--y360-color) !important;
}

@media (max-width: 1200px) {
    #y360-calendar {
        transform: none;
    }

    #y360-calendar .main-row {
        flex-direction: column;
    }

    #y360-calendar .main-row .filter-side {
        margin-bottom: 24px;
        padding-right: 0;
    }

    #y360-calendar .main-row .filter-side,
    #y360-calendar .main-row .calendar-side {
        width: 100%;
    }

    #y360-calendar .filters .filter-header {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(0, 0, 0, 0.05);
        padding: 8px 16px;
        border-radius: 8px;
        border-bottom: none;
    }

    #y360-calendar .filter-options {
        padding: 0 16px;
        height: auto;
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.2s ease-in-out, padding 0.2s ease-in-out;
    }

    #y360-calendar .filter-header.open + .filter-options {
        max-height: 1000px;
        padding-top: 8px;
    }

    #y360-calendar .filters .filter-header .icon {
        display: block;
        transition: transform 0.2s ease-in-out;
        transform: rotate(90deg);
    }

    #y360-calendar .filters .filter-header.open .icon {
        transform: rotate(-90deg);
    }

    #y360-calendar .filter-header {
        margin-bottom: 0;
    }

    #y360-calendar .filters > div:first-child {
        margin-bottom: 16px;
    }

    #y360-calendar .schedules-header .arrow-navigation {
        width: 100%;
    }
}

@media (max-width: 992px) {
    #y360-calendar .schedules-header {
        flex-direction: column;
        align-items: center;
    }

    #y360-calendar .schedules-header .arrow-navigation {
        min-width: unset;
    }

    #y360-calendar .schedules-header-left {
        display: flex;
        flex-direction: column;
    }

    #y360-calendar .schedules-header-left .view-today {
        margin: 12px 0;
    }

    #y360-calendar .schedules-header .btn {
        margin: 0;
    }

    #y360-calendar .class-row > div {
        padding: 0 5px;
    }

    #y360-calendar .mobile-label {
        display: block;
        font-weight: bold;
    }

    #y360-calendar .schedule-header {
        display: none;
    }

    #y360-calendar .class-row {
        flex-direction: column;
        text-align: center;
        align-items: unset;
        border-bottom: 1px solid var(--y360-color);
        background-color: transparent !important;
        padding: 8px 0;
    }

    #y360-calendar .class-row > div {
        padding: 8px;
        background-color: rgba(0, 0, 0, 0.05);
    }

    #y360-calendar .class-row > div:nth-child(odd) {
        background-color: transparent;
    }

    #y360-calendar .class-row > div:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    #y360-calendar .schedules-header-left {
        width: 100%;
    }

    #y360-calendar .schedule-header,
    #y360-calendar .class-row {
        padding: 8px;
    }

    #y360-calendar .schedules-header .arrow-navigation .current-day {
        font-size: 20px;
    }
}

#y360-calendar .filters-collapse {
    display: none;
}

/*******************************************/
/* ---------------- NEW ------------------ */
/*******************************************/

#y360-calendar.style-new .main-row {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    flex-wrap: wrap;
}

/* ----- FILTER ----- */

#y360-calendar.style-new .main-row .filter-side {
    position: sticky;
    bottom: 10px;

    width: unset;
    padding: 15px 20px;
    border-radius: 10px;
    background: white linear-gradient(-45deg, color-mix(in srgb, var(--y360-color) 3%, transparent), color-mix(in srgb, var(--y360-color) 5%, transparent));
    border: 1px solid var(--y360-color);
}

/*collapse icons*/
#y360-calendar.style-new .filters-collapse {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#y360-calendar.style-new .filters-collapse__open,
#y360-calendar.style-new .filters-collapse__closed {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 35px;
    height: 35px;
    background: #fff;
    border: 1px solid var(--y360-color);
    border-radius: 1000px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    transition: all 0.2s ease;
}
#y360-calendar.style-new .filters-collapse__open {
    transform: rotate(225deg);
}
#y360-calendar.style-new .filters-collapse__closed {
    opacity: 0;
    visibility: hidden;
    width: 50px;
    height: 50px;
}

#y360-calendar.style-new .filters-collapse__open svg,
#y360-calendar.style-new .filters-collapse__closed svg {
    width: 30px;
    height: 30px;
}
#y360-calendar.style-new .filters-collapse__open svg path,
#y360-calendar.style-new .filters-collapse__closed svg path {
    fill: var(--y360-color);
}

#y360-calendar.style-new .main-row .filter-side,
#y360-calendar.style-new .main-row .filter-side .filters,
#y360-calendar.style-new .main-row .filter-side .filters-header {
    transition: all 0.4s ease;
}
#y360-calendar.style-new .main-row .filter-side.collapsed {
    background: transparent;
    border: none;
}

#y360-calendar.style-new .main-row .filter-side .filters,
#y360-calendar.style-new .main-row .filter-side .filters-header {
    max-height: 10000px;
}
#y360-calendar.style-new .main-row .filter-side.collapsed .filters,
#y360-calendar.style-new .main-row .filter-side.collapsed .filters-header {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

#y360-calendar.style-new .main-row .filter-side.collapsed .filters-collapse__open {
    opacity: 0;
    visibility: hidden;
}
#y360-calendar.style-new .main-row .filter-side.collapsed .filters-collapse__closed {
    opacity: 1;
    visibility: visible;
}

/*header*/

#y360-calendar.style-new .filters-header {
    margin-bottom: 15px;
    font-weight: 600;
}

#y360-calendar.style-new .filters-header .filter-reset {
    padding: 10px 18px;
    background: var(--y360-color);
    border-radius: 8px;

    font-weight: 500;
    color: #fff;
}

#y360-calendar.style-new .filters {
    display: flex;
    gap: 2%;
}
#y360-calendar.style-new .filters > * {
    flex: 0 0 49%;
    margin-bottom: 10px !important;
}

/*options*/

#y360-calendar.style-new .filter-options {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: start;
    align-items: start;
}

#y360-calendar.style-new .filter-item {
    position: relative;
    margin: 0;
}
#y360-calendar.style-new .filter-options .filter-item input {
    display: none;
}

/*unchecked*/
#y360-calendar.style-new .filter-item input[type="checkbox"] + label {
    padding: 6px 10px;
    border-radius: 6px;

    transition: all 0.3s ease;
}
#y360-calendar.style-new .filter-item input[type="checkbox"] + label::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;

    background: var(--y360-color);
    border-radius: 6px;
    opacity: 0.1;

    transition: all 0.3s ease;
}

/*hover*/
#y360-calendar.style-new .filter-item:hover input[type="checkbox"] + label::before {
    opacity: 0.2;

    transition: all 0.3s ease;
}

/*checked*/
#y360-calendar.style-new .filter-item input[type="checkbox"]:checked + label {
    color: #fff;

    transition: all 0.3s ease;
}
#y360-calendar.style-new .filter-item input[type="checkbox"]:checked + label::before {
    opacity: 1;

    transition: all 0.3s ease;
}

/*functionaltiy*/
#y360-calendar.style-new .filters .filter-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    border-bottom: none;
}

#y360-calendar.style-new .filters .filter-header {
    margin-bottom: 10px;
    background: color-mix(in srgb, var(--y360-color) 12%, transparent);
}

#y360-calendar.style-new .filter-options {
    padding: 0 16px;
    height: auto;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out, padding 0.2s ease-in-out;
}

#y360-calendar.style-new .filter-header.open + .filter-options {
    max-height: 1000px;
    padding-top: 8px;
}

#y360-calendar.style-new .filters .filter-header .icon {
    display: block;
    transition: transform 0.2s ease-in-out;
    transform: rotate(90deg);
}

#y360-calendar.style-new .filters .filter-header.open .icon {
    transform: rotate(-90deg);
}

#y360-calendar.style-new .filter-header {
    margin-bottom: 0;
}

#y360-calendar.style-new .filters > div:first-child {
    margin-bottom: 16px;
}

#y360-calendar.style-new .schedules-header .arrow-navigation {
    width: 100%;
}

/* ----- CALENDAR ----- */

#y360-calendar.style-new .main-row .calendar-side {
    flex: 0 0 100%;
    width: 100%;
}

/*header*/
#y360-calendar.style-new .pdf-btn,
#y360-calendar.style-new .view-today {
    font-weight: 500;
}

/*table*/

#y360-calendar.style-new .schedule-header {
    padding: 15px 15px 12px;
    background: var(--y360-color) !important;
    border-radius: 10px;
    font-weight: 500;
    color: #fff;
}

#y360-calendar.style-new .class-row {
    margin: 10px 0;
    padding: 12px 15px;
    border-radius: 8px;
}

#y360-calendar.style-new .class-row.is-even {
    background: color-mix(in srgb, var(--y360-color) 3%, transparent) !important;
}

#y360-calendar.style-new .class-row.is-odd {
    background: color-mix(in srgb, var(--y360-color) 8%, transparent) !important;
}

#y360-calendar.style-new .schedule-location a,
#y360-calendar.style-new .schedule-class a {
    display: block;
    width: fit-content;
    margin-top: 10px;
    padding: 5px 10px;

    border: 1px solid var(--y360-color);
    border-radius: 8px;
    background: #ffffff88;

    text-decoration: none;
    color: var(--y360-color) !important;
}
#y360-calendar.style-new .schedule-location a:hover,
#y360-calendar.style-new .schedule-class a:hover {
    background: color-mix(in srgb, var(--y360-color) 5%, transparent) !important;
}

@media (max-width: 1200px) {
    #y360-calendar.style-new {
        padding: 20px;
    }

    /* ----- FILTER ----- */

    /* #y360-calendar.style-new .main-row .filter-side {
        max-width: 95%;
    } */

    /*header*/
    #y360-calendar.style-new .filters-header {
        margin-bottom: 20px;
    }
    /*filters*/
    #y360-calendar.style-new .filters {
        flex-wrap: wrap;
        gap: 15px;
    }
    #y360-calendar.style-new .filters > * {
        flex: 0 0 100%;
    }
}

@media (max-width: 992px) {
    /* ----- FILTER ----- */

    /* #y360-calendar.style-new .main-row .filter-side {
        margin: 0 auto;
        max-width: 325px;
    } */

    #y360-calendar.style-new .filter-item {
        flex: 0 0 100%;
    }
    #y360-calendar.style-new .filter-item input[type="checkbox"] + label {
        width: 100%;
    }

    #y360-calendar.style-new .filters-collapse__open,
    #y360-calendar.style-new .filters-collapse__closed {
        bottom: 15px;
        right: 20px;
    }

    #y360-calendar.style-new .main-row .filter-side {
        bottom: -10px;
        width: 100%;
        transform: translateX(-21px);
        padding: 15px 20px 45px;
        border-radius: 0;
        background: white linear-gradient(-45deg, color-mix(in srgb, var(--y360-color) 97%, transparent), color-mix(in srgb, var(--y360-color) 95%, transparent));
        color: #fff;
    }

    #y360-calendar.style-new .filters-header {
        color: #fff;
    }

    #y360-calendar.style-new .filters .filter-header {
        background: #ffffff44;
    }

    #y360-calendar.style-new .filters-header .filter-reset {
        background: #fff;
        color: var(--y360-color);
    }

    #y360-calendar.style-new .filters-collapse__open {
        transform: rotate(-90deg);
    }

    #y360-calendar.style-new .filter-item input[type="checkbox"]:checked + label {
        color: var(--y360-color);
    }
    #y360-calendar.style-new .filter-item input[type="checkbox"] + label::before {
        background: #fff;
    }

    #y360-calendar.style-new .filter-header.open + .filter-options {
        max-height: 250px;
        overflow-y: auto;
    }

    /* ----- CALENDAR ----- */

    #y360-calendar.style-new .class-row {
        padding: 0;
        border: 1px solid var(--y360-color);
    }

    #y360-calendar.style-new .class-row.is-even,
    #y360-calendar.style-new .class-row.is-odd {
        background: #ffffff !important;
    }

    #y360-calendar.style-new .class-row > * {
        background: color-mix(in srgb, var(--y360-color) 5%, transparent);
    }
    #y360-calendar.style-new .class-row > div:nth-child(odd) {
        background-color: transparent;
    }

    #y360-calendar.style-new .schedule-location a,
    #y360-calendar.style-new .schedule-class a {
        margin: 10px auto 5px;
        width: 90%;
    }
}

@media (max-width: 500px) {
    /* #y360-calendar.style-new .main-row .filter-side {
        max-width: 220px;
    } */
}
