.calendar-container {
    margin-bottom: 40px;
}

.calendar__title__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 32px;
}

.calendar__title {
    margin-bottom: 0;
}

.btn.btn-light.calendar__title__container__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    min-width: 163px;
    min-height: 40px;
    padding: 10px 24px !important;
    line-height: normal !important;
    background-color: #635D44 !important;
    border-color: #635D44 !important;
}

.calendar__block {
    max-width: 1680px;
    padding-left: 8px;
    padding-right: 8px;
    margin: 0 auto 12px;
    @media screen and (min-width: 768px) {
        margin-bottom: 32px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

.calendar__block #calendar {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 34px 20px 0;
}

.fc .fc-toolbar.fc-header-toolbar {
    position: relative;
    margin-bottom: 24px;
    justify-content: center;
}

.fc .fc-toolbar-title {
    text-transform: capitalize;
    color: #635D44;
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    @media screen and (min-width: 768px) {
        font-size: 20px;
    }
}

.fc-toolbar-chunk:nth-child(2) {
    display: none;
}

.fc-toolbar-chunk:has(.fc-button-group) {
    position: absolute;
    left: 0;
    width: 100%;
}

.fc .fc-button-group {
    margin-left: 0 !important;
    justify-content: space-between;
    width: 100%;
}

.fc .fc-button-group > .fc-button {
    flex-grow: 0;
    background-color: transparent;
    border-color: transparent;
}

.fc .fc-button-group > .fc-button:active, .fc .fc-button-group > .fc-button:focus, .fc .fc-button-group > .fc-button:focus-visible {
    background-color: transparent;
    border-color: transparent;
    outline: none;
    box-shadow: none;
}

.fc .fc-button-group > .fc-button .fc-icon:before {
    color: #B8B299;
}

.fc .fc-scroller {
    @media screen and (min-width: 768px) {
        margin-bottom: 20px;
    }
}

.fc .fc-col-header-cell-cushion {
    color: #CCC8C4;
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    @media screen and (min-width: 992px) {
        font-size: 20px;
    }
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    border-radius: 50%;
    background-color: #B8B299;
}

.fc .fc-daygrid-day-number {
    color: #1A1918;
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    @media screen and (min-width: 992px) {
        font-size: 20px;
    }
}

.fc .fc-daygrid-day-frame {
    cursor: pointer;
}

.fc .fc-daygrid-day.active-day {
    background-color: rgba(250, 248, 245, 0.55);
}

.fc .fc-daygrid-day-bg .fc-highlight {
    background-color: transparent;
}

.fc .fc-view-harness {
    @media screen and (max-width: 576px) {
        min-height: 320px !important;
    }
}

.fc-scroller.fc-scroller-liquid-absolute {
    height: fit-content;
}

.fc-toolbar-chunk > .fc-button-primary {
    display: none;
}

.btn.btn-light.calendar__title__container__btn svg {
    margin: 0 !important;
}

.fc-theme-standard .fc-scrollgrid {
    border: none;
}

.fc-theme-standard th, .fc-theme-standard td {
    border: none;
}

.fc-scroller.fc-scroller-liquid-absolute tr:not(:last-child) {
    border-bottom: 1px solid #B8B299;
}

.fc-daygrid-day-top {
    justify-content: center;
    padding-top: 4px;
}

.fc-daygrid-day-top .fc-daygrid-day-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 22px;
    @media screen and (min-width: 992px) {
        width: 40px;
        height: 38px;
    }
}

.fc .fc-daygrid-day-bottom {
    display: none;
}

.fc-daygrid-day-events::after, .fc-daygrid-day-events::before {
    content: none;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    width: 52px;
    justify-content: center;
    gap: 8px;
    padding: 6px 6px 12px;
    pointer-events: none;
    @media screen and (max-width: 992px) {
        position: static;
        transform: none;
        width: 26px;
        margin-left: auto;
        margin-right: auto;
        gap: 2px;
    }
}

.fc .fc-daygrid-event-harness {
    height: 16px;
    @media screen and (max-width: 992px) {
        height: 6px;
    }
}

.fc-direction-ltr .fc-daygrid-event.fc-event-end {
    margin: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    @media screen and (max-width: 992px) {
        width: 6px;
        height: 6px;
    }
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: transparent;
}


.open-inspiration__container {
    margin-bottom: 32px;
}

.open-inspiration__btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    background-color: transparent;
    border: none;
    margin-left: auto;
    color: #635D44;
    font-family: "Playfair Display", serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.28px;
    transition: .15s ease-in-out;
    @media screen and (min-width: 768px) {
        font-size: 16px;
    }
}

.open-inspiration__btn svg {
    fill: #B8B299;
    transition: .15s ease-in-out;
}

.open-inspiration__btn:hover {
    color: #c9c4b2;
}

.open-inspiration__btn:hover svg {
    fill: #c9c4b2;
}

.calendar-actions:has(.saved-events__item) .calendar-actions__title {
    color: #B8B299;
    font-family: "Nunito Sans", sans-serif;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.32px;
    font-size: 16px;
}

.calendar-actions:has(.saved-events__item) .saved-events__title {
    display: block;
}

.calendar-actions {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-actions:after {
    content: '';
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 248, 245, 0.55);
    z-index: 1;
    pointer-events: none;
}

.calendar-actions.loading:after {
    display: block;
}

.calendar-actions__title, .saved-events__title {
    margin-bottom: 20px;
    @media screen and (max-width: 768px) {
        margin-bottom: 13px;
        color: #1A1918;
        font-size: 20px;
        font-weight: 400;
        line-height: normal;
        letter-spacing: -0.4px;
    }
}

.saved-events__title {
    display: none;
}

.calendar-actions__container, .saved-events__container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    @media screen and (max-width: 568px) {
        flex-direction: column;
    }
}

.btn.calendar-actions__btn.calendar-btn {
    position: relative;
    min-width: 160px;
    gap: 6px;
    min-height: 40px;
    padding: 10px 13px 10px 35px !important;
    color: #635D44 !important;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    letter-spacing: -0.28px;
    background-color: transparent !important;
}

.btn.calendar-actions__btn.calendar-btn .calendar-btn__image svg {
    pointer-events: none;
    margin-left: 0 !important;
}

.calendar-btn__image {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #544068;
    pointer-events: none;
}

.calendar-btn[data-type="træning"] .calendar-btn__image {
    background-color: #D6692D;
}

.calendar-btn[data-type="morning-feeling"] .calendar-btn__image {
    background-color: #95AB58;
}

.calendar-btn[data-type="evening-feeling"] .calendar-btn__image {
    background-color: #E9AF54;
}

.saved-events__container {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.saved-events__item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    min-width: 160px;
    gap: 6px;
    padding: 10px 13px 10px 35px;
    color: #333;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.28px;
    border-radius: 20px;
    background: #F2EEE8;
    cursor: pointer;
}

.saved-events__item:after {
    position: absolute;
    content: '';
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #544068;
    pointer-events: none;
}

.saved-events__item[data-event-type="træning"]:after {
    background-color: #D6692D;
}

.saved-events__item[data-event-type="morning"]:after {
    background-color: #95AB58;
}

.saved-events__item[data-event-type="evening"]:after {
    background-color: #E9AF54;
}

/*event popup*/

.event-popup {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 43, 43, 0.25);
}

.event-popup.hidden {
    display: none;
}

.event-popup__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 38px;
    width: 100%;
    max-width: 350px;
    min-height: 490px;
    border-radius: 14px;
    background: #F2EEE8;
    @media screen and (min-width: 400px) {
        width: 382px;
    }
}

.event-popup__close {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.event-popup__title {
    margin-bottom: 0;
    color: #212529;
    text-align: center;
    font-size: 27px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.54px;
}

.event-popup__title_date {
    display: block;
}

.event-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn.btn-light.event-popup__button {
    min-width: 183px;
    padding: 7px 13px !important;
    border: 1px solid #635D44 !important;
    background: #635D44 !important;
    color: #F2EEE8;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.28px;
}

.event-popup__button#remove-event {
    color: #635D44 !important;
    background-color: transparent !important;
}
