/**
 * WSB Ratings Styles
 */

/* Container */
.wsb-ratings-main {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
}

.wsb-ratings-main h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* Review context info */
.wsb-review-context {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.wsb-review-context p {
    margin: 0 0 5px;
}

/* Notices */
.wsb-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
}

.wsb-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wsb-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wsb-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.wsb-notice a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Form */
.wsb-review-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

.wsb-form-row {
    margin-bottom: 20px;
}

.wsb-form-row:last-child {
    margin-bottom: 0;
}

.wsb-form-row label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.wsb-form-row label .required {
    color: #c73e3a;
}

.wsb-form-row textarea,
.wsb-form-row input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
}

.wsb-form-row textarea:focus,
.wsb-form-row input:focus {
    border-color: #c73e3a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(199, 62, 58, 0.1);
}

/* Star rating selector */
.wsb-star-select {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.wsb-star-select .wsb-star {
    font-size: 32px;
    color: #ddd;
    transition: color 0.15s ease, transform 0.1s ease;
    user-select: none;
    line-height: 1;
}

.wsb-star-select .wsb-star:hover,
.wsb-star-select .wsb-star.active {
    color: #f5a623;
    transform: scale(1.1);
}

.wsb-star-select .wsb-star.hover-active {
    color: #f5a623;
}

/* Star display (read-only) */
.wsb-stars-display {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.wsb-stars-display .wsb-star {
    font-size: 16px;
    line-height: 1;
}

.wsb-star-filled {
    color: #f5a623;
}

.wsb-star-half {
    color: #f5a623;
    opacity: 0.6;
}

.wsb-star-empty {
    color: #ddd;
}

/* Review display card */
.wsb-review-display {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.wsb-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.wsb-review-author {
    font-weight: 500;
    font-size: 14px;
    color: #1a1a1a;
}

.wsb-review-date {
    font-size: 13px;
    color: #888;
}

.wsb-review-comment {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.wsb-review-listing {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

.wsb-review-listing a {
    color: #c73e3a;
    text-decoration: none;
}

.wsb-review-listing a:hover {
    text-decoration: underline;
}

.wsb-review-existing-reply {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.wsb-review-existing-reply strong {
    font-size: 14px;
    color: #1a1a1a;
}

.wsb-review-existing-reply p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Buttons */
.wsb-btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wsb-btn:hover {
    transform: translateY(-1px);
}

.wsb-btn-primary {
    background-color: #c73e3a;
    color: #fff;
}

.wsb-btn-primary:hover {
    background-color: #a83532;
}

/* Seller profile stars (theme sidebar) */
.wsb-seller-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wsb-seller-rating-summary .wsb-rating-number {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.wsb-seller-rating-summary .wsb-review-count {
    font-size: 13px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .wsb-ratings-main {
        padding: 20px 15px;
    }

    .wsb-review-form {
        padding: 20px;
    }

    .wsb-ratings-main h1 {
        font-size: 22px;
    }

    .wsb-star-select .wsb-star {
        font-size: 28px;
    }
}
