.appointment__box {
    max-width: 100%;
    padding: 42px 30px;
    position: relative;
    border-radius: 15px;
    box-shadow: 0px 20px 30px rgba(70, 70, 70, 0.05);

    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: cover;
}
.appointment__headline {
    font-weight: 500;
    font-size: 24px;
    line-height: 25px;
    color: #FCFCFC;
    margin: 0 0 20px;
}
.appointment__row {
    margin: -10px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.appointment__col {
    flex: 0 0 16.666%;
    max-width: 16.666%;
    padding: 10px;
}
.appointment__group {
    position: relative;
}
.appointment__title {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #FCFCFC;
}
.appointment__input {
    border: 1px solid #A29A97;
    border-radius: 10px;
    background-color: transparent;
    display: inline-block;
    width: 100%;
    padding: 8px 10px;
    line-height: 18px;

    color: #fff;
}
.appointment__input:focus {
    outline: 0;
    border-color: #F32020;
}
.appointment__input:read-only {
    border-color: #A29A97;
    cursor: pointer;
}
div.appointment__input {
    cursor: pointer;
    position: relative;
}
div.appointment__input.disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}
.appointment__data-box {
    position: absolute;
    top: 110%;
    left: 0;
    z-index: 10;
    width: 126%;
    border: 1px solid #A29A97;
    background-color: #FCFCFC;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
    display: none;
}
div.appointment__input.active .appointment__data-box {
    display: block;
}
.appointment__data {
    max-height: 336px;
    overflow-y: auto;
    padding: 0;
}
.appointment__data-item {
    padding: 10px;
    color: #141414;
}
.appointment__data-item:hover {
    background-color: #e0e0e0;
}
.appointment__data-item.disabled {
    background-color: #dedede;
    cursor: not-allowed;
}
.appointment__input-select {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    padding-right: 10px;
}
.appointment__input-select-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 5px;
    fill: #FCFCFC;
    display: block;
}
.appointment__btn {
    margin-top: 23px;
    width: 100%;
    line-height: 18px !important;
    border: 1px solid #F32020 !important;
}
.appointment__confid {
    margin-top: 8px;
    font-weight: 500;
    font-size: 12px;
    line-height: 13px;
    letter-spacing: 0.02em;
    color: #F0F0F0;
}

/* === MODAL CALENDAR === */
.appointment-modal {
    opacity: 0;
    visibility: hidden;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background-color: rgba(0,0,0,0.25);
}
.appointment-modal.hide {
    transition: opacity 0.25s, visibility 0.25s;
}
.appointment-modal.show {
    opacity: 1;
    visibility: visible;
}
.appointment-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    max-width: 560px;
    max-height: 95vh;
    overflow: hidden;
    background-color: #fff;
    border-radius: 20px;
    padding: 1.25rem;

    transform: translate(-50%, -50%) scale(.95);
    transition: transform 0.25s;
}
.appointment-modal.show .appointment-modal__dialog {
    transform: translate(-50%, -50%) scale(1);
}
.appointment-modal__close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 18px;
    height: 18px;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.appointment-modal__close-icon {
    display: block;
    width: inherit;
    height: inherit;
}
.appointment-modal__body {
    padding-top: 30px;
}
.appointment-modal__row {
    margin: 0 -10px;
    display: flex;
}
.appointment-modal__col {
    padding: 0 10px;
    flex: 0 0 50%;
}
.appointment-modal__col--sm {
    border-left: 1px solid #dedede;
}
.appointment-modal__title {
    font-weight: 500;
    font-size: 22px;
    line-height: 24px;
    margin-bottom: 8px;
}
.appointment-modal__message {
    font-weight: 500;
    text-align: center;
    font-size: 24px;
    line-height: 38px;
}
.appointment-modal .datepicker-cell.selected, 
.appointment-modal  .datepicker-cell.selected:hover {
    background-color: #f32020;
}

.timelist {
    margin: -5px;
    display: flex;
    flex-wrap: wrap;

    max-height: 88vh;
    overflow-y: auto;
}
.timelist-col {
    flex: 0 0 25%;
    padding: 5px;
}
.timelist-btn {
    border: none;
    background-color: transparent;
    border-radius: 4px;
    display: block;
    width: 100%;
    cursor: pointer;
    padding: 0;
    height: 2.25rem;
    line-height: 2.25rem;
    letter-spacing: 0.05em;
}
.timelist-btn:hover {
    background-color: #f9f9f9;
}
.timelist-btn.active {
    background-color: #f32020;
    color: #fff;
}
.timelist-btn.disabled {
    color: #dbdbdb;
    background-color: transparent;
    user-select: none;
    cursor: default;
}
button.btn.appointment-modal__formgroup {
    display: block;
    width: 100%;
    margin: 10px 0;
    background-color: #6b6b6b;
    font-size: 16px;
    line-height: 1;
    font-weight: 300;
    border-radius: 5px;
    padding: 7px 5px;
}
button.btn.appointment-modal__formgroup:hover {
    background-color: #454545;
}
.appointment-modal__formgroup-text {
    font-size: 14px;
    line-height: 15px;
    color: #2d2d2d;
    font-weight: 300;
}
#warningListStatus {
    font-size: 14px;
    margin-top: 10px;
    color: #fff;
}
/* === END MODAL CALENDAR === */

@media screen and (max-width: 1474px) {
    .appointment__col {
        flex-basis: 33.333%;
        max-width: 33.333%;
    }
}
@media screen and (max-width: 810px) {
    .appointment__col {
        flex-basis: 50%;
        max-width: 50%;
    }
}
@media screen and (max-width: 575px) {
    .appointment {
        padding-left: 0;
        padding-right: 0;
    }
    .appointment__box { padding: 20px; }
    .appointment__col {
        flex-basis: 100%;
        max-width: 100%;
    }
    .appointment__btn {
        margin-top: 0;
    }

    .appointment-modal__dialog {
        padding: 0.75rem;
        max-height: 100vh;
        border-radius: 0;
        overflow: auto;
    }
    .appointment-modal__close {
        top: 10px;
        right: 10px;
    }
    .appointment-modal__body {
        padding-top: 0;
    }
    .appointment-modal__row {
        flex-wrap: wrap;
        margin: -10px;
    }
    .appointment-modal__col {
        flex: 0 0 100%;
        padding: 10px;
    }
    .appointment-modal__col--sm {
        border-left: none;
    }
    .timelist { max-height: none; }
    .appointment-modal__title {
        font-size: 20px;
        line-height: 22px;
    }
    #datepicker .datepicker-picker,
    #datepicker .datepicker-view,
    #datepicker .datepicker-grid {
        width: 100%;
    }
}