.fm-booking-calendar {
    max-width: 760px;
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    font-family: inherit;
}

.fm-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fm-calendar-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.fm-calendar-title-wrap {
    flex: 1;
}

.fm-calendar-nav {
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fm-calendar-nav:hover,
.fm-calendar-nav:focus {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

.fm-calendar-weekdays,
.fm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.fm-calendar-weekdays {
    margin-bottom: 8px;
}

.fm-calendar-weekday {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.fm-calendar-day {
    min-height: 58px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fm-calendar-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    font-weight: 700;
}

.fm-calendar-day.is-outside-month {
    opacity: 0.35;
}

.fm-calendar-day.is-unavailable {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.fm-calendar-day.is-bookable {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.fm-calendar-day.is-bookable:hover,
.fm-calendar-day.is-bookable:focus {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-1px);
}

.fm-calendar-day.is-selected {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.16);
}

.fm-calendar-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.16);
}

.fm-booking-slots-wrap {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.fm-booking-slots-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.fm-booking-slots-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #0f172a;
}

.fm-booking-slots-selected-date {
    color: #64748b;
    font-size: 14px;
    text-align: right;
}

.fm-booking-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
}

.fm-booking-slot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fm-booking-slot:hover,
.fm-booking-slot:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.fm-booking-slot.is-selected {
    background: #eef2ff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.fm-booking-slot.is-disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.fm-booking-slot-time {
    font-weight: 700;
}

.fm-booking-slot-meta {
    color: #64748b;
    font-size: 13px;
}

.fm-booking-empty,
.fm-booking-info-box {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.fm-booking-action-wrap {
    margin-top: 20px;
}

.fm-booking-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid #111827;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.fm-booking-submit-button:hover,
.fm-booking-submit-button:focus {
    background: #020617;
    transform: translateY(-1px);
}

.fm-booking-submit-button.is-disabled,
.fm-booking-submit-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.fm-booking-action-note {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 640px) {
    .fm-booking-calendar {
        padding: 16px;
        border-radius: 16px;
    }

    .fm-calendar-day {
        min-height: 44px;
        border-radius: 10px;
        font-size: 13px;
    }

    .fm-calendar-weekdays,
    .fm-calendar-grid {
        gap: 5px;
    }

    .fm-booking-slots-header {
        display: block;
    }

    .fm-booking-slots-selected-date {
        margin-top: 6px;
        text-align: left;
    }

    .fm-booking-submit-button {
        width: 100%;
    }
}
