/**
 * 1:1 port of the Roncalli theme's _calendar.scss (modules/_calendar.scss),
 * with theme CSS variables resolved to concrete values so the plugin can
 * render correctly without the theme being installed. Selectors are
 * namespaced (.module__woogency-calendar / .block__woogency-tickets-calendar)
 * so this block can coexist with the original psl-tickets-calendar-block
 * on the same page.
 *
 * Theme variables resolved here:
 *   --black:       #000
 *   --white:       #FFF
 *   --beige:       #FAF1E0
 *   --dark-beige:  #E2C599
 *   --red:         #C02B3E
 *   --blue:        #02658E
 *   --step--6:     clamp(1.4rem, calc(1.02rem + 1.05vw), 2rem)
 */

.block__woogency-tickets-calendar__container {
    width: 100%;
}

.module__woogency-calendar.fc .fc-scrollgrid {
    border: 0;
}

.module__woogency-calendar.fc .fc-scrollgrid-sync-table {
    border-spacing: 8px;
    border-collapse: separate;
}

.module__woogency-calendar.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 150px;
}

.module__woogency-calendar.fc .fc-scroller-liquid-absolute {
    position: static;
}

.module__woogency-calendar.fc .fc-view-harness {
    height: auto !important;
    margin: 0 -8px;
}

.module__woogency-calendar.fc .fc-view-harness-active > .fc-view {
    position: static;
}

.module__woogency-calendar.fc td,
.module__woogency-calendar.fc th {
    border: 0;
    background: unset;
}

.module__woogency-calendar.fc .fc-header-toolbar {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #000;
}

.module__woogency-calendar.fc .fc-toolbar-title {
    font-size: clamp(1.4rem, calc(1.02rem + 1.05vw), 2rem);
}

.module__woogency-calendar.fc .fc-button-primary {
    border: 0;
    box-shadow: none !important;
}

.module__woogency-calendar.fc .fc-day {
    color: #000;
    border-radius: 8px;
}

.module__woogency-calendar.fc .fc-day:not(.fc-day-disabled):not(.fc-col-header-cell) {
    background: #FAF1E0;
}

.module__woogency-calendar.fc .fc-col-header-cell {
    background: none;
    text-align: left;
    font-weight: 400;
    text-transform: uppercase;
    padding-left: 10px;
}

.module__woogency-calendar.fc .fc-daygrid-day-frame:before,
.module__woogency-calendar.fc .fc-daygrid-day-frame:after,
.module__woogency-calendar.fc .fc-daygrid-day-events:before,
.module__woogency-calendar.fc .fc-daygrid-day-events:after,
.module__woogency-calendar.fc .fc-daygrid-event-harness:before,
.module__woogency-calendar.fc .fc-daygrid-event-harness:after {
    display: none;
}

.module__woogency-calendar.fc .fc-daygrid-day-top {
    position: absolute;
    top: 6px;
    right: 8px;
    line-height: 1;
    font-weight: 600;
}

.module__woogency-calendar.fc .fc-daygrid-day-top a:after {
    content: '.';
}

.module__woogency-calendar.fc .fc-daygrid-event-dot {
    display: none;
}

.module__woogency-calendar.fc .fc-event-title {
    font-weight: 400;
    text-transform: uppercase;
}

.module__woogency-calendar.fc .fc-daygrid-day-events {
    padding-top: 8px;
}

.module__woogency-calendar.fc .fc-daygrid-day-events .fc-daygrid-day-bottom {
    display: none;
}

.module__woogency-calendar.fc .fc-daygrid-event-harness:not(:last-child) {
    margin-bottom: 8px;
}

.module__woogency-calendar.fc .fc-event {
    position: relative;
    padding-left: 24px;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.module__woogency-calendar.fc .fc-event:hover,
.module__woogency-calendar.fc .fc-event:focus {
    color: #C02B3E;
    background: none;
}

.module__woogency-calendar.fc .fc-event:before {
    content: '';
    width: 5px;
    height: 5px;
    background: #000;
    position: absolute;
    top: 6px;
    left: 10px;
}

.module__woogency-calendar.fc a.fc-event:not([href]) {
    pointer-events: none;
}

@media screen and (max-width: 1100px) {
    .module__woogency-calendar.fc .fc-col-header-cell {
        font-size: 14px;
    }
}

@media screen and (max-width: 900px) {
    .module__woogency-calendar.fc .fc-col-header-cell {
        font-size: 12px;
    }

    .module__woogency-calendar.fc .fc-daygrid-day-events {
        padding-top: 24px;
    }

    .module__woogency-calendar.fc .fc-event {
        padding-left: 16px;
        font-size: 12px;
    }

    .module__woogency-calendar.fc .fc-event:before {
        left: 6px;
    }
}

@media screen and (max-width: 767px) {
    .module__woogency-calendar.fc .fc-list {
        border: 0;
    }

    .module__woogency-calendar.fc .fc-list-day th {
        background: #E2C599;
    }

    .module__woogency-calendar.fc .fc-list-sticky .fc-list-day > * {
        z-index: 1;
    }

    .module__woogency-calendar.fc .fc-view-harness {
        height: auto !important;
        border-radius: 4px;
        overflow: hidden;
        margin: 0;
    }

    .module__woogency-calendar.fc .fc-view-harness-active > .fc-view {
        position: static;
    }

    .module__woogency-calendar.fc .fc-event {
        color: #000;
        background: #FAF1E0;
        font-size: 16px;
    }

    .module__woogency-calendar.fc .fc-list-event-dot {
        border-radius: 0;
        border-color: #000;
    }

    .module__woogency-calendar.fc .fc-event:before {
        display: none;
    }
}

/* Background-variant overrides — fire only when the block sits inside a
   themed wrapper (.bg__red / .bg__carpet / .bg__midnight / .bg__beige).
   In a non-theme install these selectors never match and do nothing. */
.bg__red .module__woogency-calendar .fc-header-toolbar,
.bg__carpet .module__woogency-calendar .fc-header-toolbar,
.bg__midnight .module__woogency-calendar .fc-header-toolbar {
    border-color: #FFF;
}

.bg__red .module__woogency-calendar .fc-col-header-cell,
.bg__carpet .module__woogency-calendar .fc-col-header-cell,
.bg__midnight .module__woogency-calendar .fc-col-header-cell {
    color: #FFF;
}

.bg__red .module__woogency-calendar .fc-button-primary,
.bg__carpet .module__woogency-calendar .fc-button-primary,
.bg__midnight .module__woogency-calendar .fc-button-primary {
    color: #000;
    background: #FFF;
}

.bg__beige .module__woogency-calendar .fc-day:not(.fc-day-disabled):not(.fc-col-header-cell) {
    color: #FFF;
    background: #02658E;
}

.bg__beige .module__woogency-calendar .fc-event:before {
    background: #FFF;
}

.bg__beige .module__woogency-calendar .fc-event:hover,
.bg__beige .module__woogency-calendar .fc-event:focus {
    color: #000;
}
