.ec-event-title {
    font-family: "Inter", Arial, sans-serif;
    font-weight: 500 !important;
    white-space: normal !important;
    line-height: 1.2 !important;
}

.ec-event-time {
    white-space: normal !important;
    line-height: 1.0 !important;
}

/* @media (max-width:600px){
    .ec-event-time {
        font-size: 12px !important;
    }
    .ec-event-title {
        font-size: 13px !important;
    }
}
@media (min-width:601px) {
    .ec-event-time {
        font-size: 11px !important;
    }
    .ec-event-title {
        font-size: 12px !important;
    }
} */

.ec-event-time {
    font-size: 12px !important;
}
.ec-event-title {
    font-size: 13px !important;
}

/* Important for overriding slotHeight! */
.ec-time-grid .ec-time, .ec-time-grid .ec-line {
    height: 34px;
}

input, select {
    box-sizing: border-box !important;
    height: 38px !important;
    border-color: #e1e1e1 !important;
    border-radius: 0 !important;
}

.ec-prev, .ec-next {
    box-sizing: content-box !important;
    width: 17.75px !important;
    height: 22px !important;
    align-content: center !important;
}

.ec-title {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

/* Correctly align header title on mobile. */
.ec-title-date-range,
.ec-title-date-start {
    display: inline-flex;
    align-items: baseline;
}
.ec-title-date-separator {
    margin: 0 0.25em;
}
@media (max-width: 599px) {
    .ec-toolbar {
        justify-content: flex-start;
    }

    .ec-toolbar .ec-start {
        flex: 0 0 auto;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .ec-toolbar .ec-center {
        flex: 1 1 0;
        min-width: 0;
    }

    .ec-toolbar .ec-end {
        display: none;
    }

    .ec-title {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    .ec-title-date-range {
        flex-direction: column;
        align-items: center;
    }

    .ec-title-date-start {
        display: inline-block;
        position: relative;
    }

    .ec-title-date-separator {
        position: absolute;
        left: 100%;
        margin: 0 0 0 0.25em;
    }
}

.ec h2 {
    color: black !important;
    /* font-size: 20px !important; */
}

.ec h3, .ec h4, .ec h5, .ec h6 {
    font-weight: 400;
}

.ec-event {
    border: 0.1px solid white !important;
}

/* Fix text overflowing to next event. */
.ec-time-grid .ec-event {
    clip-path: inset(0);
}
.ec-time-grid .ec-event-body {
    min-width: 0;
}
.ec-time-grid .ec-event-body h4 {
    display: block;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ec-event-body {
    cursor: pointer;
}
