.cb-modal {
    font-family: Onest, sans-serif;
    display: none;
}

.cb-modal.is-open {
    display: block;
}

.cb-modal__overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-modal__bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.3);
}

.cb-modal__container {
    position: relative;
    z-index: 1000;
    overflow-y: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 700px;
    height: auto;
    background-color: #fff;
    min-height: 100px;
}

.cb-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #2d2d2d;
    border: 0;
    border-radius: 50%;
    background-color: #F2F2F2;
}

.cb-modal__header {
    position: absolute;
    z-index: 100;
    top: 30px;
    right: 30px;
}

.cb-modal__header svg {
    transition: all 0.3s;
    pointer-events: none;
    color: #2d2d2d;
}

.cb-modal__header:hover svg {
    color: #285b4d;
}

.cb-modal__content {
    padding: 30px;
}

.cb-modal__title {
    font-size: 50px;
    font-weight: 500;
    line-height: 100%;
    margin-right: 60px;
    margin-bottom: 30px;
}

.cb-modal__footer{
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cb-modal-notify__text{
    text-align: center;
    font-size: 18px;
}

.cb-modal-notify .cb-modal__container{
    max-width: 550px;
}

@keyframes cbfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cbfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes cbShowIn {
    from {
        transform: scale(0.7);
    }
    to {
        transform: scale(1);
    }
}

@keyframes cbShowOut {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.7);
    }
}

.cb-modal[aria-hidden="true"] .cb-modal__bg {
    animation: cbfadeOut .3s;
}

.cb-modal[aria-hidden="true"] .cb-modal__container {
    animation: cbShowOut .3s;
}

.cb-modal[aria-hidden="false"] .cb-modal__bg {
    animation: cbfadeIn .3s;
}

.cb-modal[aria-hidden="false"] .cb-modal__container {
    animation: cbShowIn .3s;
}

.cb-modal__container,
.cb-modal__overlay {
    will-change: transform;
}

.cb-modal__content {
    width: 100%;
    height: 100%;
}

.cb-sidebar {
    font-family: Onest, sans-serif;
    display: none;
}

.cb-sidebar.is-open {
    display: block;
}

.cb-sidebar .cb-modal__overlay {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.cb-modal__preloader {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cb-modal__preloader:after {
    display: block;
    width: 120px;
    height: 120px;
    content: "";
    background-image: url(./img/preloader.svg);
    background-position: center;
    background-size: contain;
}

@keyframes cbSlideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes cbSlideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.cb-sidebar[aria-hidden="true"] .cb-modal__bg {
    animation: cbfadeOut .3s;
}

.cb-sidebar[aria-hidden="false"] .cb-modal__bg {
    animation: cbfadeIn .3s;
}

.cb-sidebar[aria-hidden="true"] .cb-modal__container {
    animation: cbSlideOut .3s;
}

.cb-sidebar[aria-hidden="false"] .cb-modal__container {
    animation: cbSlideIn .3s;
}

.cb-modal-error .cb-modal__content {
    padding: 30px;
}

.cb-modal-error .cb-modal__title {
    font-size: 30px;
    margin-bottom: 30px;
}

.cb-modal-error__text {
    margin-bottom: 30px;
}

.cb-modal-notify .cb-modal__content {
    padding: 30px;
}

.cb-modal-notify .cb-modal__title {
    font-size: 30px;
    margin-bottom: 30px;
}

@media (max-width: 576px) {
    .cb-modal__title {
        font-size: 40px;
    }

    .cb-modal-notify .cb-modal__content{
        padding: 15px;
    }

    .cb-modal-notify .cb-modal__header{
        right: 15px;
        top: 15px;
    }
}