.heureka_reviews {
    display: block;
    width: 100%;
    color: #37474f;
    font-size: 14px;
    padding: 20px;
}

.heureka_reviews .left {
    width: 50%;
    display: block;
    float: left;
}

.heureka_reviews .right {
    width: 50%;
    display: block;
    float: left;
}

.heureka_reviews .left .heureka_link {
    color: #00a0dc;
    display: block;
}

.heureka_reviews .left .mobile_reviews {
    display: none;
}

.heureka_reviews .left .heureka_link:before {
    content: "\2192";
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.heureka_reviews .left a {
    display: block;
    margin-top: 5px;
}

.heureka_reviews .items .item {
    height: 175px;
}

.heureka_reviews .items .item .bg_helper {
    background: #fff;
    height: 150px;
    padding: 15px 40px;
}

.heureka_reviews .left h2 {
    margin: 0px;
    padding: 0px;
}

.heureka_reviews .left p {
    margin: 50px 0px 0px 0px;
    padding: 0px;
}

.heureka_reviews .items .item .text {
    display: block;
    clear: both;
    font-style: italic;
}

.heureka_reviews .items .item .date {
    display: block;
    clear: both;
    margin-top: 10px;
    font-size: 12px;
    color: #909090;
}

.heureka_reviews .items .item .overeno_icon {
    width: 50px;
    display: table;
    margin: 0 auto;
    margin-top: -25px;
}

.heureka_reviews .stars {
    background: url('half.png') no-repeat;
    width: 66px;
    height: 12px;
    display: block;
    float: left;
    margin-top: 5px;
}

.heureka_reviews .stars_inside {
    background: url('stars.png') no-repeat;
    width: 66px;
    height: 12px;
    display: block;
    float: left;
}

@media (max-width: 1024px) {
    .heureka_reviews .left {
        width: 100%;
    }

    .heureka_reviews .left .mobile_reviews {
        display: block;
    }

    .heureka_reviews .right {
        display: none;
    }

    .heureka_reviews .left p {
        margin: 25px 0px 0px 0px;
    }

    .heureka_reviews .left h2 {
        margin: 0px 0px 25px 0px;
    }
}

.heureka_reviews .items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.heureka_reviews .item {
    padding: 12px;
    width: calc(25% - 15px);
    /* 4 na řádek */
    box-sizing: border-box;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    height: 320px;
    /* pevná výška pro zarovnání */
    overflow: hidden;
}

.bg_helper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stars {
    width: 80px;
    height: 16px;
    background: url('/img/star-empty.svg') repeat-x;
    position: relative;
    margin-bottom: 8px;
}

.stars_inside {
    background: url('/img/star-full.svg') repeat-x;
    height: 16px;
    position: absolute;
    top: 0;
    left: 0;
}

.bottom_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: auto;
    padding-top: 8px;
    min-height: 40px;
}

.left_col, .right_col {
    display: flex;
    align-items: center;
    height: 100%;
}

.right_col {
    text-align: right;
    white-space: nowrap; 
    padding-left: 10px; 
}

.text {
    flex: 1 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    color: #333;
    margin: 8px 0;
    min-height: 4.8em;
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
}


.left_col .name {
    font-weight: bold;
}

.left_col .date {
    color: #777;
    font-size: 11px;
}

.right_col img.overeno_icon {
    height: 24px;
}

.summary_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 50px;
}

.summary_left {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    line-height: 1;
}

.summary_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #000;
    line-height: 1.2;
}

.summary_text strong {
    font-size: 16px;
}

.summary_text .more_reviews a {
    font-size: 13px;
    text-decoration: underline;
    color: #000;
}

.summary_right a {
    color: #37474f;
    ;
}

@media (max-width: 1024px) {
    .heureka_reviews .item {
        width: calc(50% - 15px); /* 2 na řádek na tabletech */
        height: auto; /* Flexibilní výška */
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .heureka_reviews .item {
        width: 100%; /* 1 na řádek na mobilech */
        min-height: auto;
    }
    
    .bottom_row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .right_col {
        text-align: left;
        padding-left: 0;
    }
}
/* === Carousel (slick) === */
.heureka_reviews .reviews-carousel {
    display: block; /* override flex from .items */
    margin: 0 30px;
}

.heureka_reviews .reviews-carousel .slick-list {
    padding: 5px 0;
}

.heureka_reviews .reviews-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

.heureka_reviews .reviews-carousel .slick-slide {
    height: auto;
    padding: 0 8px;
    box-sizing: border-box;
}

.heureka_reviews .reviews-carousel .slick-slide > div {
    height: 100%;
}

.heureka_reviews .reviews-carousel .item {
    width: 100% !important;
    height: 100%;
    display: flex;
}

.heureka_reviews .reviews-carousel .slick-prev,
.heureka_reviews .reviews-carousel .slick-next {
    z-index: 2;
    width: 30px;
    height: 30px;
}

.heureka_reviews .reviews-carousel .slick-prev {
    left: -30px;
}

.heureka_reviews .reviews-carousel .slick-next {
    right: -30px;
}

.heureka_reviews .reviews-carousel .slick-prev:before,
.heureka_reviews .reviews-carousel .slick-next:before {
    color: #333;
    font-size: 26px;
}

.heureka_reviews .reviews-carousel .slick-dots {
    bottom: -30px;
}

.heureka_reviews .reviews-carousel .slick-dots li button:before {
    font-size: 10px;
    color: #999;
}

.heureka_reviews .reviews-carousel .slick-dots li.slick-active button:before {
    color: #333;
}

@media (max-width: 768px) {
    /* Breakout: rodičovský .container má na mobilu fixní šířku 1700px
       (theme bug), proto blok donutíme držet šířku viewportu. */
    .heureka_reviews {
        padding: 10px;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        overflow: hidden;
    }

    .heureka_reviews .summary_row {
        margin: 0 0 20px 0;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .heureka_reviews .reviews-carousel {
        margin: 0 25px;
    }

    /* Na mobilu necháme šipky uvnitř, aby nebyly mimo viewport */
    .heureka_reviews .reviews-carousel .slick-prev {
        left: -20px;
    }
    .heureka_reviews .reviews-carousel .slick-next {
        right: -20px;
    }

    .heureka_reviews .reviews-carousel .slick-prev:before,
    .heureka_reviews .reviews-carousel .slick-next:before {
        font-size: 22px;
    }

    .heureka_reviews .reviews-carousel .slick-slide {
        padding: 0 4px;
    }

    /* Karta na mobilu: žádná fixní výška, normální blok */
    .heureka_reviews .reviews-carousel .item {
        height: auto;
        min-height: 0;
        width: 100% !important;
        padding: 10px;
        display: block;
    }

    .heureka_reviews .reviews-carousel .item .bg_helper {
        height: auto;
        display: block;
    }

    .heureka_reviews .reviews-carousel .item .text {
        min-height: 0;
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }

    .heureka_reviews .reviews-carousel .bottom_row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-height: 0;
    }

    .heureka_reviews .reviews-carousel .right_col {
        text-align: right;
        padding-left: 8px;
    }
}
