/* CSS Styl pro hodnocení obchodu a produktů */

#rate-form.vote-form {
display: none;
}

#rate-form.vote-form.visible {
display: block !important;
position: fixed !important;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
z-index: 99999 !important;
background: #ffffff !important;
border: 1px solid #e2e8f0 !important;
border-radius: 15px !important;
padding: 30px 24px 24px 24px !important;
width: 90% !important;
max-width: 500px !important;
box-sizing: border-box !important;
max-height: 90vh !important;
overflow-y: auto !important;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 100vmax rgba(15, 23, 42, 0.6) !important;
}

#rate-form .form-legend {
display: none !important;
}

#formRating {
display: flex !important;
flex-wrap: wrap !important;
gap: 12px !important;
align-items: flex-start !important;
}

#formRating .form-group {
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
box-sizing: border-box !important;
}

#rate-form .smart-label-wrapper label {
display: none !important;
}

#rate-form .smart-label-wrapper {
margin: 0 !important;
padding: 0 !important;
height: auto !important;
transform: none !important;
}

#rate-form .form-control:not(textarea) {
height: 46px !important;
min-height: 46px !important;
max-height: 46px !important;
padding: 0 16px !important;
line-height: 44px !important;
box-sizing: border-box !important;
}

#rate-form textarea.form-control {
height: 85px !important;
min-height: 85px !important;
max-height: 85px !important;
padding: 12px 16px !important;
box-sizing: border-box !important;
resize: none !important;
}

#rate-form .form-control {
width: 100% !important;
background-color: #f8fafc !important;
border: 1px solid #cbd5e1 !important;
border-radius: 8px !important;
font-size: 14px !important;
color: #0f172a !important;
position: relative !important;
transform: none !important;
transition: border-color 0.15s, box-shadow 0.15s !important;
}

#rate-form .form-control:focus {
background-color: #ffffff !important;
border-color: #556fd1 !important;
outline: none !important;
box-shadow: 0 0 0 3px rgba(85, 111, 209, 0.15) !important;
}

#rate-form .form-control::placeholder {
color: #94a3b8 !important;
opacity: 1 !important;
}

#rate-form .rating-stars-group {
background: #f8fafc !important;
border: 1px solid #f1f5f9 !important;
padding: 12px 16px !important;
border-radius: 10px !important;
margin: 4px 0 !important;
width: 100% !important;
}

#rate-form .rating-stars-description {
font-size: 12px !important;
color: #64748b !important;
line-height: 1.3 !important;
margin-bottom: 8px !important;
text-align: left !important;
}

#rate-form .rating-stars-wrapper {
display: flex !important;
gap: 6px !important;
}

#rate-form .rating-star {
cursor: pointer !important;
font-size: 24px !important;
color: #cbd5e1 !important;
}

#rate-form .rating-star::before,
#rate-form .rating-star.star-on::before {
color: #FBBF24 !important;
}

#rate-form .consents {
font-size: 12px !important;
color: #64748b !important;
margin-top: 4px !important;
width: 100% !important;
text-align: left !important;
}

#rate-form .consents a {
color: #556fd1 !important;
text-decoration: underline !important;
}

#rate-form button[data-testid="buttonSendRating"] {
background-color: #556fd1 !important;
color: #ffffff !important;
padding: 12px 28px !important;
border-radius: 10px !important;
font-weight: 600 !important;
font-size: 15px !important;
border: none !important;
box-shadow: 0 4px 6px rgba(85, 111, 209, 0.15) !important;
transition: all 0.2s ease-in-out !important;
cursor: pointer !important;
margin-top: 8px !important;
}

#rate-form button[data-testid="buttonSendRating"]:hover {
background-color: #721ef0 !important;
box-shadow: 0 6px 12px rgba(114, 30, 240, 0.25) !important;
}

.close-modal-btn {
position: absolute !important;
top: 16px !important;
right: 20px !important;
font-size: 26px !important;
line-height: 1 !important;
color: #94a3b8 !important;
cursor: pointer !important;
transition: color 0.15s ease !important;
z-index: 10 !important;
}

.close-modal-btn:hover {
color: #721ef0 !important;
}

#rate-form h3 {
font-size: 20px !important;
font-weight: 700 !important;
color: #0f172a !important;
margin-top: 0 !important;
margin-bottom: 16px !important;
width: 100% !important;
text-align: left !important;
}

.add-comment.rate-form-trigger,
.add-comment button[data-testid="buttonAddRating"] {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
}

/* Hodnocení obchodu, hodnocení produktů */
#ratingWrapper .rate-wrap {
display: flex;
flex-wrap: wrap;
gap: 40px;
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 16px;
padding: 32px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
align-items: center;
margin-bottom: 24px;
}

#ratingWrapper .rate-average-wrap {
flex: 1;
min-width: 200px;
display: flex;
flex-direction: column;
justify-content: center;
}

#ratingWrapper .rate-average-inner {
display: flex;
flex-direction: column;
gap: 10px;
}

#ratingWrapper .rate-average {
font-size: 64px;
font-weight: 800;
line-height: 1;
color: #0f172a;
letter-spacing: -1px;
}

#ratingWrapper .rate-star-wrap {
display: flex;
flex-direction: column;
gap: 6px;
}

#ratingWrapper .stars .star {
font-size: 20px;
}
#ratingWrapper .stars .star-on, .stars .star.star-on::before, #ratingWrapper .rate-list .star, .form-group .rating-star::before {
color: #ffb500 !important;
}

#ratingWrapper .stars-label {
font-size: 14px;
color: #64748b;
font-weight: 500;
margin-top: 4px;
}

#ratingWrapper .votes {
flex: 2;
min-width: 280px;
display: flex;
flex-direction: column;
gap: 12px;
}

#ratingWrapper .rate-list {
display: flex;
align-items: center;
gap: 16px;
}

#ratingWrapper .rate-list .rate-star {
display: flex;
align-items: center;
gap: 4px;
min-width: 35px;
font-size: 14px;
font-weight: 600;
color: #334155;
}

#ratingWrapper .rate-block {
flex: 1;
background-color: #f1f5f9;
border-radius: 9999px;
height: 10px;
position: relative;
overflow: visible;
margin-right: 50px;
}

#ratingWrapper .rate-bar {
display: block;
height: 100%;
background: linear-gradient(90deg, #556fd1, #721ef0);
border-radius: 9999px;
width: var(--rate-bar-width, 0%);
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#ratingWrapper .rate-count {
position: absolute;
right: -45px;
top: 50%;
transform: translateY(-50%);
font-size: 13px;
font-weight: 500;
color: #94a3b8;
}

#ratingWrapper .rate-count.active {
color: #0f172a;
font-weight: 600;
}

.add-comment.rate-form-trigger {
margin-top: 8px;
}


.add-comment button[data-testid="buttonAddRating"] {
background-color: #556fd1 !important;
color: #ffffff !important;
padding: 12px 28px !important;
border-radius: 12px !important;
font-weight: 600 !important;
border: none !important;
letter-spacing: 0.3px;
box-shadow: 0 4px 6px rgba(85, 111, 209, 0.2);
transition: all 0.2s ease-in-out !important;
cursor: pointer;
width: 100%;
}

.add-comment button[data-testid="buttonAddRating"]:hover {
background-color: #721ef0 !important;
box-shadow: 0 6px 12px rgba(114, 30, 240, 0.3);
transform: translateY(-1px);
}

span[style*="text-decoration: underline"] {
display: inline-block !important;
color: #64748b !important;
font-size: 13px !important;
margin-top: 14px !important;
text-decoration: none !important;
border-bottom: 1px dashed #cbd5e1;
transition: color 0.2s, border-color 0.2s;
text-align: center;
width: 100%;
}

span[style*="text-decoration: underline"]:hover {
color: #721ef0 !important;
border-bottom-color: #721ef0;
}

#ratingWrapper .rate-average {
color: #FBBF24 !important;
}

#ratingWrapper .rate-star-wrap .stars .star-on {
color: #FBBF24 !important;
}

#ratingWrapper .rate-wrapper.unveil-wrapper .rate-star-wrap,
#ratingWrapper .rate-star-wrap {
margin-left: 2px !important;
}

#ratingWrapper .stars .star.star-on::before,
#ratingWrapper .stars .star.star-half::before,
#ratingWrapper .rate-list .star.star-on::before {
color: #FBBF24 !important;
}

.rate-wrapper.unveil-wrapper.rate-wrapper-in-description, .welcome-wrapper.container-narrow, .products-block > div .p .stars-wrapper, .products-block > div .p .stars-placeholder {
display: none;
}

#hodnoceniobchodu .vote-rating, #hodnoceniobchodu .vote-wrap > :not(.no-display), .id--51 #content #ratingWrapper + .votes-wrap .vote-wrap > :not(.no-display), .id--51 #ratingWrapper + .votes-wrap .vote-rating, .type-detail #content #ratingWrapper + .votes-wrap .vote-wrap > :not(.no-display), .type-detail #ratingWrapper + .votes-wrap .vote-rating {
text-align: center;
justify-content: center;
}

#hodnoceniobchodu .shop-stat-all a {
width: 100%;
}

input[type="submit"][data-testid="buttonSendRating"] {
background-color: #556fd1;
color: white;
padding: 10px 20px;
border-radius: 15px;
cursor: pointer;
text-decoration: none;
}

input[type="submit"][data-testid="buttonSendRating"]:hover {
background-color: #721ef0;
color: white;
}

.add-comment .rating-icon {
background-color: #556fd1;
color: white;
padding: 10px 20px;
border-radius: 15px;
cursor: pointer;
text-decoration: none;
}

.add-comment .rating-icon:hover {
background-color: #721ef0;
}

.template-13 #hodnoceniobchodu .vote-wrap:not(.admin-response .vote-wrap), 
.template-13.id--51 #content #ratingWrapper ~ .votes-wrap .vote-wrap:not(.admin-response .vote-wrap), 
.template-13.type-detail #content #ratingWrapper ~ .votes-wrap .vote-wrap:not(.admin-response .vote-wrap) {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 15px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


/* Změna vzhledu počtu hodnocení a celkové hodnocení */
body.in-index #hodnoceniobchodu span.rate-average,
body.in-index #hodnoceniobchodu .rate-average {
font-size: 42px !important;
font-weight: 800 !important;
color: #ffb500 !important;
}


body #hodnoceniobchodu .shop-eval-stars .rate-average-inner span.rate-average,
body #hodnoceniobchodu .shop-eval-stars .rate-average-inner .rate-average,
body .shop-eval-stars #hodnoceniobchodu .rate-average,
body .shop-eval-stars span.rate-average {
font-size: 42px !important;
font-weight: 800 !important;
color: #ffb500 !important;
}


.in-index div.rate-average-inner,
.shop-eval-stars div.rate-average-inner {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: center !important;
gap: 16px !important;
background: #ffffff !important;
padding: 12px 20px !important;
border: 1px solid #e2e8f0 !important;
border-radius: 15px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
width: max-content !important;
max-width: 100% !important;
margin: 0 auto 16px auto !important;  
}

.in-index span.rate-star-wrap,
.shop-eval-stars span.rate-star-wrap {
display: flex !important;
flex-direction: column !important;
align-items: flex-start !important;
justify-content: center !important;
gap: 4px !important;
margin: 0 !important;
padding: 0 !important;
}

.in-index span.stars-label,
.shop-eval-stars span.stars-label {
font-size: 13px !important;
color: #64748b !important;
font-weight: 600 !important;
line-height: 1 !important;
margin: 0 !important;
display: block !important;
}

/* Úprava hodnocení pod názvem produktu */
.ratings-and-brand .stars-wrapper {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
gap: 14px !important;

padding: 0 !important;
border: none !important;
box-shadow: none !important;
margin-top: 8px !important;
margin-bottom: 16px !important;
}

.ratings-and-brand .stars--productDetail {
display: flex !important;
align-items: center !important;
margin: 0 !important;
padding: 0 !important;
}

.ratings-and-brand .stars--productDetail .star-on,
.ratings-and-brand .stars--productDetail .star.star-on::before {
color: #FBBF24 !important;
font-size: 18px !important;
}

.ratings-and-brand .starsLabel--productDetail {
font-size: 14px !important;
color: #0f172a !important; 
font-weight: 700 !important;
text-transform: uppercase !important;
letter-spacing: 0.5px !important;
margin: 0 !important;
line-height: 1 !important;
display: flex !important;
align-items: center !important;
}

.ratings-and-brand .starsLabel--productDetail::after {
content: "|" !important;
margin-left: 14px !important;
color: #cbd5e1 !important;
font-weight: normal !important;
}

.ratings-and-brand a.show-ratings {
font-size: 14px !important;
color: #556fd1 !important;
font-weight: 500 !important;
text-decoration: underline !important;
transition: color 0.15s ease-in-out !important;
margin: 0 !important;
line-height: 1 !important;
}

.ratings-and-brand a.show-ratings:hover {
color: #721ef0 !important;
text-decoration: underline !important;
}

/* RESPONSIVITA: Úprava pro mobily */

@media (min-width: 576px) {
#formRating .form-group.half-width-group {
width: calc(50% - 6px) !important;
flex: 0 0 calc(50% - 6px) !important;
}
}

@media (max-width: 575px) {
#rate-form.vote-form.visible {
padding: 24px 16px 16px 16px !important;
}

#formRating .form-group.half-width-group {
width: 100% !important;
flex: 0 0 100% !important;
}

#rate-form button[data-testid="buttonSendRating"] {
width: 100% !important;
text-align: center !important;
}

.in-index div.rate-average-inner,
.shop-eval-stars div.rate-average-inner {
gap: 12px !important;
padding: 10px 16px !important;
}
    
body #hodnoceniobchodu .shop-eval-stars .rate-average-inner span.rate-average,
body.in-index #hodnoceniobchodu span.rate-average {
font-size: 36px !important;
}

.ratings-and-brand .stars-wrapper {
gap: 10px !important;
margin-bottom: 12px !important;
}
    
.ratings-and-brand .starsLabel--productDetail::after {
margin-left: 10px !important;
}

.ratings-and-brand .stars--productDetail .star-on,
.ratings-and-brand .stars--productDetail .star.star-on::before {
font-size: 16px !important;
}
    
.ratings-and-brand .starsLabel--productDetail,
.ratings-and-brand a.show-ratings {
font-size: 13px !important;
}
}

@media (max-width: 767px) {
#ratingWrapper .rate-wrap {
flex-direction: column;
align-items: stretch;
gap: 28px;
padding: 20px;
}
    
#ratingWrapper .rate-average-wrap {
align-items: center;
text-align: center;
}
    
#ratingWrapper .rate-block {
margin-right: 45px;
}
}