/****************************************
*   Reservation | Select Date Contents
**  Base
**  Back Button
**  Calendar
****************************************/

/****************************************
** Base
****************************************/

#content .back-button, .calendar_button {
    border: 1px #754621 solid;
    background-color: #fff;
    color: #754621;
    padding-left: 0.5em;
    padding-right: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2;
    margin-top: 1em;
    margin-bottom: 1em;
    border-radius: 0.3em;
    -webkit-border-radius: 0.3em;
    -moz-border-radius: 0.3em;
    -ms-border-radius: 0.3em;
    -o-border-radius: 0.3em;
    white-space: nowrap;
}

/****************************************
**  Back Button
****************************************/
button {
    cursor: pointer;
}

.back-button {
    margin-left: auto;
    font-size: 0.9em;
}

.back-button:not(.large) {
    width: max-content;
}

.back-button.large {
    padding: 0.7em;
}

/****************************************
**  Calendar
****************************************/

.calendar_button {
    padding-left: 1em;
    padding-right: 1em;
    justify-content: space-between;
}

.calendar_button:disabled {
    border: 1px solid #C4C4C4;
    color: #C4C4C4;
}

.calendar_button:disabled img {
    filter: grayscale(100%) opacity(0.5);
    -webkit-filter: grayscale(100%) opacity(0.5);
}

.calendar_button img {
    width: 6px;
    height: 10px;
}

.calendar_button [src*="left"] {
    margin-right: 0.5em;
}

.calendar_button [src*="right"] {
    margin-left: 0.5em;
}

.calendar_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1em;
    border: 1px #754621 solid;
}

.calendar th, .calendar td {
    border: 1px #999 solid;
    text-align: center;
    vertical-align: middle;
}

.calendar thead {
    color: #754621;
    line-height: 1.2;
}

.calendar thead th {
    padding: 0.5em 0;
}

.calendar tbody td {
    height: 2.5em;
    color: #D91319;
    vertical-align: middle;
}

.calendar thead .saturday {
    background-color: #CEE5F2;
}

.calendar thead .sunday {
    background-color: #FFDEE7;
}

.calendar tbody th {
    background-color: #F8F2EE;
    padding: 0 5px;
}

.calendar td img {
    width: 1em;
    height: 1em;
}

.calendar span {
    border: none;
}

.calendar :disabled + div {
    background-color: #F0F0F0;
    height: 100%;
}

.calendar :not(:disabled) + div {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar input {
    display: none;
}

.calendar-date{
    font-size: 13px;
}


@media only screen and (max-width: 768px) {
    .calendar{
        font-size: 12px;
    }
    #content .back-button, .calendar_button{
        font-size: 12px;
    }
}

@media only screen and (max-width: 450px) {
    .calendar tbody td {
        line-height: 14px;
    }

    .calendar span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;  
        overflow: hidden;
        border:none;
        text-overflow: ellipsis;
        width:43px;
        border: none;
        font-size:10px;
        margin-top: 9px;
    }

    .calendar :disabled + div {
    }

    p.time span {
        display: block;
        text-align: left;
    }

    .reservation-flow {
        font-size:11px;
    }

}

@media only screen and (max-width: 320px) {

    .calendar span {
        width:35px;
        margin-top: 9px;
    }

}

@media only screen and (max-width: 600px) {

    .calendar span {
        width: 35px;
        margin: 0;
        padding: 0 0 6px 0;
    }

    .calendar tbody td {
        line-height: 20px;
    }

    .calendar span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;  
        overflow: hidden;
        border:none;
        text-overflow: ellipsis;
        border: none;
        font-size:10px;
        text-align: center;
        margin-top: 9px;
    }

    .calendar :disabled + div {
        overflow: hidden;
        text-align: center;
    }

    p.time span {
        display: block;
        text-align: left;
    }

    .reservation-flow {
        font-size:11px;
    }


}