﻿/* REWIEWS */

.eb-review-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px;
}

.eb-stars {
    display: flex;
    gap: 3px;
    line-height: 1;
    font-size: 25px;
    user-select: none;
}

.eb-star {
    display: inline-block;
}

.eb-star-full {
    color: #ffb400;
}

.eb-star-empty {
    color: #d2d6e6;
}

/* polovičná hviezda: polovica žltá, polovica sivá */
.eb-star-half {
    position: relative;
    color: #d2d6e6; /* základ sivá */
}

    .eb-star-half::before {
        content: "★";
        position: absolute;
        left: 0;
        top: 0;
        width: 50%;
        overflow: hidden;
        color: #ffb400;
    }

.eb-review-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #445;
}

.eb-review-avg {
    font-weight: 700;
    font-size: 16px;
}

.eb-review-count {
    font-size: 14px;
    color: #667;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.review-header {
    align-items: center;
    margin-bottom: 6px;
}

.review-stars {
    display: flex;
    gap: 2px;
    font-size: 20px;
    line-height: 1;
}

.inbody .eb-stars {
    display: flex;
    gap: 4px;
    font-size: 40px;
    line-height: 1;
}

.inbody .eb-review-avg {
    font-size: 20px;
}

.inbody .eb-review-count {
    font-size: 16px;
}

.star-full {
    color: #ffb400;
}

.star-empty {
    color: #d2d6e6;
}

.review-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #667;
}

.review-name {
    font-weight: 600;
    color: #223;
    font-size: 14px;
}

.review-date {
    white-space: nowrap;
}

.review-text {
    font-size: 15px;
    line-height: 1.55;
    color: #223;
    white-space: pre-line;
}

.review-name[data-letters]:before {
    width: 2.5em !important;
    height: 2.5em !important;
    line-height: 2.6em !important;
    margin-top: -5px;
    background: #cee6ff !important;
    color: #7f77f5 !important;
}

.eb-rating-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
}

.eb-rating-top {
    margin-bottom: 14px;
}

.eb-rating-stars {
    display: flex;
    gap: 4px;
    font-size: 26px;
    line-height: 1;
}

.eb-star.eb-full {
    color: #ffb400;
}

.eb-star.eb-empty {
    color: #e3e7f2;
}

.eb-star.eb-half {
    position: relative;
    color: #e3e7f2;
}

    .eb-star.eb-half::before {
        content: "★";
        position: absolute;
        left: 0;
        top: 0;
        width: 50%;
        overflow: hidden;
        color: #ffb400;
    }

.eb-rating-meta {
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.eb-rating-avg {
    font-weight: 800;
    font-size: 18px;
    color: #111;
}

.eb-rating-count {
    color: #666;
    font-size: 15px;
}

.eb-rating-filter-title {
    font-weight: 700;
    color: #222;
    margin: 10px 0 10px;
}

.eb-rating-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eb-rating-row {
    display: grid;
    grid-template-columns: 16px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.eb-rating-label {
    color: #222;
    font-weight: 600;
    font-size: 14px;
}

.eb-rating-num {
    text-align: right;
    color: #666;
    font-size: 14px;
}

.eb-bar {
    height: 4px;
    background: #eef1f7;
    border-radius: 999px;
    overflow: hidden;
}

.eb-bar-fill {
    height: 100%;
    background: #111;
    border-radius: 999px;
}

/* checkbox look */
.eb-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

    .eb-check input {
        display: none;
    }

    .eb-check span {
        width: 16px;
        height: 16px;
        border: 1px solid #cfd6e6;
        border-radius: 4px;
        display: inline-block;
        background: #fff;
    }

    .eb-check input:checked + span {
        background: #111;
        border-color: #111;
        box-shadow: inset 0 0 0 3px #fff;
    }

.eb-trust {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.eb-trust-icon {
    width: 49px;
    height: 35px;
    border-radius: 25px;
    background: #f2f1ff;
    color: #5b4bff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.eb-trust-title {
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}

.eb-trust-text {
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

#allreviews {
    margin-top: 10px;
}

#loadMoreBtn {
    margin: 0 auto;
    margin-top: 20px;
    display: block;
}

.reviewFiltration {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    justify-content: flex-end; /* ⬅️ zarovnanie doprava */
}

    .reviewFiltration small {
        font-size: 14px;
        color: #666;
        white-space: nowrap;
    }

    /* custom select */
    .reviewFiltration .form-select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: auto;
        padding: 8px 38px 8px 14px;
        border-radius: 999px; /* pill */
        border: 1px solid #e1e4ea;
        background-color: #fff;
        font-size: 14px;
        font-weight: 600;
        color: #111;
        cursor: pointer;
        line-height: 1.2;
        /* custom arrow */
        background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='6 9 12 15 18 9'/>\
</svg>");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        /* hover / focus */
        .reviewFiltration .form-select:hover {
            border-color: #cfd4dc;
        }

        .reviewFiltration .form-select:focus {
            outline: none;
            border-color: #111;
            box-shadow: 0 0 0 3px rgba(0,0,0,.06);
        }

/* mobile friendly */
@media (max-width: 480px) {
    .reviewFiltration {
        flex-wrap: wrap;
        gap: 6px;
    }
}

.review-response {
    margin-top: 12px;
    padding: 14px 16px;
    background: #f5f5f3;
    border-radius: 12px;
}

.review-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 6px;
}

    .review-response-header strong {
        font-weight: 700;
        color: #111;
    }

.review-response-date {
    color: #777;
    font-size: 13px;
}

.review-response-text {
    font-size: 15px;
    line-height: 1.5;
    color: #111;
}
