////
/// Calendar Widget.
///
/// @group  Components
/// @author Sky Shabatura <theme@sky.camp>
/// @link   https://taproot-theme.com
////

.wp-calendar-table {

    background: white;
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
    border: 1px solid var( --colors--meta-medium );
    border-top: none;

    tbody {
        border-bottom: 1px solid var( --colors--meta-medium );
    }

    thead {
        background-color: var( --colors--meta-light );
    }

    thead, tr:not(:last-child) {
        border-bottom: 1px solid var( --colors--meta-medium );
    }

    th, td {
        padding: 0.4em;
        border: none;
        text-align: center;

        &:not(:last-child) {
            border-right: 1px solid var( --colors--meta-medium );
        }
    }

    tfoot {

        td {
            border: none;

            &:first-child {
                text-align: left;
            }

            &:last-child {
                text-align: right;
            }
        }
    }

    caption {
        background-color: var( --sidebar--accent-color );
        color: white;
        padding: 0.5em;
    }
}

.wp-calendar-nav {
    display: flex;
    justify-content: space-between;
}