/* CF7 Booking Calendar – Front-end Styles */

/* Calendar widget container */
.cf7bc-calendar-widget {
    font-family: inherit;
    max-width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    user-select: none;
}

/* Navigation header */
.cf7bc-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.cf7bc-cal-nav button {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 10px;
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    transition: background .15s;
}
.cf7bc-cal-nav button:hover { background: #f0f0f0; }
.cf7bc-cal-month-label { font-weight: 600; font-size: 1em; }

/* Day-of-week header */
.cf7bc-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cf7bc-cal-dow  { text-align: center; font-size: .75em; font-weight: 600; color: #888; padding: 4px 0; }

/* Day cells */
.cf7bc-day {
    text-align: center;
    padding: 6px 2px;
    border-radius: 4px;
    cursor: default;
    font-size: .9em;
    min-height: 32px;
    line-height: 20px;
    transition: background .12s;
}
.cf7bc-day.empty       { visibility: hidden; }
.cf7bc-day.past        { color: #bbb; }
.cf7bc-day.unavailable { color: #bbb; }
.cf7bc-day.available   { cursor: pointer; font-weight: 600; color: #2563eb; }
.cf7bc-day.available:hover { background: #eff6ff; }
.cf7bc-day.selected    { background: #2563eb; color: #fff; border-radius: 50%; }

/* Loading spinner inside calendar */
.cf7bc-loading {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: .9em;
}

/* Time slot selector */
.cf7bc-time-select {
    margin-top: 8px;
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .95em;
}

/* Date display input */
input.cf7bc-date-picker {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    background: #f9f9f9;
    max-width: 320px;
    width: 100%;
    font-size: .95em;
    cursor: default;
}
input.cf7bc-date-picker:focus { outline: none; }
