@import "../settings/_mixins";
@import "../settings/_variables";

.dnetor-testimonial {
    .dnetor-testimonial-rating {
        color: #ffc824;
        margin-bottom: 20px;
    }

    .dnetor-testimonial-item {
        --dnetor-testimonial-avatar-width: 80px;
        --dnetor-testimonial-avatar-height: 80px;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        padding: 30px;
        text-align: center;
        background-color: #fff;
        border: 1px solid #eee;
        .dnetor-testimonial-content {
            margin-bottom: 20px;
            p {
                margin: 0;
            }
        }

        .dnetor-testimonial-info {
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .dnetor-testimonial-avatar img {
            height: var(--dnetor-testimonial-avatar-height);
            width: var(--dnetor-testimonial-avatar-width);
            object-fit: cover;
            border-radius: 100%;
        }

        .dnetor-testimonial-author-name {
            margin-top: 10px;
            margin-bottom: 2px;
            color: #555;
            font-size: 18px;

            span {
                font-style: italic;
                color: #888;
            }
        }
        .dnetor-testimonial-author-job {
            display: block;
            font-size: 0.85rem;
            color: var(--e-global-color-muted);
        }
    }

    &.dnetor-slider-type-simple {
        .dnetor-testimonial-item {
            background-color: #f9f9f9;
            width: 370px;
            padding: 40px;

            + .dnetor-testimonial-item {
                margin-left: 20px;
            }
        }
    }
    &.dnetor-testimonial-layout-05 {
        .dnetor-testimonial-item {
            --dnetor-testimonial-avatar-width: 70px;
            --dnetor-testimonial-avatar-height: 70px;
            text-align: left;
            border: unset;
            + .dnetor-testimonial-item {
                margin-left: 20px;
            }
        }

        .dnetor-testimonial-author-name {
            font-weight: 600;
        }
        .dnetor-testimonial-author-job {
            margin-top: 5px;
        }

        .dnetor-testimonial-info {
            margin-top: 40px;
            margin-bottom: 0;
        }

        .dnetor-testimonial-avatar {
            position: absolute;
            right: -15px;
            bottom: -15px;
            padding: 15px;
            border-radius: 50%;
            background: #fff;
            img {
                height: var(--dnetor-testimonial-avatar-height);
                width: var(--dnetor-testimonial-avatar-width);
            }
        }
    }

    &.dnetor-testimonial-layout-01,
    &.dnetor-testimonial-layout-03 {
        .dnetor-testimonial-quote {
            text-align: center;
            margin-bottom: 20px;
            img {
                width: 60px;
                height: 60px;
                object-fit: cover;
            }
        }
    }

    &.dnetor-testimonial-layout-02 {
        .dnetor-testimonial-item {
            text-align: left;
        }

        .dnetor-testimonial-content {
            p {
                margin: 0;
            }
        }
        .dnetor-testimonial-item {
            border-radius: 16px;
        }
        .dnetor-testimonial-info {
            @include d-flex();
            @include align-items-center();
            .dnetor-testimonial-info-detail {
                text-align: left;
            }

            .dnetor-testimonial-avatar {
                position: relative;
                margin-right: 25px;
                .dnetor-testimonial-quote {
                    position: absolute;
                    bottom: -3px;
                    right: 0;

                    img {
                        width: 25px;
                        height: 25px;
                        object-fit: cover;
                    }
                }
            }
        }
        .dnetor-testimonial-author-name {
            margin-top: 0;
        }
    }

    @keyframes slides_right_to_left {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-100%);
        }
    }
    @keyframes slides_left_to_right {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
    }
}
