#calendar {
    margin: 0 auto;
    width: fit-content;
}

.cld-main{
    width: 100%;
}
.cld-datetime{
    display: flex;
    column-gap: 32px;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    color: #333;
    font-family: Rubik, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.cld-nav{
    position: relative;
    width: 32px;
    height: 32px;
}
.cld-nav:hover{
    cursor: pointer;
}
.cld-nav:hover svg path{
    fill: #333;
}
.cld-datetime .today {
    width: 160px;
}
.cld-rwd{
    float: left;
}
.cld-fwd{
    float: right;
}
.cld-labels {
    display: flex;
}
.cld-labels, .cld-days{
    padding-left: 0;
}
.cld-label, .cld-day{
    box-sizing: border-box;
    display: inline-block;
    width: 14.28%;
}
.cld-label {
    border-top: 1px solid #CECECE;
    border-left: 1px solid #CECECE;
    background: #F0F0F0;
    color: #333;
    font-family: Rubik, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    padding: 10px 19px;
    text-transform: uppercase;
    text-align: left;
}
.cld-label:last-child {
    border-right: 1px solid #CECECE;
}
.cld-day{
    display: block;
    float: left;
    position: relative;
    margin: 0;
    height: 73px;
    border-top: 1px solid #CECECE;
    border-left: 1px solid #CECECE;
    overflow-y: auto;
}
.cld-day a {
    display: block;
    height: 100%;
}
.cld-day.clickable:hover{
    cursor: pointer;
}
.cld-day.disableDay{
    opacity: 0.5;
}
.cld-day:nth-last-child(-n+7) {
    border-bottom: 1px solid #CECECE;
}

.cld-day:nth-child(7n) {
    border-right: 1px solid #CECECE;
}
.cld-day.nextMonth .cld-number, .cld-day.prevMonth .cld-number{
    color: #CECECE;
}
.cld-number {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px 5px 20px;
}
.cld-number__wrapper {
    text-align: left;
    color: #CECECE;
    font-family: Rubik, sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}
.cld-title {
    text-align: right;
}
.cld-title {
    color: #F30044;
    text-align: right;
    font-family: Rubik, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.cld-title span {
    color: #9C9C9C;
}
.cld-number.postday .cld-number__wrapper{
    color: #333;
}
.cld-number.postday:hover{
    background: #eee;
}
.cld-day:hover{
    background: #eee;
}
.cld-day.today{
    background: #F30044;
}
.cld-day.today .cld-number__wrapper,
.cld-day.today .cld-title,
.cld-day.today .cld-title span {
    color: #FFF;
}
.cld-day.today:hover .cld-number.postday .cld-number__wrapper,
.cld-day.today:hover .cld-number.postday .cld-title,
.cld-day.today:hover .cld-number.postday .cld-title span {
    color: #333;
}

.cld-day.futureDay .cld-number, .cld-day.pastDay .cld-number {
    pointer-events: none;
    color: #ccc;
}

/* POPUP */

.overlay-wrapper {
    position: fixed;
    opacity: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 35, 39, 0.6);
    z-index: 99999;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    -webkit-overflow-scrolling: touch;
    padding-top: 30px;
}

.overlay-wrapper.show {
    visibility: visible;
    opacity: 1
}

.show-popup {
    visibility: visible;
    opacity: 1;
    transition: all .4s ease-in-out
}

.pop-up {
    max-width: 1200px;
    background-color: #FFFFFF;
    width: 100%;
    position: relative;
    text-align: center;
    border-radius: 4px;
    padding: 40px;
    z-index: 99999;
    overflow-y: auto !important;
}

.pop-up__title {
    color: #F30044;
    text-align: center;
    font-family: Rubik, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.pop-up__close {
    position: absolute;
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.pop-up__close:hover svg path {
    stroke: #333;
}

.show-popup {
    visibility: visible;
    opacity: 1;
    transition: all .4s ease-in-out
}

/* Responsive */

@media (max-width: 1240px) {
    .overlay-wrapper {
        padding: 0 18px;
    }
    .pop-up {
        padding: 30px 10px;
    }
    .cld-datetime {
        padding: 20px 0;
    }
}

@media (max-width: 900px) {
    .cld-number {
        padding: 5px 10px 5px 10px;
        height: 65px;
    }
}

@media (max-width: 768px) {
    .overlay-wrapper {
        padding: 0 13px;
    }
}

@media (max-width: 760px) {
    .cld-number__wrapper {
        font-size: 20px;
        line-height: 25px;
    }

    .cld-title {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .pop-up {
        max-width: 304px;
        padding: 32px 12px 24px;
    }
    .pop-up__title {
        font-size: 20px;
        margin-bottom: 26px;
    }
    .pop-up__close {
        width: 24px;
        height: 24px;
    }
    .pop-up__close svg {
        width: 24px;
        height: 24px;
    }
    .cld-datetime {
        column-gap: unset;
        justify-content: space-between;
        border-top: 1px solid #CECECE;
        border-bottom: 1px solid #CECECE;
        margin-bottom: 20px;
    }
    .cld-labels {
        margin-bottom: 20px;
    }
    .cld-label {
        border: none;
        background: unset;
        color: #9C9C9C;
        font-size: 13px;
        padding: 0;
        width: 40px;
        text-align: center;
    }
    .cld-day {
        border: none;
        height: 40px;
    }
    .cld-number {
        height: 100%;
        justify-content: center;
        padding: 0;
    }
    .cld-number__wrapper {
        text-align: center;
    }
    .cld-title {
        display: none;
    }
    .cld-day.today {
        padding: 0;
        border-radius: 100px;
    }
    .cld-label:last-child,
    .cld-day:nth-child(7n),
    .cld-day:nth-last-child(-n+7) {
        border: none;
    }
}

@media (max-width: 360px) {
    .overlay-wrapper {
        padding: 0 8px;
    }
}

@media (max-height: 770px) and (min-width: 601px) {
    .pop-up {
        -webkit-transform: scale(.8);
        transform: scale(.8)
    }

}

@media (max-height: 550px) and (min-width: 601px) {
    .pop-up {
        -webkit-transform: scale(.6);
        transform: scale(.6)
    }

}

@media (max-height: 380px) {
    .pop-up {
        -webkit-transform: scale(.6);
        transform: scale(.5)
    }
}

