/* Slot booking - front office styles */

.slotbooking-selected {
    margin-top: .5rem;
    font-weight: 700;
}

.slotbooking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.slotbooking-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
}

.slotbooking-modal__dialog {
    position: relative;
    max-width: 520px;
    margin: 5vh auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.slotbooking-modal__header,
.slotbooking-modal__footer {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slotbooking-modal__footer {
    border-bottom: none;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

.slotbooking-modal__title {
    margin: 0;
    font-size: 1.1rem;
}

.slotbooking-modal__close {
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.slotbooking-modal__body {
    padding: 1.25rem;
    overflow-y: auto;
}

.slotbooking-datenav {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.slotbooking-datenav__input {
    flex: 1;
}

.slotbooking-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: .5rem;
}

.slotbooking-slot {
    padding: .5rem;
    border: 1px solid #ccc;
    background: #f7f7f7;
    border-radius: 3px;
    cursor: pointer;
}

.slotbooking-slot.is-unavailable {
    opacity: .4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slotbooking-slot.is-selected {
    background: #2fb5d2;
    color: #fff;
    border-color: #2fb5d2;
}

.slotbooking-message {
    margin-top: 1rem;
    color: #c00;
    min-height: 1.2em;
}

#slotbooking-checkout-alert ul {
    margin: .5rem 0 0;
}

.slotbooking-cart-recap {
    margin: 1rem 0;
    border: 1px solid #2fb5d2;
    border-radius: 4px;
    padding: .75rem 1rem;
    background: #f6fbfd;
}

.slotbooking-cart-recap .h6 {
    margin: 0 0 .5rem;
    color: #2fb5d2;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.slotbooking-cart-list {
    margin: 0;
    padding-left: 1.2rem;
}

.slotbooking-cart-note {
    margin: .5rem 0 0;
    font-size: .85rem;
    color: #777;
}
