.mgk-calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mgk-calendar-table th,
.mgk-calendar-table td {
    width: 14.28%;
    height: 80px;
    overflow: hidden;
    vertical-align: top;
    text-align: center;
    padding: 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.mgk-day.free {
    background-color: #e9fbe9;
}

.mgk-day.booked {
    background-color: #fff4e6;
}

.mgk-day .mgk-booking-title {
    color: orange; 
    font-size: 0.8em;
    margin-top: 3px;
    font-weight: normal;
}

.mgk-day.disabled .mgk-booking-title {
    color: #0073aa; 
}

.mgk-calendar-nav th {
    cursor: pointer;
    background: #f1f1f1;
}

.mgk-nav {
    text-align: center;
    user-select: none;
}

.mgk-day-number {
    font-weight: bold;
    margin-bottom: 2px;
}

.mgk-calendar-table thead tr {
    height: 1px !important;
}

.mgk-calendar-table th {
    height: 1px !important;
    padding: 2px 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

.mgk-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.mgk-calendar-nav button {
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 13px;
}

.mgk-calendar-title {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    flex-grow: 1;
}

.mgk-day.disabled {
    background-color: #d9ecff !important;
    color: #333;
}

/* --- FrontEnd Calendar ----- */

.mgk-calendar {
    width: 100%;
    max-width: 650px;
    flex: 1 1 45%;
    margin: 0 10px;
}

.mgk-two-calendars {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .mgk-two-calendars {
        flex-direction: column;
        align-items: center;
    }

    .mgk-two-calendars .mgk-calendar {
        width: 100%;
        max-width: 400px;
    }
}

.mgk-calendar-nav-frontend {
    text-align: center;
    margin-bottom: 30px;
}

span#mgk-calendar-title {
    font-size: 20px;
}

.mgk-calendar-nav-frontend button {
    padding: 5px 15px;
    margin: 0 20px;
    font-size: 14px;
    cursor: pointer;
    background: #f1f1f1;
    border: 1px solid #ccc;
}

.mgk-calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.mgk-calendar-table th,
.mgk-calendar-table td {
    width: 14.28%;
    height: 80px;
    overflow: hidden;
    vertical-align: top;
    text-align: center;
    padding: 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.mgk-day.disabled {
    background-color: #cce5ff;
    color: #000;
}

.mgk-booking-title {
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.2em;
}

.mgk-day-number {
    font-size: 18px;
    font-weight: 100;
    padding: 10px 0;
}

.mgk-legend {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.mgk-legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 1px solid #ccc;
    vertical-align: middle;
}
.mgk-legend-box.free {
    background-color: #e9fbe9;
}
.mgk-legend-box.booked {
    background-color: #fff4e6;
    margin-left: 30px;
}

.mgk-day-price {
    font-size: 0.9em;
    color: #969696;
    margin-top: 3px;
}