/* badge recenze */
@media only screen and (min-width: 992px){
    .single-product-wrapper .badge {
        display: inline-block;
        padding: 8px 10px;
        margin-left: -7em;
        border-radius: 0px;
        font-size: 0.85em;
        font-weight: bold;
        text-transform: uppercase; 
    }
}
@media only screen and (min-width: 768px) and (max-width: 990px){
    .single-product-wrapper .badge {
        margin-left: 30px;
    }
}

@media only screen and (max-width: 767px){
    .single-product-wrapper .badge {
        margin-left: 30px;
    }
    .border-left {
        border: 1px solid #eae8e4 !important;
    }
}
    
.badge.redaktor {
    background-color: #2d5cb6; 
    color: white;
}

.badge.zakaznik {
    background-color: #198754;
    color: white;
}
.iti{
    display: flex;
}
.star-rating {
    display: inline-block;
    direction: ltr;
}
.star {
    font-size: 24px;
    color: gold;
    display: inline-block;
}
.star.full:before {
    content: "\2605"; /* Celá hvězdička */
}
.star.half:before {
    content: "\2605";
    width: 50%;
    overflow: hidden;
}
.star.empty:before {
    content: "\2606"; /* Prázdná hvězdička */
}
#reviews {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.woocommerce-message.custom-review-message {
    background-color: #187b18;
    color: #fff;
    padding: 01em 1em;
    margin: 0 0 2em;
    border-left: #187b18;
    border-radius: 0px;
    margin-top: 1em;
    font-weight: 500;
    letter-spacing: 0.25px;
}
#review_form_wrapper .woocommerce-message, #review_form .woocommerce-message{
    margin-bottom: 2.617924em;
    background-color: #0f834d;
    margin-left: 0;
    border-radius: 2px;
    color: #fff;
    clear: both;
    border-left: .6180469716em solid rgba(0, 0, 0, .15);
    padding: 1em 2em 1em 3.5em;
    position: relative;
    list-style: none outside;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before, .woocommerce-noreviews::before, p.no-comments::before {
    font-family: "Font Awesome 5 Free";
    display: inline-block;
    position: absolute;
    top: 1.05em;
    left: 1.5em;
    color: #fff;
}
.single-product #reviews .commentlist li.review .comment_container .comment-text .star-rating, .single-product #reviews .commentlist li.comment .comment_container .comment-text .star-rating {
    letter-spacing: 4px;
    font-size: 80%;
    width: 5rem;
    color: black;
}
#respond.comment-respond{
    margin-bottom: 2em;
}

@media only screen and (min-width: 501px){
    .review-header {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }
    .badge-container, .comment-author-badge {
        margin-left: 0px !important;
    }
    #tab-reviews .ml-3{
        line-height: 1.6em;
    }
}

@media only screen and (max-width: 500px){
    .review-header {
        display: flex;
        align-items: flex-start !important;
        gap: 1rem;
        flex-wrap: wrap;
        flex-direction: column;
    }
    .badge-container, .comment-author-badge {
        margin-left: 0px !important;
    }
    #tab-reviews .font-size-15{
        font-size: 2.5rem;
    }
    .comment-form-rating{
        display: flex !important;
        flex-direction: column;
    }
}

/* 
 * Hvězdy – procentuální zobrazení
 * Spodní vrstva: styl "far fa-star" (regular)
 * Horní vrstva: styl "fas fa-star" (solid)
 */

 .custom-star-rating-summary {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    font-size: 0.7em;
    line-height: 1;
}

.custom-star-rating-summary::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    content: '\f005\f005\f005\f005\f005';
    letter-spacing: 0.4em;
    color: #d3ced2;
}

.custom-star-rating-summary span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}

.custom-star-rating-summary span::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f005\f005\f005\f005\f005';
    letter-spacing: 0.4em;
    color: #ffbd00;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
}

.advanced-review-rating .custom-star-rating-summary {
    font-size: 0.7em;
}

.bookworm-wc-star-rating .custom-star-rating-summary {
    font-size: 1em;
}