.bw-widget {
    font-size: 0.85rem;
    max-width: 280px;
    margin: 0 auto;
}
.bw-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.bw-cal-nav .bw-cal-label {
    font-size: 0.85rem;
}
.bw-cal-nav button {
    background: none;
    border: none;
    color: #ff9800;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}
.bw-cal-nav button:disabled {
    color: #ccc;
    cursor: default;
}
.bw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
}
.bw-cal-grid .bw-dow {
    font-size: 0.68rem;
    color: #999;
    padding: 1px 0 3px;
}
.bw-day {
    padding: 3px 0;
    font-size: 0.78rem;
    line-height: 1.4;
    border-radius: 4px;
    cursor: pointer;
    background: #f8f9fa;
    user-select: none;
}
.bw-day.bw-empty {
    background: none;
    cursor: default;
}
.bw-day.bw-busy {
    background: #f8b4b4;
    color: #a33;
    cursor: not-allowed;
}
.bw-day.bw-past {
    background: none;
    color: #ccc;
    cursor: not-allowed;
}
.bw-day.bw-selected {
    background: #ff9800;
    color: #fff;
    font-weight: bold;
}
.bw-day.bw-in-range {
    background: #ffe0b2;
}
.bw-day:not(.bw-busy):not(.bw-past):not(.bw-empty):hover {
    background: #ffe0b2;
}
.bw-legend {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    color: #999;
}
.bw-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 3px;
    vertical-align: middle;
}
.bw-legend-free {
    background: #f8f9fa;
    border: 1px solid #ddd;
}
.bw-legend-busy {
    background: #f8b4b4;
}
.bw-quote {
    margin: 0.5rem 0;
    padding: 0.5rem 0.7rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
}

.bw-quote-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.15rem 0;
}

.bw-quote-row--muted {
    color: #6c757d;
    font-size: 0.8rem;
}

.bw-quote-row--total {
    font-weight: 700;
    font-size: 0.95rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
}

.bw-options {
    margin: 0.5rem 0;
}

.bw-option-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    cursor: pointer;
}
.bw-msg {
    margin: 0.4rem 0;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
}
.bw-msg.bw-error {
    background: #fdecea;
    color: #a33;
}
.bw-msg.bw-success {
    background: #e6f4ea;
    color: #1e7e34;
}
.bw-form .form-group {
    margin-bottom: 0.6rem;
}
