/* Date and time picker for booking slots (js/slot-widget.js). */
.slot-widget {
    /* The many date buttons must not count into the width of the parent column (a flex item): otherwise the column
       becomes too wide to stay next to the doctor photo and drops below it. But the widget needs some width: on a phone
       the column has to drop below the photo instead of squeezing it. */
    contain: inline-size;
    min-width: 250px;
    margin-top: 8px;
    padding: 16px;
    background: #f8faff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(40, 90, 200, .12);
    text-align: left;
    color: #101828;
}
.slot-widget button {
    font-family: inherit;
    cursor: pointer;
}
.slot-widget button:disabled {
    cursor: default;
}

.slot-widget__title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.slot-widget__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border-radius: 10px;
    background: #e3edff;
    color: #0a66f5;
}

/* dates */
.slot-widget__dates {
    display: flex;
    min-width: 0;
    align-items: center;
    margin: 14px 0;
}
.slot-widget__strip {
    flex: 1;
    display: flex;
    gap: 6px;
    padding: 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.slot-widget__strip::-webkit-scrollbar {
    display: none;
}
.slot-widget__arrow {
    flex: none;
    width: 30px;
    height: 44px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    background: #eef0f4;
    color: #101828;
}
.slot-widget__arrow:first-child { margin-right: 6px; }
.slot-widget__arrow:last-child { margin-left: 6px; }
.slot-widget__arrow:disabled { opacity: .4; }

.slot-widget__date {
    flex: none;
    min-width: 56px;
    padding: 7px 10px;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    background: #fff;
    color: #101828;
    text-align: center;
    line-height: 1.1;
    scroll-snap-align: start;
}
.slot-widget__day {
    display: block;
    font-size: 22px;
    font-weight: 700;
}
.slot-widget__month {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}
.slot-widget__weekday {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    text-transform: uppercase;
}
.slot-widget__date.is-selected {
    border-color: #0a66f5;
    background: #0a66f5;
    color: #fff;
}

/* time */
.slot-widget__times {
    padding: 14px;
    border: 1px solid #e6eaf2;
    border-radius: 18px;
    background: #fff;
}
.slot-widget__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.slot-widget__time {
    padding: 6px 18px;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    background: #fff;
    color: #101828;
    font-size: 17px;
    font-weight: 600;
}

@media (max-width: 400px) {
    .slot-widget { padding: 12px; }
    .slot-widget__title { font-size: 16px; }
    .slot-widget__arrow { width: 26px; }
    .slot-widget__date { min-width: 50px; padding: 7px 8px; }
    .slot-widget__day { font-size: 20px; }
}
