.bl-freestep-calendar {
    margin: 1.25rem 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.bl-freestep-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bl-freestep-calendar__nav--day {
    align-items: center;
}

.bl-freestep-calendar__day-label {
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
    text-transform: capitalize;
    padding: 0 0.35rem;
}

.bl-freestep-calendar__season {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    margin-bottom: 0.8rem;
}

.bl-freestep-calendar__range {
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.bl-freestep-calendar__range--single {
    display: block;
    margin-bottom: 1rem;
}

.bl-freestep-nav-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.bl-freestep-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bl-freestep-grid {
    display: grid;
    grid-template-columns: 3rem repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bl-freestep-grid__corner {
    min-height: 2.4rem;
}

.bl-freestep-grid__day-head {
    background: #eef2f7;
    border: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.25rem;
    text-transform: capitalize;
}

.bl-freestep-grid__time {
    background: #e2e8f0;
    border-radius: 6px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    padding: 0.25rem;
}

.bl-freestep-grid__cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.25rem;
    min-height: 0;
}

.bl-freestep-grid__slot-empty {
    min-height: 3rem;
    border-radius: 6px;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(226, 232, 240, 0.45) 4px,
        rgba(226, 232, 240, 0.45) 8px
    );
}

.bl-freestep-course {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.bl-freestep-course:last-child {
    margin-bottom: 0;
}

.bl-freestep-course__select,
.bl-freestep-course__select--disabled {
    --gf-local-bg-color: #ffffff;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none;
    background-color: #ffffff !important;
    text-align: left;
    padding: 0.3rem 0.35rem;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
    white-space: normal;
}

.bl-freestep-course__select {
    cursor: pointer;
}

.bl-freestep-course__stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 0;
}

.bl-freestep-course__stack > span {
    display: block !important;
    width: 100% !important;
    float: none !important;
    flex: 0 0 auto !important;
}

.bl-freestep-course__name {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    color: #334155;
    margin: 0;
}

.bl-freestep-course__capacity {
    margin-top: 0.12rem;
    font-size: 0.58rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    text-align: right;
}

.bl-freestep-course__time {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

.bl-freestep-course__price {
    font-size: 0.66rem;
    font-weight: 700;
    color: #475569;
    margin-top: 0.12rem;
    line-height: 1.25;
}

.bl-freestep-price-old {
    text-decoration: line-through;
    font-weight: 600;
    color: #94a3b8;
}

.bl-freestep-price-new {
    font-weight: 700;
    color: #0f766e;
}

.bl-freestep-course__status {
    display: block !important;
    font-size: 0.66rem;
    font-weight: 700;
    color: #b91c1c;
    margin-top: 0.12rem;
}

.bl-freestep-course--full {
    border-color: #fecaca;
    background: #fef2f2;
}

.bl-freestep-course--blocked {
    border-color: #e2e8f0;
    background: #f1f5f9;
    opacity: 0.72;
}

.bl-freestep-course--selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.bl-freestep-course__select--active {
    box-shadow: inset 0 0 0 2px #2563eb;
}

.bl-freestep-course__select--disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.bl-freestep-selected-slot {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
}

.bl-freestep-selected-slot__empty {
    color: #64748b;
}

.bl-freestep-selected-slot__item + .bl-freestep-selected-slot__item {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #dbe3eb;
}

.bl-freestep-selected-slot__label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.bl-freestep-selected-slot__checkbox {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.bl-freestep-selected-slot__hint {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #64748b;
}

.bl-freestep-selected-slot__notice {
    margin-top: 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.82rem;
}

.bl-freestep-loading,
.bl-freestep-error,
.bl-freestep-empty,
.bl-freestep-grid__empty {
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    background: #f8fafc;
}

.bl-freestep-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.bl-freestep-grid__empty {
    grid-column: 1 / -1;
}

.bl-freestep-day-view {
    display: none;
}

.bl-freestep-day-view__slot {
    margin-bottom: 0.65rem;
}

.bl-freestep-day-view__slot:last-child {
    margin-bottom: 0;
}

.bl-freestep-day-view__time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.35rem;
    background: #e2e8f0;
    border-radius: 6px;
}

.bl-freestep-day-view__courses .bl-freestep-course {
    margin-bottom: 0.35rem;
}

.bl-freestep-day-view__courses .bl-freestep-course:last-child {
    margin-bottom: 0;
}

.bl-freestep-day-view__empty {
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    background: #f8fafc;
}

@media (max-width: 900px) {
    .bl-freestep-calendar--mobile .bl-freestep-day-view {
        display: block;
    }

    .bl-freestep-calendar--mobile .bl-freestep-grid {
        display: none;
    }

    .bl-freestep-calendar--mobile .bl-freestep-calendar__nav--week {
        display: none;
    }

    .bl-freestep-calendar--mobile .bl-freestep-calendar__nav--day {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bl-freestep-calendar--mobile .bl-freestep-nav-btn {
        width: 100%;
    }

    .bl-freestep-calendar--mobile .bl-freestep-calendar__day-label {
        order: -1;
        width: 100%;
        padding: 0.15rem 0;
    }
}
