#index .index-testimonials-container .heading-section-title{
    margin-bottom: 40px;
}

.index-testimonials-container{
    margin-top: 40px;
}

.index-testimonials-container .row.header-row{
    margin-right: -10px;
    margin-left: -10px;
}

.index-testimonials-container .heading-section-title::after,
.index-testimonials-container .heading-section-title::before{
    background-color: #111;
}

@media (max-width: 767px) {
    #index .index-testimonials-container {
        margin-top: 30px;
    }

    #index .index-testimonials-container .heading-section-title{
        margin-bottom: 30px;
    }

}

@media (min-width: 1330px) {
    #index .index-testimonials-container {
        background: transparent;
        position: relative;
    }
}

.custom-testimonial-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.testimonials-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.testimonials-header__icon {
    display: flex;
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    color: #E4003D;
}

.testimonials-header__title {
    flex: 1 0 0;
    font-size: 20px;
    font-weight: 600;
    color: #3D3D3D;
    text-transform: none;
    letter-spacing: 0.2px;
}



.testimonials-header__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #3D3D3D;
    white-space: nowrap;
    line-height: 17px;
}

@media (max-width: 991px){
    a.testimonials-header__link.d-lg-none {
        width: 100%;
        justify-content: center;
    }
}

.testimonials-header__link:hover,
.testimonials-header__link:focus {
    color: var(--menu-text-hover);
}

.testimonials-header__link:hover .custom-icon,
.testimonials-header__link:focus .custom-icon{
    background-color: var(--menu-text-hover);
;
}

.testimonials-write-trigger {
    margin-top: 15px;
}

@media (max-width: 768px) {
    .featured-products__header .custom-testimonial-title{
    margin-top: 20px;
    }
    .testimonials-header__title{
        font-size: 19px;
        line-height: 23px;
    }
}

#index .custom-testimonial-title .show-more.blog-more{
    margin: 0 auto;
}

.write_testimonial_container .show-more:hover{
    color: #3B4F3F;
    -webkit-text-fill-color: #3B4F3F;
}
.custom-testimonial-title a{
    width: 100%;
}

.custom-testimonial-title button,
#write_testimonial .modal-body .write_testimonial_container .modal-next
{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 auto;
    border: none;
    background: unset;
    text-transform: uppercase;
    color: #3D3D3D;
}
.custom-testimonial-title button:focus,
.custom-testimonial-title button:hover{
    color: var(--menu-text-hover);
}
#write_testimonial .modal-body .write_testimonial_container .modal-next:focus,
#write_testimonial .modal-body .write_testimonial_container .modal-next:hover {
    color: var(--menu-text-hover);
    -webkit-text-fill-color: var(--menu-text-hover);
}
.keen-slider.clients-carousel {
    /* Only the horizontal axis needs clipping, to hide the off-screen slides — a
       fractional perView (e.g. 1.58 for the mobile peek) leaves sub-pixel rounding
       in the track's own height, and clipping that axis too was shaving off the
       card's bottom border. */
    overflow-x: hidden;
    overflow-y: visible;
}

.keen-slider.clients-carousel .keen-slider__slide {
    min-width: 0;
}

.client-carousel-hold {
    margin-bottom: 10px;
    margin-top: 30px;
}

.testimonial-slider-viewport {
    position: relative;
}

@media (max-width: 650px) {
    /* The 1.58-per-view peek should bleed to the true screen edge on the right —
       the page's own side padding lives several ancestors up (a global content
       wrapper), so it is cancelled here rather than touched globally. */
    .testimonial-slider-viewport {
        margin-right: -10px;
    }
    #index .custom-testimonial-carousel{
        margin-right: -10px;
        width: calc(100% + 10px);
    }
}

@media (max-width: 991px) {
    .client-carousel-hold {
        padding: 0;
    }
}
.page-product .client-carousel-hold{
    margin-bottom: 1px;
}

.testimonial-arrows {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.testimonial-arrows .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E4E4E4;
    padding: 0;
    margin: 0;
    pointer-events: auto;
    cursor: pointer;
}

.testimonial-arrows .arrow--left {
    left: -16px;
}

.testimonial-arrows .arrow--right {
    right: -16px;
}



.testimonial-arrows .arrow--right svg {
    transform: rotate(180deg);
}

.testimonial-arrows .arrow:focus {
    outline: none;
}

.testimonial-arrows .arrow:focus-visible {
    outline: none;
}

@media (max-width: 991px) {
    .testimonial-arrows {
        display: none;
    }

    .client-carousel-hold {
        margin-bottom: 23px;
        margin-top: 20px;
    }
}

#index .testimonials-no-m-mobile .col-xs-12{
    padding-left: 0;
    padding-right: 0;
}

.rating-message {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.rating-message.positive {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.rating-message.negative {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.rating-message h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.rating-message p {
    font-size: 16px;
    margin-bottom: 20px;
}

.cta-button {
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    border-radius: unset;
    max-width: fit-content;
    margin: 0 auto;
}

.cta-button:hover {
    opacity: 0.8;
}

.clients-carousel-item {
    background: #FFFFFF;
    border: 1px solid #E4E4E4;
    border-radius: 10px;
    padding: 24px;
    min-height: 166px;
    display: flex;
    flex-direction: row;
    gap: 19px;
    align-items: flex-start;
    text-align: left;
}

.clients-carousel-item__txt {
    display: flex;
    flex: 1 0 0;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.clients-carousel-item__product {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.clients-carousel-item__product img {
    aspect-ratio: 97 / 100;
    object-fit: cover;
    max-height: 100px;
}

.clients-carousel-item__product-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #3D3D3D;
    text-align: center;
    word-break: break-word;
    width: 97px;
    line-height: 17px;
}

@media (max-width: 767px) {
    .clients-carousel-item__product{
        width: 100%;
    }
    .clients-carousel-item {
        padding: 20px;
        flex-wrap: wrap;
        display: flex;
        flex-direction: column;
    }
    #index .index-testimonials-container.no-testimonials{
        margin-bottom: 30px;
    }
    .testimonial-dots{
        margin-top: 20px;
    }
}

.client-rating{
    display: flex;
}

.client-rating ul {
    display: flex;
    gap: 7px;
    margin: 0;
    padding: 0;
}
.client-rating.interactive ul{
    font-size: 0;
}
.client-rating ul li {
    display: flex;
}
.client-rating ul li:last-child {
    margin-right: 0;
}
.client-rating.interactive ul li{
    cursor: pointer;
    padding: 0 3px;
}
.client-rating ul li svg{
    width: 16px;
    height: 15px;
    vertical-align: top;
}

.client-rating ul li svg {
    fill: #FFCD1C;
}
.client-rating.interactive ul li svg{
    width: 25px;
    height: 25px;
}
.client-rating ul li.selected svg{
    fill: #FFCD1C;
}
.client-rating a {
    float: right
}
.client-rating a img {
    display: inline-block;
    width: auto
}
.client-text, .client-text p {
    color: #3D3D3D;
    text-align: left;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    position: relative;
    display: inline-block;
    word-break: break-word;
}

.client-name-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.client-name {
    color: #3D3D3D;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.client-date {
    color: #3D3D3D;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
#write_testimonial .modal-body .write_testimonial_container {
    padding: 0 20px 20px 20px;
}

#write_testimonial {
    padding-right: 15px !important;;
    padding-left: 15px !important;
}

#write_testimonial .modal-dialog {
    margin-left: auto;
    margin-right: auto;
}

#write_testimonial .modal-body .write_testimonial_container p{
    font-size: 14px;
    line-height: 22px;
    color: #252B2F;
    text-align: left;
}

#write_testimonial .modal-body .write_testimonial_container .rating-message p{
    text-align: center;
}

#write_testimonial .modal-body .write_testimonial_container .alert{
    margin: 15px 0 0 0;
    width: 100%;
}
#write_testimonial .modal-body .write_testimonial_container .form-element label{
    text-align: left;
}
#write_testimonial .modal-body .write_testimonial_container .form-element textarea{
    resize: none;
    font-family: Roboto, sans-serif;
    font-weight: normal;
    font-size: 14px;
    line-height: 22px;
    color: #252B2F;
}

body#identity #write_testimonial .modal-dialog{
    max-width: 550px;
}
#write_testimonial .modal-body .write_testimonial_container .checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

#write_testimonial .modal-body .write_testimonial_container .checkbox-item:last-child {
    margin-bottom: 25px;
}

#write_testimonial .modal-body .write_testimonial_container .checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

#write_testimonial .modal-body .write_testimonial_container .checkbox-item label {
    margin: 0;
}

#write_testimonial .modal-body .write_testimonial_container .checkbox-item label p {
    margin: 0;
}

#write_testimonial .modal-dialog{
    margin-top: 175px;
}

#write_testimonial {
    z-index: 20001 !important;
}

#write_testimonial .modal-body .write_testimonial_container .container_footer{
    text-align: right;
}
#write_testimonial .modal-content{
    overflow: hidden;
}
#write_testimonial #new_testimonial_form{
    position: relative;
}
#write_testimonial .modal-content .form-element label{
    display: flex;
    flex-direction: column;
}
#write_testimonial .modal-content {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0;
}

@media (max-width: 350px) {
    .rating-message {
        padding-left: 10px;
        padding-right: 10px;
    }
}

#write_testimonial .form-element-required .required-asterisk {
    color: #111;
    font-weight: 600;
    font-size: 14px;
    line-height: normal;
}

#write_testimonial .form-element-required .label-text {
    display: inline;
}

a[data-target="#write_testimonial"]:hover,
a[data-target="#write_testimonial"] button:hover {
    cursor: pointer;
}

.index-reviews .navigation-wrapper {
    position: absolute;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.testimonial-dots .dot {
    width: 15px;
    height: 5px;
    border-radius: 10px;
    border: 1px solid #D2D2D2;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s, background 0.3s, border-color 0.3s;
    margin: 0;
}

.testimonial-dots .dot.active {
    width: 27px;
    background: #E4003D;
    border-color: #E4003D;
}

.page-product .testimonials-no-m-mobile > .col-xs-12{
    padding: 0;

}
.keen-slider.clients-carousel.no-slider {
    display: grid;
    grid-template-columns: repeat(var(--testimonial-columns, 3), 1fr);
    gap: 20px;
}
.keen-slider.clients-carousel.no-slider .keen-slider__slide.clients-carousel-item{
    min-width: 0;
    max-width: none;
    width: auto;
}

#index .no-testimonials{
    margin-bottom: 20px;
}

/*@media (max-width: 575px){*/
/*    .index-testimonials-container{*/
/*        margin-right: -15px;*/
/*        width: calc(100% + 15px);*/

/*        .header-row {*/
/*            margin: 0;*/
/*        }*/
/*    }*/
/*}*/

/* Product page rating summary (product_rating.tpl), shown above the product's own testimonials */
.product-average-rating.client-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    float: none;
    margin: 10px 0 4px;
}
.product-average-rating .rating-value {
    margin-left: 6px;
    font-size: 13px;
    color: #3D3D3D;
}
.product-average-rating .star.filled svg {
    fill: #FFCD1C;
}
.product-average-rating .star svg {
    width: 16px;
    height: 16px;
}
.product-average-rating .star.empty svg {
    opacity: 0.3;
}
.product-rating-count {
    font-size: 12px;
    color: #3D3D3D;
    margin-bottom: 10px;
}
select#new_testimonial_id_product {
    padding: 10px 15px;
    border: 1px solid #CECECE;
    border-radius: 6px;
    background: white;
    margin-top: 10px;
    color: #787878;
    outline: none;
}

/* "All testimonials" list page (list_testimonials.tpl) — same card as the homepage carousel, static grid */
.testimonials-list-page .testimonials-grid {
    margin-top: 30px;
}
.testimonials-list-page .testimonials-grid__col {
    margin-bottom: 30px;
}
.testimonials-list-page .clients-carousel-item {
    height: 100%;
}
.testimonials-list-page .no-testimonials-message {
    text-align: center;
    padding: 40px 0;
}

#module-prcustomtestimonials-list .index-testimonials-container{
    margin-top: 0;
}

#module-prcustomtestimonials-list .card-block{
    padding: 0;
}
/* Rating shown under the product title and on product cards (rating.tpl).
   A card without reviews keeps an empty row of the same height (.pr-rating--empty below). */
.pr-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.pr-rating:hover {
    text-decoration: none;
}
.pr-rating .product-average-rating.client-rating {
    margin: 0;
    gap: 7px;
}
.pr-rating__count,
.pr-rating__value {
    font-size: 14px;
    color: var(--text-color);
    line-height: 17px;
}
.pr-rating__value {
    margin: 0 0 0 3px;
    font-weight: 600;
}
.pr-rating.product-card-rating .star svg {
    width: 16px;
    height: 15px;
}
.pr-rating.product-page-rating {
    margin: 8px 0 4px;
}
.product-average-rating .star {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.product-average-rating .star.partial .star__base,
.product-average-rating .star.partial .star__fill {
    display: inline-block;
    line-height: 0;
}
.product-average-rating .star.partial .star__base svg {
    opacity: 0.3;
}
.product-average-rating .star.partial .star__fill {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--star-fill, 50%);
    overflow: hidden;
}
/* Atsiliepimo kortelėje ir formos rinkiklyje žvaigždučių visada penkios, kad matytųsi
   skalė. Nuslopinamos per `opacity`, o ne `fill`, nes star.svg neša savo fill="#F89C33"
   ant paties <path> — `.client-rating ul li svg { fill: ... }` taisyklės neveikia. */
.client-rating ul li.empty svg,
.client-rating.interactive ul li:not(.selected) svg {
    opacity: 0.3;
}

/* ---- 1.8.0: order reviews ---------------------------------------------------------------- */

/* Rating row: product page "4,8 23 atsiliepimai" (link to the block), product cards "(23)". */
.pr-rating.product-page-rating {
    gap: 8px;
}
.pr-rating.product-page-rating .star svg {
    width: 16px;
    height: 15px;
}
/* Phone/tablet layout of the theme (max 1023px): "Product is in warehouse" follows the rating
   row directly (on desktop the price block brings its own gap), so the row gets the same 8px
   below as above the "Product reference" line. */
@media (max-width: 1023px) {
    .pr-rating.product-page-rating {
        margin-bottom: 8px;
    }
}
.pr-rating__link {
    font-size: 14px;
    line-height: 17px;
    color: var(--text-color, #1B1A17);
    text-decoration: underline;
}
.pr-rating__link:hover {
    color: #F0A500;
}
/* A card without reviews keeps the row empty (no text, the client 2026-11-13) at the same height
   as a card with stars (min-height below), so the cards and their prices stay in line. */
.pr-rating--empty {
    font-size: 0;
    line-height: 17px;
}
/* Product card: its own row under the product name, left aligned, above the price. */
.product-miniature .pr-rating.product-card-rating {
    display: flex;
    justify-content: flex-start;
    min-height: 17px;
    margin: -2px 0 10px;
}

/* Product page reviews block (product_reviews.tpl) on top of the theme's #productCommentsBlock. */
.pr-product-reviews {
    position: relative;
    margin-bottom: 60px;
}
.pr-product-reviews__anchor {
    position: absolute;
    top: -120px;
}
.pr-product-reviews__average {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.pr-product-reviews__average-value {
    font-size: 48px;
    line-height: 1;
    font-weight: 600;
    color: #1B1A17;
}
.pr-product-reviews__average-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pr-product-reviews__average-stars .star svg {
    width: 22px;
    height: 21px;
}
.pr-product-reviews__average-count {
    font-size: 14px;
    color: #828181;
}
.pr-product-reviews .comments-statistics {
    padding-bottom: 12px;
}
.pr-product-reviews .single-star-statistics .range {
    width: auto;
    flex: 1 1 auto;
    margin: 0 8px;
}
.pr-product-reviews .star-sliders-wrapper {
    display: block;
    max-width: 440px;
}
.pr-product-reviews__note {
    font-size: 13px;
    color: #828181;
    margin: 0 0 24px;
}
#productCommentsBlock .tabs .clearfix.comment.pr-review {
    padding: 18px 0;
}
.pr-product-reviews .pr-review--hidden {
    display: none !important;
}
.pr-review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}
.pr-review__stars .star svg {
    width: 14px;
    height: 13px;
}
.pr-review__name {
    color: #1B1A17;
    font-size: 15px;
    font-weight: 600;
}
.pr-review__verified {
    color: #3F8F3F;
    font-size: 13px;
}
.pr-review__date {
    margin-left: auto;
    color: #9A9A9A;
    font-size: 13px;
}
#product_comments_block_tab div.comment.pr-review div.comment_details {
    margin-top: 8px;
    color: #3D3D3D;
}
.pr-product-reviews__more {
    margin-top: 16px;
    padding: 12px 30px;
}
@media (max-width: 767px) {
    .pr-product-reviews__summary {
        margin-bottom: 10px;
    }
    .pr-review__date {
        margin-left: 0;
        width: 100%;
    }
}

/* Order review page (review.tpl), mockup section 2. */
.pr-order-review {
    padding: 30px 0 50px;
}
.pr-order-review__title {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 500;
    color: #1B1A17;
    margin: 0 0 6px;
}
.pr-order-review__subtitle {
    color: #828181;
    font-size: 15px;
    margin: 0 0 24px;
}
.pr-order-review__label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1B1A17;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    width: auto;
}
.pr-order-review__form .form-control {
    border: 1px solid #CECECE;
    border-radius: 0;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
}
.pr-order-review__textarea {
    min-height: 140px;
    resize: vertical;
}
.pr-order-review__form .form-group {
    margin-bottom: 22px;
}
.pr-order-review__submit,
.pr-order-review__home {
    padding: 14px 30px;
    font-size: 15px;
}
.pr-order-review__errors ul {
    margin: 0;
    padding-left: 18px;
}
.pr-star-picker {
    border: 0;
    padding: 0;
    margin: 0 0 22px;
    min-width: 0;
}
.pr-star-picker__stars {
    display: inline-flex;
    flex-direction: row-reverse;
    vertical-align: middle;
}
.pr-star-picker__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.pr-star-picker__star {
    cursor: pointer;
    padding: 0 3px;
    margin: 0;
    line-height: 0;
}
.pr-star-picker__star svg {
    width: 34px;
    height: 32px;
    fill: #E1E1E1;
    transition: fill .1s;
}
.pr-star-picker__input:checked ~ .pr-star-picker__star svg {
    fill: #FFC107;
}
/* Hover previews a rating: the hovered star and the ones left of it (later in the DOM). */
.pr-star-picker__stars:hover .pr-star-picker__star svg {
    fill: #E1E1E1;
}
.pr-star-picker__stars .pr-star-picker__star:hover svg,
.pr-star-picker__stars .pr-star-picker__star:hover ~ .pr-star-picker__star svg {
    fill: #FFC107;
}
.pr-star-picker__input:focus-visible + .pr-star-picker__star svg {
    outline: 2px solid #F0A500;
    outline-offset: 2px;
}
.pr-star-picker__text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #1B1A17;
}
.pr-order-review__products {
    background: #F9F8F6;
    border: 1px solid #E1E1E1;
    padding: 22px 22px 8px;
}
.pr-order-review__products-title {
    font-size: 17px;
    font-weight: 600;
    color: #1B1A17;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E1E1E1;
}
.pr-order-review__product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pr-order-review__product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #E1E1E1;
}
.pr-order-review__product:last-child {
    border-bottom: 0;
}
.pr-order-review__product-image {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pr-order-review__product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pr-order-review__product-name {
    font-size: 14px;
    line-height: 1.4;
    color: #1B1A17;
}
.pr-order-review__message {
    max-width: 640px;
    margin: 20px auto;
    text-align: center;
}
.pr-order-review__message--thanks {
    background: #F1F8F1;
    border: 1px solid #CDE6CD;
    padding: 34px 24px;
}
.pr-order-review__check {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: #3F8F3F;
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}
.pr-order-review__message .pr-order-review__title {
    margin-bottom: 18px;
}
@media (max-width: 767px) {
    .pr-order-review__title {
        font-size: 21px;
    }
    .pr-order-review__aside {
        margin-top: 30px;
    }
}
