.slot-grid {
    gap: 10px;
}

.slot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(36, 76, 59, .04);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.slot:hover:not(.unavailable) {
    border-color: rgba(36, 76, 59, .45);
    box-shadow: 0 5px 14px rgba(36, 76, 59, .08);
    transform: translateY(-1px);
}

.slot input {
    width: 22px;
    height: 22px;
    margin: 0;
}

.slot span {
    min-width: 0;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.2;
}

.slot > small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e7f1e5;
    color: var(--forest);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.slot-instructor-availability {
    display: none !important;
}

.slot:has(input:checked) {
    outline: none;
    border-color: var(--forest);
    background: #edf3ec;
    box-shadow: 0 0 0 2px rgba(36, 76, 59, .14);
}

.slot.unavailable > small {
    background: #f0f0ed;
    color: var(--muted);
}

.slot.own-hold,
.slot.own-payment-hold {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border: 1px solid var(--gold);
    background: #fff8eb;
}

.slot.own-hold > small,
.slot.own-payment-hold > small {
    background: #fff0c9;
    color: #744800;
}

.slot-hold-actions {
    grid-column: 1 / -1;
    margin-top: 2px;
}

@media (max-width: 760px) {
    .slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .slot {
        min-height: 52px;
        padding: 9px 10px;
        gap: 7px;
    }

    .slot input {
        width: 20px;
        height: 20px;
    }

    .slot span {
        font-size: 1rem;
    }

    .slot > small {
        padding: 4px 7px;
        font-size: .66rem;
    }
}

@media (max-width: 390px) {
    .slot {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .slot > small {
        grid-column: 2;
        justify-self: start;
        margin-top: -2px;
    }
}
