/* MsBookingPicker — horizontal day strip + time pills (storefront service booking) */
.ms-bp {
    direction: rtl;
    text-align: right;
}

.ms-bp__days-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.ms-bp__nav {
    flex: 0 0 auto;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.ms-bp__nav:hover:not(:disabled) {
    border-color: #94a3b8;
    color: #334155;
}

.ms-bp__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.ms-bp__days {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 0.2rem 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    touch-action: pan-x;
    user-select: none;
}

.ms-bp__days::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ms-bp__days.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.ms-bp__days.is-dragging .ms-bp__day {
    pointer-events: none;
}

.ms-bp__day {
    flex: 0 0 auto;
    min-width: 5.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 0.55rem 0.45rem;
    text-align: center;
    cursor: pointer;
    appearance: none;
    font: inherit;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.ms-bp__day:hover:not(:disabled):not(.is-selected) {
    border-color: #cbd5e1;
}

.ms-bp__day.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
    color: #2563eb;
}

.ms-bp__day.is-disabled,
.ms-bp__day:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ms-bp__day__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.ms-bp__day__date {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.ms-bp__day.is-selected .ms-bp__day__date {
    color: #2563eb;
}

.ms-bp__day__count {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
    line-height: 1.2;
}

.ms-bp__times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.ms-bp__time {
    min-width: 4.25rem;
    border: 1px solid #86efac;
    border-radius: 999px;
    background: #fff;
    color: #15803d;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ms-bp__time:hover:not(.is-selected) {
    background: #f0fdf4;
    border-color: #4ade80;
}

.ms-bp__time.is-selected {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.ms-bp__empty,
.ms-bp__loading {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    padding: 1.5rem 0.5rem;
    margin: 0;
}

.ms-bp__loading {
    color: #94a3b8;
}

@media (max-width: 575.98px) {
    .ms-bp__day {
        min-width: 4.85rem;
    }

    .ms-bp__nav {
        width: 2rem;
        height: 2rem;
    }

    .ms-bp__days-outer {
        gap: 0.25rem;
    }
}
