.katsastus-booking-wrap {
    border: 1px solid #d9d9d9;
    padding: 16px;
    margin-top: 20px;
    background: #fdfdfd;
}

.katsastus-calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.katsastus-calendar-controls button {
    border: 1px solid #ccc;
    background: #fff;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.katsastus-calendar-controls button:hover:not(:disabled) {
    background: #f0f0f0;
}

.katsastus-calendar-controls button:disabled {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
    width: 0;
    padding: 0;
    border: none;
}

.k-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.k-head {
    font-weight: 600;
    text-align: center;
    font-size: 12px;
}

.k-day {
    min-height: 34px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
}

.k-day.available {
    background: #2e8b57;
}

.k-day.full {
    background: #b22222;
    cursor: not-allowed;
}

.k-day.unavailable,
.k-day.empty {
    background: #888;
    cursor: not-allowed;
}

.k-day.selected {
    outline: 3px solid #111;
}

.katsastus-legend .dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 4px;
    margin-left: 10px;
}

.katsastus-legend .dot.available { background: #2e8b57; }
.katsastus-legend .dot.full { background: #b22222; }
.katsastus-legend .dot.unavailable { background: #888; }

#katsastus-booking-form .form-row {
    margin-bottom: 8px;
}

#katsastus-booking-form input,
#katsastus-slot {
    width: 100%;
    padding: 8px;
}

#katsastus-form-message {
    margin-top: 12px;
    font-weight: 600;
}

#katsastus-form-message.error {
    color: #b22222;
}

#katsastus-form-message.success {
    color: #2e8b57;
}

@media (max-width: 640px) {
    .k-grid {
        gap: 4px;
    }

    .k-day {
        min-height: 30px;
        font-size: 12px;
    }
}

#katsastus-booking-form {
    display: none;
}

#katsastus-booking-form.visible {
    display: block;
}

.katsastus-slot-section {
    display: none;
}

.katsastus-slot-section.visible {
    display: block;
}
