.resa-widget {
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    padding: 15px;
    border: 0;
}

.resa-widget__title {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.82);
}

.resa-widget__subtitle {
    margin: 4px 0 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: .86rem;
}

.resa-widget__month {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 10px;
}

.resa-widget__month-label {
    font-weight: 700;
    font-size: .95rem;
}

.resa-widget__nav {
    border: 1px solid #e1e6ea;
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}

.resa-widget__weekdays,
.resa-widget__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.resa-widget__weekdays {
    margin-bottom: 6px;
}

.resa-widget__weekday {
    text-align: center;
    font-size: .75rem;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

.resa-widget__day,
.resa-widget__day-empty {
    min-height: 34px;
    border-radius: 5px;
}

.resa-widget__day-empty {
    background: transparent;
}

.resa-widget__day {
    border: 1px solid #edf1f4;
    background: #f9fbfc;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
}

.resa-widget__day.is-available {
    background: #dff4e4;
    border-color: #b8dfc4;
}

.resa-widget__day.is-selected {
    background: #4b8b3b;
    border-color: #4b8b3b;
    color: #fff;
}

.resa-widget__day.is-today {
    outline: 2px solid rgba(75, 139, 59, 0.25);
    outline-offset: 1px;
}

.resa-widget__slots {
    margin-top: 12px;
    border-top: 1px solid #eef1f4;
    padding-top: 12px;
}

.resa-widget__slots-title {
    margin: 0 0 8px;
    font-size: .88rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.resa-widget__slot-list {
    display: grid;
    gap: 8px;
    max-height: 210px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.resa-widget__slot {
    border: 1px solid #e5eaee;
    border-radius: 5px;
    background: #fff;
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.84);
}

.resa-widget__slot small {
    display: block;
    color: rgba(0, 0, 0, 0.58);
    margin-top: 2px;
}

.resa-widget__slot.is-selected {
    border-color: #4b8b3b;
    background: #eef8f0;
}

.resa-widget__actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.resa-widget__msg {
    font-size: .82rem;
    color: rgba(0, 0, 0, 0.62);
}

.resa-widget__save {
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    background: var(--bg1);
    color: #fff;
    cursor: pointer;
}

.resa-widget__save[disabled] {
    opacity: .5;
    cursor: default;
}

body.has-resa-modal {
    overflow: hidden;
}

.resa-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.resa-modal.is-open {
    display: block;
}

.resa-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 23, 34, 0.45);
}

.resa-modal__dialog {
    position: relative;
    width: min(760px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    margin: 12px auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.resa-modal__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #edf1f4;
}

.resa-modal__title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.resa-modal__subtitle {
    margin-top: 4px;
    color: rgba(0, 0, 0, 0.65);
    font-size: .9rem;
    font-weight: 700;
}

.resa-modal__duration {
    margin-top: 2px;
    color: rgba(0, 0, 0, 0.62);
    font-size: .84rem;
}

.resa-modal__close {
    border: 1px solid #e1e6ea;
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1;
    font-size: 1.2rem;
}

.resa-modal__body {
    padding: 14px 16px 16px;
}