/* the theme styles the booking forms, the plugin adds the booking list and the dialog */

/* list of the times already booked */

.salbos-booking-list-block{
    width: 100%;
}

.salbos-booking-list{
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* the theme puts a dot in front of every list item, a booking row needs none */

#salbos-booking-list .salbos-booking-list li::before{
    content: none;
    margin: 0;
}

.salbos-booking-row{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 1rem 1.125rem;
    background: var(--cont-color);
    color: var(--font-color);
    border: var(--border) solid var(--border-color);
    border-radius: var(--top-left) var(--top-right) var(--bottom-left) var(--bottom-right);
    transition: box-shadow .2s ease;
    position: relative;
}

.salbos-booking-row:hover{
    box-shadow: 0.188rem 0.25rem 1.375rem 0.188rem rgba(104, 104, 104, var(--box-shadow));
}

/* the line is covered while the booking leaves salbos */

.salbos-booking-overlay{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--cont-color);
    color: var(--font-color);
    border-radius: var(--top-left) var(--top-right) var(--bottom-left) var(--bottom-right);
    animation: salbos-fade-in .2s ease;
    z-index: 2;
}

.salbos-booking-overlay .mi-o{
    font-size: 1.25rem;
    line-height: 1;
    color: var(--link-color);
}

.salbos-booking-overlay-text{
    color: var(--subfont-color);
}

@keyframes salbos-fade-in{
    from{ opacity: 0; }
    to{ opacity: 1; }
}

.salbos-booking-info{
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1 1 auto;
    min-width: 0;
}

.salbos-booking-title{
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--subfont-color);
}

.salbos-booking-customer{
    font-family: 'Default-font-bold', serif;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.3;
    color: var(--font-color);
}

.salbos-booking-time{
    font-size: 0.9375rem;
    color: var(--subfont-color);
}

.salbos-booking-remove{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--font-color);
    opacity: var(--opacity);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.salbos-booking-remove .mi-o{
    font-size: 1.25rem;
    line-height: 1;
}

.salbos-booking-remove:hover{
    color: var(--error-color);
    opacity: 1;
}

/* the two actions under the list */

.salbos-booking-actions{
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 1rem 0;
}

.salbos-booking-actions .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}


/* the two names of the customer, side by side */

.salbos-name-row{
    display: flex;
    align-items: stretch;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

/* both halves are the same width and their inputs line up, even when a label wraps */

#salbos_product_data_form .salbos-name-row .salbos-field{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 0;
    min-width: 0;
}

#salbos_product_data_form .salbos-name-row .salbos-field label{
    display: block;
    padding-left: 0;
    white-space: nowrap;
}

#salbos_product_data_form .salbos-name-row .salbos-field input{
    width: 100%;
}

/* the terms checkbox of the dialog */

#salbos_product_data_form .salbos-rules{
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 1.75rem 0;
}

#salbos_product_data_form .salbos-rules input[type="checkbox"]{
    flex: 0 0 auto;
    margin: 0.125rem 0 0 0;
}

#salbos_product_data_form .salbos-rules label{
    flex: 1 1 auto;
    padding: 0;
    line-height: 1.5;
}

/* date and time of the dialog, side by side */

.salbos-time-row{
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 1rem 0;
}

/* the theme gives every field of the form a row of its own, these two share one */

#salbos_product_data_form .salbos-time-row .salbos_datepicker,
#salbos_product_data_form .salbos-time-row #times.salbos-times{
    flex: 1 1 11rem;
    min-width: 11rem;
    margin: 0;
}

#salbos_product_data_form .salbos-time-row input.salbos_datepicker,
#salbos_product_data_form .salbos-time-row select.salbos_time_select{
    width: 100%;
    height: 2.875rem;
    padding: 0 0.875rem;
    color: var(--font-color);
    cursor: pointer;
}

.salbos-no-times{
    padding: 0.75rem 0;
    color: var(--subfont-color);
}

/* how many times the same service is booked */

.salbos-quantity-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 1rem 0;
}

#salbos_product_data_form .salbos-quantity-row label{
    padding: 0;
}

.salbos-quantity{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* the same flat counter the theme uses for guests and addons */

#salbos_product_data_form .salbos-quantity .salbos-quantity-step{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    padding: 0;
    margin: 0;
    border: 0;
    background-color: var(--cont-color);
    color: var(--font-color);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s ease;
}

#salbos_product_data_form .salbos-quantity .salbos-quantity-step:hover{
    color: var(--link-color);
}

#salbos_product_data_form .salbos-quantity .salbos-quantity-step:disabled{
    opacity: .35;
    cursor: not-allowed;
    color: var(--font-color);
}

/* the arrows of a number field have no place next to the two buttons */

#salbos_product_data_form .salbos-quantity input{
    width: 2.75rem;
    min-width: 2.75rem;
    text-align: center;
    padding: 0;
    color: var(--font-color);
    -moz-appearance: textfield;
    appearance: textfield;
}

#salbos_product_data_form .salbos-quantity input::-webkit-outer-spin-button,
#salbos_product_data_form .salbos-quantity input::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

/* the hint stands in for the button until the booking is complete */

.salbos-booking-submit{
    text-align: center;
}

.salbos-booking-hint{
    display: inline-block;
    padding: 0.75rem 0;
    color: var(--subfont-color);
}

.salbos-booking-error{
    margin: 0.75rem 0 0 0;
    text-align: center;
    color: var(--error-color);
}

#salbos-booking-dialog{
    padding: 0.5rem 0.25rem;
}

@media ( max-width: 30rem ){
    #salbos_product_data_form .salbos-name-row .salbos-field,
    #salbos_product_data_form .salbos-time-row .salbos_datepicker,
    #salbos_product_data_form .salbos-time-row #times.salbos-times{
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* the popup calendar of the dialog, a day that cannot be picked has to look like it */

.salbos-datepicker .ui-datepicker-calendar td.ui-state-disabled,
.salbos-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable{
    opacity: var(--opacity);
    cursor: default;
}

.salbos-datepicker .ui-datepicker-calendar td.ui-state-disabled .ui-state-default,
.salbos-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable .ui-state-default{
    color: var(--subfont-color);
    text-decoration: none;
    cursor: default;
}
