/* --- Desktop Table Styles --- */
.gcc-calendar-wrap {
    margin: 2em auto;
    max-width: 1200px;
    font-family: 'Montserrat', Arial, sans-serif;
}
.gcc-calendar-table {
    display: block;
}
.gcc-calendar-table table {
    width: auto;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Days of week (header row) */
.gcc-calendar-table th {
    background: #2495dd;
    color: #fff !important;
    font-weight: bold;
    font-size: 1.13em;
    padding: 0;
    text-align: left;
    width: 149px;
    height: 40px;
    border: none;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
}
.gcc-calendar-table th:last-child {
    border-right: none;
}
.gcc-calendar-table th:first-child {
    background: transparent !important;
    color: transparent !important;
    border: none;
}

/* First cell in table (top-left) */
.gcc-calendar-table .gcc-corner {
    background: transparent !important;
    border: none;
    width: 119px;
    height: 40px;
    padding: 0;
}

/* Time column */
.gcc-calendar-table td.gcc-time {
    background: #ebecec;
    color: #232323;
    font-weight: bold;
    font-size: 1.04em;
    width: 119px;
    min-width: 119px;
    max-width: 119px;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 15px;
    padding-right: 0;
    border: none;
    /* No right border here, prevents double-thick white border effect */
    border-bottom: 4px solid #fff;
}

/* Class cell */
.gcc-calendar-table td.gcc-class {
    background: #ebecec;
    width: 149px;
    min-width: 149px;
    max-width: 149px;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    vertical-align: top;
    text-align: left;
    padding: 16px 12px 8px 15px;
    border: none;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
}
.gcc-calendar-table td.gcc-class:last-child {
    border-right: none;
}

/* Class time in cell */
.gcc-class-time {
    font-weight: 300;
    font-size: 1em;
    font-family: inherit;
    color: #222;
    margin-top: 2px;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
    font-style: normal;
}
@supports (font-variation-settings: normal) {
    .gcc-class-time {
        font-variation-settings: "wght" 300;
    }
}

/* Empty cell */
.gcc-calendar-table td.gcc-empty {
    background: #f1f2f2;
    width: 149px;
    min-width: 149px;
    max-width: 149px;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    border: none;
    padding: 0;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
}
.gcc-calendar-table td.gcc-empty:last-child {
    border-right: none;
}

/* Remove last row's bottom border */
.gcc-calendar-table tr:last-child td {
    border-bottom: none !important;
}
/* Remove last column's right border */
.gcc-calendar-table tr td:last-child,
.gcc-calendar-table tr th:last-child {
    border-right: none !important;
}

.gcc-class-title {
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 2px;
}
.gcc-class-desc {
    font-size: 0.96em;
    color: #222;
    margin-top: 2px;
}

.gcc-calendar-table th,
.gcc-calendar-table td {
    box-sizing: border-box;
}

/* --- Mobile styles (updated for 1240px breakpoint and time vertical centering) --- */
.gcc-calendar-mobile {
    display: none;
}
@media (max-width: 1240px) {
    .gcc-calendar-table { display: none; }
    .gcc-calendar-mobile { display: block; }
    .gcc-mobile-day {
        background: #fff;
        margin-bottom: 18px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }
    .gcc-mobile-day-title {
        background: #1890d5;
        color: #fff;
        font-weight: bold;
        font-size: 1.18em;
        padding: 13px 14px 11px 14px;
    }
    .gcc-mobile-class {
        border-bottom: 1px solid #ececec;
        padding: 13px 14px;
        background: #f7f7f7;
        display: flex;
        align-items: center;
        min-height: 42px;
    }
    .gcc-mobile-class-title {
        font-weight: bold;
        font-size: 1.05em;
        color: #232323;
        margin-bottom: 0;
        /* For left alignment inside flex */
        margin-right: 10px;
        display: flex;
        align-items: center;
    }
    .gcc-mobile-class-time {
        font-size: 1em;
        color: #444;
        font-weight: normal;
        margin-left: auto;
        display: flex;
        align-items: center;
        /* vertically centers the time to match the class name */
    }
    .gcc-mobile-class-desc {
        font-size: 0.96em;
        color: #333;
        margin-top: 2px;
        clear: both;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        display: block;
    }
    .gcc-no-class {
        padding: 13px 14px;
        color: #888;
        font-style: italic;
    }
}