.tzh-card-calendar {
    background: #ffffff !important;
    margin-top: 0;
    margin-bottom: 0;
    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
}

.tzh-ac-header {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin: 0 auto var(--wp--preset--spacing--30);
}

.tzh-ac-header h3,
.tzh-ac-header h4 {
    margin-top: 0;
}

.tzh-ac-header h4 {
    margin-bottom: 0.5rem;
}

.tzh-ac-weekbar,
.tzh-ac-calendar {
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 0.5rem;
}

.tzh-ac-weekbar {
    margin-bottom: var(--wp--preset--spacing--30);
}

.tzh-ac-nav {
    align-self: center;
    width: 50px;
    height: 50px;
    border: 0;
    background: transparent;
    color: rgb(29 29 27);
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tzh-ac-nav.tzh-ac-days-next {
    justify-content: start;
}

.tzh-ac-nav:hover {
    background: transparent;
}

.tzh-ac-nav::before {
    content: '';
    width: 28px;
    height: 28px;
    border-top: 1px solid rgb(59 59 55);
    border-right: 1px solid rgb(49 49 47);
    display: block;
}

.tzh-ac-week-next::before,
.tzh-ac-days-next::before {
    transform: rotate(45deg);
}

.tzh-ac-week-prev::before,
.tzh-ac-days-prev::before {
    transform: rotate(225deg);
}

.tzh-ac-nav:hover::before {
    border-color: rgb(90 94 76);
}

.tzh-ac-week-prev,
.tzh-ac-week-next {
    width: 25px;
    height: 25px;
}

.tzh-ac-week-prev {
    justify-content: end;
}

.tzh-ac-nav:focus {
    outline-width: 0;
}

.tzh-ac-week-prev::before,
.tzh-ac-week-next::before {
    width: 14px;
    height: 14px;
    border-top-width: 1px;
    border-right-width: 1px;
}

.tzh-ac-weeks-swiper,
.tzh-ac-days-swiper {
    min-width: 0;
    width: 100%;
}

.tzh-ac-days-swiper .swiper-wrapper {
    align-items: stretch;
}

.tzh-ac-day-slide {
    height: auto;
    display: flex;
}

.tzh-ac-week-slide {
    height: auto;
}

.tzh-ac-week-btn {
    width: 100%;
    min-height: 38px;
    border: 2px solid #d7d8ca;
    border-radius: 2px;
    background: transparent;
    color: rgb(29 29 27);
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    text-align: center;
    outline: 0;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 390;
    text-transform: none;
    font-family: var(--wp--preset--font-family--brandon-grotesque);
}

.tzh-ac-week-btn:hover {
    border-color: #babfa9;
}

.tzh-ac-week-btn:focus,
.tzh-ac-week-btn:focus:hover {
    background: #fff;
    outline: 0;
}

.tzh-ac-week-btn.selected {
    background: #e3e5dd;
}

.tzh-ac-status,
.tzh-ac-loading {
    text-align: center;
    padding: 1rem;
}

.tzh-card-calendar .timetable__event>* {
    margin: 0.3rem 0 0.2rem;
}

.tzh-card-calendar .timetable__day h4 {
    margin: 0 0 0.2rem;
    font-weight: 390;
    text-transform: none;
    font-size: 1.125rem;
    line-height: 1.2;
}

.tzh-card-calendar .timetable__day h4+p {
    margin: 0 0 0.2rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

.tzh-card-calendar .timetable__grid {
    display: flex;
    gap: var(--wp--preset--spacing--20);
    justify-content: center;
}

.tzh-card-calendar .timetable__day {
    max-width: none;
    min-width: 0;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
}

.tzh-card-calendar .timetable__slots {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}

.tzh-card-calendar .timetable__slot {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tzh-card-calendar .timetable__slot.is-empty {
    opacity: 0.4;
    background: var(--wp--preset--color--primary);
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.tzh-card-calendar .timetable__slot.is-empty span {
    color: var(--wp--preset--color--foreground);
    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 390;
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--brandon-grotesque);
}

.tzh-card-calendar .timetable__event {
    padding: 1rem;
    background: #d7d8ca;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: auto;
    min-height: 100%;
    text-align: center;
    position: relative;
}

.tzh-card-calendar .timetable__event h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    line-height: 1.25;
    margin-top: 0.8rem;
}

.tzh-card-calendar .timetable__event .timetable__session {
    margin: 0;
    font-size: 0.875rem;
}

.tzh-card-calendar .tk-slot-available {
    color: rgb(29 29 27);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgb(161 167 142);
    display: block;
    max-width: 200px;
    margin: 5px auto;
    position: relative;
    background: #d7d8ca;
}

.tzh-card-calendar .timetable__event .wp-element-button.tk-button.tk-small {
    font-size: 0.875rem;
    padding: 0.35rem 1rem;
}

.tzh-card-calendar .timetable__event::before {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.tzh-card-calendar .timetable__event.is-am::before {
    content: 'DE';
}

.tzh-card-calendar .timetable__event.is-pm::before {
    content: 'DU';
}

.tzh-card-calendar .timetable__event.is-evening::before {
    content: 'ESTE';
}

.tzh-card-calendar .timetable__event .mx-auto {
    margin-top: auto;
}

.tzh-card-calendar .tk-button.tk-small {
    font-size: 0.875rem;
}

@media (min-width: 1397px) {
    .tzh-card-calendar .timetable__event {
        width: 100%;
    }

    .tzh-card-calendar .timetable__slot {
        min-height: 170px;
    }

    .tzh-card-calendar .timetable__day {
        max-width: none;
        min-width: 0;
    }
}

@media (min-width: 700px) {

    .tzh-card-calendar .timetable__slots,
    .tzh-card-calendar .timetable__slot {
        gap: 8px;
    }
}

@media (max-width: 900px) {
    .tzh-ac-calendar {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
    }

    .tzh-card-calendar .timetable__grid {
        justify-content: flex-start;
    }

    .tzh-card-calendar .timetable__day {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .tzh-card-calendar {
        padding-left: var(--wp--preset--spacing--20);
        padding-right: var(--wp--preset--spacing--20);
    }

    .tzh-ac-weekbar,
    .tzh-ac-calendar {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 0.25rem;
    }

    .tzh-ac-nav {
        width: 42px;
        height: 42px;
    }

    .tzh-ac-nav::before {
        width: 24px;
        height: 24px;
        border-top-width: 1px;
        border-right-width: 1px;
    }

    .tzh-ac-week-prev,
    .tzh-ac-week-next {
        width: 21px;
        height: 21px;
    }

    .tzh-ac-week-prev::before,
    .tzh-ac-week-next::before {
        width: 12px;
        height: 12px;
        border-top-width: 1px;
        border-right-width: 1px;
    }
}