/**
 * YayReviews - Review Form Styles
 */

#review_form .optional {
    color: #666;
}

#review_form label .required {
    color: #e74c3c;
}

.yayrev-title-input {
    width: 100%;
}

.yayrev-reviews p.stars a {
    color: #f59e0b;
}

body.theme-brandy .woocommerce p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: WooCommerce;
    content: "\e021";
    text-indent: 0;
}

body.theme-brandy .woocommerce p.stars:hover a::before {
    content: "\e020";
}

body.theme-brandy .woocommerce p.stars.selected a.active::before {
    content: "\e020";
}
/* Character Count */
.yayrev-char-count {
    display: block;
    margin-top: 0.25em;
    font-size: 0.75em;
    color: #999;
    text-align: right;
}

.yayrev-char-count.near-limit {
    color: #f39c12;
}

.yayrev-char-count.at-limit {
    color: #e74c3c;
}

/* GDPR Checkbox */
.yayrev-gdpr-consent-field {
    margin-bottom: 1em;
}


/* Error Messages */
.yayrev-error-message {
    display: block;
    margin-top: 0.25em;
    font-size: 0.75em;
    color: #e74c3c;
}

/* Review Content Length */
.comment-form-comment textarea[data-min-length],
.comment-form-comment textarea[data-max-length] {
    transition: border-color 0.2s ease;
}

.comment-form-comment textarea.has-error {
    border-color: #e74c3c;
}

/* Content Character Count (injected via JS) */
.yayrev-content-char-count {
    display: block;
    margin-top: 0.25em;
    font-size: 0.75em;
    color: #999;
    text-align: right;
}

.comment-form-comment.yayrev-field-invalid .yayrev-content-char-count.too-short {
    color: #e74c3c;
}

.woocommerce #review_form #respond .yayrev-content-helper-text {
    margin-bottom: 1.25rem;
}

.yayrev-content-char-count.near-limit {
    color: #f39c12;
}

.yayrev-content-char-count.at-limit {
    color: #e74c3c;
}

/* Validation States */
.yayrev-field-valid .yayrev-title-input,
.yayrev-field-valid textarea {
    border-color: #27ae60;
}

.yayrev-field-invalid .yayrev-title-input,
.yayrev-field-invalid textarea {
    border-color: #e74c3c;
}

/* Form Submission */
.yayrev-form-submitting .yayrev-title-input,
.yayrev-form-submitting textarea,
.yayrev-form-submitting .yayrev-gdpr-checkbox {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .yayrev-title-input {
        font-size: 16px; /* Prevent iOS zoom */
    }

    .yayrev-gdpr-label {
        font-size: 0.875em;
    }
}
