.testimonials-list {
    .testimonials {
        margin: 0 10px 0 10px;
    }

    figure.testimonial {
        &.loaded {
            animation-name: testimonialsSlideInUp;
            animation-duration: 0.7s;
            animation-fill-mode: both;
        }

        &:nth-child(2n) {
            .info {
                text-align: right;

                .author {
                    right: 0;
                    padding: 0 120px 0 10px;
                }
            }

            .arrow {
                border-left-width: 25px;
                border-right-width: 0;
                left: auto;
                right: 50px;
            }

            .contacts-info {
                a:last-child img {
                    margin-right: 0;
                }
            }
        }

        blockquote {
            .extra-info {
                display: flex;
                justify-content: space-between;
                position: relative;
                top: 5px;

                .date {
                    padding-top: 3px;
                }

                .rating {
                    &::before {
                        content: '';
                    }

                    .review-ratings {
                        float: none;

                        .rating-label {
                            padding: 3px 20px 5px 0;
                        }
                    }
                }
            }
        }

        .contacts-info {
            a {
                white-space: nowrap;

                &:first-child img {
                    margin-left: 0;
                }
            }

            img {
                margin: 0 5px;
                width: auto;
                height: auto;
                border-radius: 0;
            }
        }
    }

    .more-button {
        width: 100%;
        text-align: center;
        margin: 20px 0;
        display: inline-block;
        border-radius: 1px;
        font-size: 18px;
        text-align: center;

        a {
            color: #fff;
            background: #479ccf;
            border: 1px solid #3793cb;
            text-shadow: 0 1px 0 #3188bc;
            text-decoration: none;
            padding: 11px 30px;
            transition: background 0.2s linear 0s;

            &:focus,
            &:hover {
                background: #5ba7d4;
                color: #fff;
            }

            &:focus {
                box-shadow: inset 0 0 8px #3188bc;
            }
        }

        .disabled {
            opacity: 0.5;
            cursor: wait;
        }
    }

    .page-title {
        button {
            float: right;
        }

        h1 {
            float: left;
            border-bottom: none;
        }

        &::after {
            display: block;
            content: ".";
            clear: both;
            font-size: 0;
            line-height: 0;
            height: 0;
            overflow: hidden;
        }
    }
}

.testimonials-list,
.testimonials-slider {
    figure.testimonial {
        position: relative;
        margin: 40px 1%;
        padding: 0 20px;
        text-align: left;
        box-shadow: none !important;

        blockquote {
            background-color: #fff;
            display: block;
            font-size: 20px;
            font-weight: 400;
            font-style: normal;
            line-height: 1.5em;
            margin: 0;
            padding: 25px 50px 30px;
            position: relative;

            -webkit-filter: drop-shadow(0 3px 15px rgba(0, 0, 0, 0.1));
            filter: drop-shadow(0 3px 15px rgba(0, 0, 0, 0.1));

            &::before, &::after {
                content: "\201C";
                position: absolute;
                color: #2b00f7;
                font-size: 50px;
                font-style: normal;
            }

            &::before {
                top: 25px;
                left: 20px;
            }

            &::after {
                content: "\201D";
                right: 20px;
                bottom: 0;
            }
        }

        img {
            max-width: 100%;
            vertical-align: middle;
            height: 90px;
            width: 90px;
            border-radius: 50%;
            margin: 40px 0 0 10px;
        }

        .arrow {
            top: 100%;
            left: 50px;
            width: 0;
            height: 0;
            border-left: 0 solid transparent;
            border-right: 25px solid transparent;
            border-top: 25px solid #fff;
            margin: 0;
            position: absolute;
        }

        .author {
            position: absolute;
            bottom: 45px;
            padding: 0 10px 0 120px;
            margin: 0;
            -webkit-transform: translateY(50%);
            transform: translateY(50%);

            h5 {
                font-family: sans-serif;
                font-weight: 400;
                font-size: 1.4em;
                line-height: 1.4em;
                opacity: 0.9;
                margin: 0;
            }
        }
    }
}

.form.testimonial {
    .review-field-rating {
        .field-error,
        div.mage-error[generated] {
            margin-top: 38px;
        }

        .label {
            font-weight: 600;
        }
    }
}

/** widgets styles */
.block-testimonials {
    .block-content {
        .testimonial-container {
            min-height: 130px;
        }

        .content {
            .content-wrapper {
                height: 85px;
                min-height: 85px;
                display: block;
                overflow: hidden;
            }

            .testimonial-message {
                clear: both;
            }

            .name {
                float: right;
                margin-top: 10px;
                font-style: italic;
            }
        }

        .read-more,
        .read-less {
            padding-top: 10px;
            display: inline-block;
        }

        .review {
            text-align: center;

            .score {
                font-weight: bold;
                font-size: 40px;
                color: #e26703;
            }
        }
    }

    &.empty-design {
        &, .block-content {
            background: none;
            border: none;
        }

        .block-content .content {
            padding: 0;
        }

        .actions-toolbar,
        .block-title {
            display: none;
        }
    }
}

.testimonials-slider {
    .content-heading {
        text-align: center;
    }

    .block-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    figure.testimonial {
        float: left;
        margin: 10px 1%;

        blockquote {
            font-size: 16px;
        }
    }

    .review-ratings {
        float: none;
    }

    .slick-slider {
        .slick-prev, .slick-next {
            background: none;
            opacity: 0.5;

            &::before {
                content: '';
                background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4yLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cG9seWdvbiBwb2ludHM9IjM5Ni42LDE2MCA0MTYsMTgwLjcgMjU2LDM1MiA5NiwxODAuNyAxMTUuMywxNjAgMjU2LDMxMC41ICIvPg0KPC9zdmc+DQo=');
                background-size: 25px 25px;
                background-position: 50% 50%;
                display: block;
                width: 25px;
                height: 25px;
            }
        }

        .slick-prev {
            left: 5px;
            transform: rotate(90deg);
        }

        .slick-next {
            right: 5px;
            transform: rotate(-90deg);
        }
    }
}

.std .testimonialForm li {
    list-style: none;
}

@media (max-width: 480px) {
    .testimonials-slider {
        figure.testimonial {
            blockquote {
                padding: 25px 0 30px;
                -webkit-filter: none;
                filter: none;

                &::before, &::after {
                    content: '';
                }
            }
        }
    }

    .testimonials-list {
        figure.testimonial {
            padding: 0;

            blockquote {
                padding: 25px 20px 30px;
                font-size: 16px;

                &::before, &::after {
                    content: '';
                }
            }
        }
    }
}

@keyframes testimonialsSlideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    visibility: visible;
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}
