.webko-events table td,
.webko-events table th {
    border: 1px solid #eee;
}

.webko-events table tbody>tr:nth-child(odd)>td,
.webko-events table tbody>tr:nth-child(odd)>th {
    background-color: #fff;
}

.webko-events .fc-view>table {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

.fc-unthemed td.fc-today {
    background: #fcf8e3 !important;
}

.fc-content:before {
    content: attr(data-type);
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    background: rgb(0 0 0 / 8%);
    padding: 5px;
    text-align: center;
}

.fc-toolbar h2 {
    text-transform: capitalize;
    font-weight: bold;
}

button.fc-next-button.fc-button.fc-button-primary {
    margin-left: 5px;
}


th.fc-day-header.fc-widget-header {
    text-transform: capitalize;
    padding: 15px;
    background: #123F39;
    color: #fff;
}

.fc-scroller.fc-day-grid-container {
    overflow: visible !important;
    height: 100% !important;
}

.fc-row table {
    margin-bottom: 0;
    padding: 15px;
    border-top: solid 1px #eee !important;
}

.fc-unthemed .fc-content,
.fc-unthemed .fc-divider,
.fc-unthemed .fc-list-heading td,
.fc-unthemed .fc-list-view,
.fc-unthemed .fc-popover,
.fc-unthemed .fc-row,
.fc-unthemed tbody,
.fc-unthemed td,
.fc-unthemed th,
.fc-unthemed thead {
    border-color: #eee;
}

.fc-day-grid-event .fc-content {
    white-space: initial;
}

a.fc-day-grid-event {
    border-radius: 2px;
    padding: 10px;
    color: #3a494b !important;
    border: 0;
    transition: ease .2s all;
    position: relative;
    top: 0;
}

.type-workshop {
    background: rgba(33, 158, 121, 0.1);
}

.type-ferie {
    background: rgba(246, 179, 167, 0.1);
}

.type-hold {
    background: rgba(47, 151, 199, 0.1);
}

.type-andet {
    background: #eee;
}

a.fc-day-grid-event.hover {
    box-shadow: 0px 8px 20px -10px rgba(0, 0, 0, 0.2);
    top: -2px;
}

.fc-button {
    padding: 10px 15px !important;
    border: solid 2px #f2f2f2 !important;
    font-size: 14px;
}

.fc-button-primary:focus {
    outline: none;
    box-shadow: none;
}

.fc-list-view td.fc-widget-header {
    padding: 15px;
    text-transform: capitalize;
    font-weight: bold;
    background: #123F39 !important;
    color: #fff !important;
    border-top: solid 15px #fff;
    border-left: solid 1px #123F39;
    border-right: solid 1px #123F39;
    border-bottom: solid 1px #123F39;
}

.fc-list-view span.fc-list-heading-main {
    margin-right: 5px;
}

td.fc-list-item-time.fc-widget-content {
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    width: 30%;
}

td.fc-list-item-marker.fc-widget-content {
    width: 0%;
}

td.fc-list-item-title.fc-widget-content {
    width: 70%;
}

td.fc-list-item-title.fc-widget-content a {
    color: #123F39;
    font-size: 14px;
    padding: 15px;
    display: block;
    line-height: 1.3;
}

table.fc-list-table {
    table-layout: initial;
}

.fc-list-view .fc-scroller {
    height: 100% !important;
}



.webko-events-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.webko-events-legend span {
    display: block;
    width: 10px;
    height: 10px;
}

.webko-events-legend div {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #eee;
    padding: 6px 10px;
    color: rgba(0, 0, 0, .8);
    border-radius: 3px;
}

.fc-button-primary,
.fc-button-primary:active,
.fc-button-primary:focus {
    color: #fff;
    background-color: #123F39 !important;
    border: 0 !important;
}

.fc-button-primary:hover {
    border: 0 !important;
    color: #FCF6EF !important;
    background-color: #488772 !important;
}

.fc-button-primary:disabled,
.fc-button-primary:disabled:hover {
    background: #eee !important;
    border: 0 !important;
    color: #666 !important;
    padding: 10px 15px;
}

@media screen and (max-width: 768px) {
    .fc-toolbar {
        flex-direction: column;
    }

    .fc-toolbar .fc-left {
        flex: 1 100%;
        margin-bottom: 10px;
    }

    .fc-toolbar h2 {
        font-size: 21px;
        text-align: center;
    }

    .jet-woo-products-list__item .product-description {
        font-size: 14px;
        line-height: 1.5;
        text-overflow: ellipsis;
        overflow: hidden;
        width: 230px;
        height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 15px;
    }

    .jet-woo-products-list button.button.alt {
        width: 100%;
    }

    .fc-unthemed td {
        border-color: rgba(0, 0, 0, 0.05);
    }

    .webko-events-legend {
        display: none;
    }
}

/* Popup */
.event-popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.event-popup-inner {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
}

.event-popup-content {
    width: 800px;
    background: #fff;
    border-radius: 13px;
    padding: 50px;
    color: #123F39;
}

.event-popup-header {
    display: flex;
    gap: 30px;
    align-items: center;
}

.event-popup-image img {
    width: 100%;
    height: 127px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.event-popup-image {
    width: 127px;
    flex-shrink: 0;
}

.event-popup-title {
    font-size: 25px;
    line-height: 1.3;
    font-family: 'Roboto Slab';
    font-weight: bold;
    margin-bottom: 5px;
}

.event-popup-type {
    font-size: 18px;
    font-family: 'Roboto Slab';
}

.event-popup-data {
    border-top: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
    padding: 10px 0;
    margin: 20px 0;
}

.event-popup-data-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-family: 'Roboto Slab';
    align-items: center;

}

.event-popup-data-row span:first-child {
    font-weight: bold;
}

.event-popup-description-title {
    font-weight: bold;
    margin-bottom: 5px;
}

button.event-popup-close {
    all: unset;
    background-color: #EEEEEE;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 80px;
    float: right;
    cursor: pointer;
    margin-top: 30px;
}

.fc-event-container {
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .event-popup-header {
        flex-direction: column-reverse;
    }

    .event-popup-content {
        max-width: 90%;
        max-height: 90%;
        overflow-y: auto;
    }

    .event-popup-image {
        width: 100%;
    }

    .event-popup-image img {
        height: auto;
        aspect-ratio: 1;
    }
}