/* 🎯 Kalendri konteiner */
.bronny-calendar {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
}

/* 🗓️ Nädalapäevade rida */
.bronny-weekdays {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 8px;
}

/* 🗓️ Päevanimed */
.bronny-day-name {
    width: 40px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #444;
}

/* 📅 Nädalad */
.bronny-week {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

/* 📆 Kuupäevad */
.bronny-day {
    width: 45px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ccc;
    font-weight: 500;
}

.bronny-day.free {
    background-color: #ccffcc;
}

.bronny-day.pending {
    background-color: #fff3cd;
}

.bronny-day.booked {
    background-color: #f8d7da;
}

.bronny-day.empty {
    visibility: hidden;
    pointer-events: none;
}

/* ✅ Vormikast jääb kalendri laiusesse */
.bronny-calendar .bronny-inline-form-wrapper {
    max-width: 90%;
    width: 900%;
    margin: 8px 0;
    box-sizing: border-box;
}

/* 🧍 Vormirea sisu – kompaktselt */
.bronny-inline-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px;
    padding: 8px 8px 0px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* Kitsad väljad */
.bronny-inline-form-wrapper input[type="text"],
.bronny-inline-form-wrapper input[type="email"] {
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    width: 70px;
}

/* Kompaktne nupp */
.bronny-inline-form-wrapper .bronny-submit-button {
    padding: 4px 7px;
    height: 28px;
    font-size: 12.5px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.bronny-inline-form-wrapper .bronny-submit-button:hover {
    background: #005f8d;
}

/* Teavitus */
.bronny-inline-form-wrapper .bronny-message {
    width: 100%;
    font-size: 13px;
    margin-top: 4px;
}

/* Valitud päev */
.bronny-day.selected {
    outline: 2px solid #0073aa;
    position: relative;
    z-index: 2;
}

.bronny-day.selected::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #0073aa;
}

/* 📌 Värvilegend kastid ja paigutus */
.bronny-legend {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.bronny-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border: 1px solid #999;
    display: inline-block;
    border-radius: 2px;
}

/* 🎨 Staatuste värvid */
.legend-box.free {
    background: #ccffcc;
}

.legend-box.pending {
    background: #fff3cd;
}

.legend-box.confirmed {
    background: #f8d7da;
}

.bronny-day.past {
    background-color: #eee !important;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

/* 🎯 Kalendri kuuvahetuse nupud */
.bronny-nav-button {
    background: #fff !important;
    border: 1px solid #ccc !important;
    padding: 4px 12px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    cursor: pointer;
    color: #333 !important;
    text-transform: none !important;
    font-weight: normal !important;
    box-shadow: none !important;
}

.bronny-nav-button:hover {
    background: #f2f2f2 !important;
}


/* 📱 Mobiilis murra vertikaalseks */
@media (max-width: 600px) {
    .bronny-inline-form-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .bronny-inline-form-wrapper input,
    .bronny-inline-form-wrapper .bronny-submit-button {
        width: 100%;
    }
}

.bronny-day.in-range {
    background-color: #cceeff;
    border-color: #66ccff;
}
