.ts-hodnoceni-box {
    background: #FDEFFC;
    padding: 30px 48px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: "Inter", Sans-serif;
}

.ts-rating-header {
    font-family: "Inter", Sans-serif;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.ts-rating-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ts-rating-value {
    width: 20%;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.ts-rating-value strong {
    font-size: 3em;
    color: #333;
}

.ts-rating-value-flex-row {
    display: flex;
    flex-direction: column;
}

.ts-stars {
    color: #ff9800;
    font-size: 1.6em;
}

.ts-star-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
}

.ts-rating-count {
    color: #333;
    font-size: 0.9em;
}

.ts-rating-bars {
    width: 50%;
    border-right: 1px solid rgb(220, 220, 220);
    border-left: 1px solid rgb(220, 220, 220);
    list-style: none;
    padding: 0;
}

.ts-rating-bars li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
}

.ts-star-label {
    font-size: 0.9em;
    color: #333;
}

.ts-bar {
    flex: 1;
    background: rgb(254, 217, 244);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    max-width: 300px;
}

.ts-bar-fill {
    background: #FB64D1;
    height: 100%;
    transition: width 0.3s ease;
}

.ts-count {
    min-width: 40px;
    text-align: right;
    font-size: 0.9em;
    color: #666;
}

.ts-add-review-btn {
    width: 20%;
    height: 48px;
    background: #FB64D1;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.3s ease;
}

.ts-add-review-btn:hover {
    background: rgb(225, 69, 181);
}

.ts-add-review-btn:focus {
    background: #FB64D1;
}

.ts-login-prompt {
    margin: 15px 0;
    color: #666;
}

.ts-login-prompt a {
    color: #ff9800;
    text-decoration: none;
}

.ts-login-prompt a:hover {
    text-decoration: underline;
}

.ts-review {
    font-family: "Inter", Sans-serif;
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
    border-bottom: 1px solid #eeeeee;
}

.ts-review-head {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.ts-review-avatar {
    flex-shrink: 0;
}

.ts-customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.ts-review-info {
    flex: 1;
}

.ts-review-author {
    font-weight: bold;
    font-size: 1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;

}

/* Verified badge */
.ts-verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background-color: #28a745;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    vertical-align: middle;
}

.ts-review-stars {
    color: #ff9800;
}

.ts-review-stars .ts-star-icon {
    width: 16px;
    height: 16px;
    margin: 0 1px;
}

.ts-review-date {
    color: #999;
    font-size: 0.9em;
    margin-top: 10px;
}

.ts-review-content {
    color: #555;
    line-height: 1.6;
}

.ts-review-reply {
    margin-top: 15px;
    margin-left: 32px;
    padding: 15px 24px 15px 24px;
    background: rgba(255, 249, 254, 0.65);
    border-radius: 6px;
    border-left: 3px solid #FB64D1;
}

.ts-review-reply-author {
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: normal;
    color: #333;
    margin-bottom: 5px;
}

.ts-review-reply-author img {
    width: 20px;
}

.ts-review-reply-content {
    color: #555;
    line-height: 1.5;
    font-size: 0.95em;
}

#ts-add-review-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

#ts-add-review-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    font-size: 2em;
    font-weight: 800;
}

#ts-add-review-form .form-group {
    margin-bottom: 15px;
}

#ts-add-review-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

#ts-add-review-form .star-rating {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    overflow: visible !important;
    height: auto !important;
}

#ts-add-review-form .star-rating::before {
    display: none !important;
    content: none !important;
}

#ts-add-review-form .star-rating input[type="radio"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
}

#ts-add-review-form .star-rating label {
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 2px;
    padding: 0;
    position: relative;
    width: 30px;
    height: 30px;
}

#ts-add-review-form .star-rating label img {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.2s;
}

#ts-add-review-form .star-rating label .star-filled {
    opacity: 0;
}

#ts-add-review-form .star-rating label .star-empty {
    opacity: 1;
}

/* Hover effects are handled by JavaScript */

/* When a radio is checked, we need JavaScript to handle the display */
#ts-add-review-form .star-rating input[type="radio"]:checked ~ label .star-filled,
#ts-add-review-form .star-rating input[type="radio"]:checked ~ label .star-empty {
    /* Let JavaScript handle opacity */
}

#ts-add-review-form input[type="text"],
#ts-add-review-form input[type="email"],
#ts-add-review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

#ts-add-review-form textarea {
    min-height: 100px;
    resize: vertical;
}

#ts-add-review-form button[type="submit"] {
    background: #FB64D1;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.3s ease;
    width: 100%;
    height: 48px;
}

#ts-add-review-form button[type="submit"]:hover {
    background: rgb(225, 69, 181);
}

#ts-add-review-form button[type="submit"]:focus {
    background: #FB64D1;
    outline: none;
}

/* Modal styles */
.ts-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.ts-review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.ts-review-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.ts-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ts-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.ts-review-modal #ts-add-review-form {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.ts-review-success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.ts-review-success-message p {
    margin: 0;
}

/* Load more button styles */
.ts-load-more-container {
    text-align: center;
    margin: 30px 0;
}

.ts-load-more-reviews {
    background: #FB64D1;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(251, 100, 209, 0.3);
}

.ts-load-more-reviews:hover {
    background: #E850C3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 100, 209, 0.4);
}

.ts-load-more-reviews:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ts-load-more-reviews:disabled:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(251, 100, 209, 0.3);
}

/* Animation for new reviews */
.ts-review {
    transition: all 0.5s ease;
}

@media (max-width: 768px) {
    .ts-rating-header {
        padding: 0 10px;
    }
    
    .ts-hodnoceni-box {
        padding: 20px 10px;
    }
    
    .ts-rating-summary {
        flex-direction: column;
    }
    
    .ts-rating-value {
        width: 100%;
        justify-content: center;
    }
    
    .ts-rating-bars {
        width: 100%;
        border: none;
        margin-bottom: 20px;
    }
    
    .ts-bar {
        max-width: 200px;
    }
    
    .ts-add-review-btn {
        width: 100%;
    }
    
    .ts-review {
        padding: 20px 10px;
    }
    
    .ts-customer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .ts-review-head {
        gap: 10px;
    }
}