
/* c-modal
------------------------------------------------------------------- */
.c-modal {
    opacity: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow: auto;
    background: rgba(0, 0, 0, .8);
    transition: opacity .5s;
    -webkit-overflow-scrolling: touch;
}

.c-modal--disable {
    display: none !important;
}

.c-modal--open {
    display: block;
    opacity: 1;
    transition: opacity .5s;
}

.c-modal--open .c-modal__content{
    animation-name: showUp;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes showUp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.mini-photo-list {
    padding: 0 15px;
}


.c-modal__wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100%;
    margin: auto;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .c-modal__wrap {
        height: auto;
        padding: 50px 0;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .c-modal__wrap {
        min-height: initial;
    }
}

.c-modal__content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: #fff;
    border: 0px solid var(--main-color);
    border-radius: 0.25em;
    -webkit-border-radius: 0.25em;
    -moz-border-radius: 0.25em;
    -ms-border-radius: 0.25em;
    -o-border-radius: 0.25em;
    -webkit-overflow-scrolling: touch;
}

.c-modal__content button[type="submit"] {
    background: var(--main-color);
    display: inline-block;
    font-size: 15px;
    color: #222;
    font-weight: 700;
    padding: 8px 30px;
    border-radius: 20px;
    transition: color .3s;
    border: none;
    transition: all .3s;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
}

.c-modal__content .c-form__row {
    margin-bottom: 10px;
}

.c-modal__content button[type="submit"]:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .c-modal__content {
        width: 300px;
        height: auto;
    }
}

@media (max-width: 420px) {
    .c-modal__content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.product-content {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px;
}


.c-modal__photo-wrap {
    display: none;
    width: 100%;
    text-align: center;
    max-height: 500px;
    padding-bottom: 10px;
}

.c-modal__photo-wrap--active {
    opacity: 0;
    display: flex;
    justify-content: center;
    -ms-align-items: center;
    align-items: center;
    animation-name: showSlide;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes showSlide {
    0% {
        transform: translateX(-20px);
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

.c-modal__photo-list {
    padding-left: 0;
}

.c-modal__photo-list-wrap {
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

@media (max-width: 768px) {
    .c-modal__photo-list-wrap {
        width: auto;
        margin-right: 0;
        order: 0;
    }
}

.c-modal__button-wrap {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all .3s;
    z-index: 100;
}

.c-modal__button-wrap button {
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    outline:none;
    color: var(--main-color);
    transition: all .3s;
}

.c-modal__button-wrap button:hover {
    color: var(--secondary-color);
}

.c-modal__button-wrap button:hover i {
    animation-name: shakeIcon;
    animation-duration: .5s;
}

.c-modal__button-wrap--left {
    left:0;
}

.c-modal__button-wrap--right {
    right:0;
}

.c-modal__mini-photo-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.mini-photo-list {
    padding-left: 0;
}

@media (max-width: 768px) {
    .c-modal__mini-photo-list-wrap {
        width: auto;
        margin-right: 0;
        order: 1;
    }
}

.c-modal__mini-photo-wrap {
    position: relative;
    margin: 0 5px;
    padding: 5px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all .3s;
}

.c-modal__mini-photo-wrap img {
    margin: auto;
}

.c-modal__mini-photo-wrap--active {
    border-bottom:2px solid var(--main-color);
}

.c-modal__descripiton-title,
.c-modal__price-title {
    font-weight: 600;
}

.c-modal__mini-photo-list-wrap .slick-track {
    display: flex;
}

.c-modal__descripiton {
    font-size: 18px;
    color: var(--text-color);
}

.c-modal__price {
    padding: 20px 0px;
    border-bottom: 1px solid #e6e6e6;
}

.c-modal__descripiton {
    padding-bottom: 10px;
}

.c-modal__price {
    font-size: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.c-modal__more-button {
    display: inline-block;
    border-radius: 20px;
    font-size: 15px;
    color: #222;
    font-weight: 700;
    padding: 8px 25px;
    background: var(--main-color);
    transition: all .3s;
}

.c-modal__more-button:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .c-modal__more-button {
        order: 3;
    }
}

.c-modal__descripiton {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px;
    margin: 0;
    display: block;
}

.c-modal__description-text {
    font-size: 14px;
    color: #555;
}



#c-modal__photo {
    height: 310px;
}

@media (max-width: 768px) {
    #c-modal__photo {
        height: 300px;
    }
}

.c-modal__info {
    width: 55%;
}

@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
    }

    .c-modal__info {
        width: 100% ;
        order: 2;
    }
}

.c-modal__title {
    font-size: 18px;
    color: #222;
    font-weight: 700;
    margin-bottom: 10px;
}

.c-modal__close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    text-align: center;
    position: absolute;
    background: var(--main-color);
    top: -15px;
    right: -15px;
    line-height: 28px;
    color: #222;
    opacity: 1;
    border: none;
    border-radius: 50%;
    transition: all .3s;
    cursor: pointer;
}

.c-modal__close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .c-modal__close {
        top: 10px;
        right: 10px;
    }
}

.c-modal__reason-text {
    display: block;
    color: var(--text-color);
    margin-bottom: 10px;
}

.c-modal__close:hover {
    color: var(--secondary-color);
}

.c-modal__close:hover {
    animation-name: shakeIcon;
    animation-duration: .5s;
}

@media (min-width: 768px) {
    .c-modal__close {
        position: absolute;
    }
}

@media (min-width: 768px) {
    .c-modal--400 .c-modal__content {
        width: 400px;
    }

    .c-modal--500 .c-modal__content {
        width: 500px;
    }

    .c-modal--600 .c-modal__content {
        width: 600px;
    }

    .c-modal--700 .c-modal__content {
        width: 700px;
    }

    .c-modal--full .c-modal__wrap {
        padding: 0;
    }

    .c-modal--full .c-modal__content {
        width: 100%;
        min-height: 100vh;
    }
}

.c-modal--scroll {
    overflow: hidden;
    padding-right: 10px;
}

@supports (-ms-ime-align:auto) {
    .c-modal--scroll {
        padding-right: 12px;
    }
}

.c-modal__photo-block {
    width: 45%;
}
