/* ============================================================
   QSHIM v2.4.9 - Premium WooCommerce product reviews
   Scoped to single-product review forms only.
   Does not modify review form behavior, required fields or ratings.
   ============================================================ */

body.single-product #reviews,
body.single-product #review_form_wrapper,
body.single-product #review_form {
    font-family: "Manrope", sans-serif;
    color: #52677A;
}

body.single-product #reviews #comments h2,
body.single-product #reviews #review_form_wrapper h3,
body.single-product #reviews #reply-title {
    color: #102E4B !important;
    font-family: "Sora", sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 31px !important;
    letter-spacing: -0.3px !important;
    text-transform: none !important;
}

body.single-product #reviews #review_form_wrapper {
    margin-top: 24px;
}

body.single-product #reviews #review_form label,
body.single-product #reviews #commentform label {
    display: block;
    color: #102E4B !important;
    font-family: "Manrope", sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 21px !important;
    text-transform: none !important;
    margin-bottom: 8px !important;
}

body.single-product #reviews #commentform p {
    margin: 0 0 18px !important;
}

body.single-product #reviews #commentform input[type="text"],
body.single-product #reviews #commentform input[type="email"],
body.single-product #reviews #commentform input[type="url"],
body.single-product #reviews #commentform textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    background: #FFFFFF !important;
    border: 1px solid #D4DFE8 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #102E4B !important;
    font-family: "Manrope", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    padding: 11px 14px !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.single-product #reviews #commentform textarea {
    min-height: 140px;
    resize: vertical;
}

body.single-product #reviews #commentform input[type="text"]:focus,
body.single-product #reviews #commentform input[type="email"]:focus,
body.single-product #reviews #commentform input[type="url"]:focus,
body.single-product #reviews #commentform textarea:focus {
    border-color: #F58220 !important;
    box-shadow: 0 0 0 3px rgba(245,130,32,0.13) !important;
    outline: none !important;
}

/* Star controls are WooCommerce links; leave their order/click behavior intact. */
body.single-product #reviews .stars a,
body.single-product #reviews .stars a::before,
body.single-product #reviews .star-rating,
body.single-product #reviews .star-rating::before,
body.single-product #reviews .star-rating span::before {
    color: #F58220 !important;
}
body.single-product #reviews .stars a:focus-visible {
    outline: 2px solid #F58220 !important;
    outline-offset: 3px;
    border-radius: 3px;
}

/* Submit review: native submit button retained, visual style only. */
body.single-product #reviews #commentform input#submit,
body.single-product #reviews #commentform button[type="submit"],
body.single-product #reviews #commentform .form-submit .submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 165px;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 24px !important;
    background: #102E4B !important;
    color: #FFFFFF !important;
    border: 1px solid #102E4B !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-family: "Manrope", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    body.single-product #reviews #commentform input#submit:hover,
    body.single-product #reviews #commentform button[type="submit"]:hover,
    body.single-product #reviews #commentform .form-submit .submit:hover {
        background: #F58220 !important;
        border-color: #F58220 !important;
        color: #FFFFFF !important;
        transform: translateY(-2px);
    }
}
body.single-product #reviews #commentform input#submit:focus-visible,
body.single-product #reviews #commentform button[type="submit"]:focus-visible {
    outline: 3px solid #F58220 !important;
    outline-offset: 3px;
}

/* Existing reviews and pagination */
body.single-product #reviews #comments ol.commentlist li .comment-text {
    border: 1px solid #E2EAF0;
    border-radius: 10px;
    padding: 18px 20px;
}
body.single-product #reviews #comments ol.commentlist li .comment-text p {
    color: #52677A;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 24px;
}
body.single-product #reviews #comments .woocommerce-review__author {
    color: #102E4B;
    font-weight: 700;
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.single-product #reviews #commentform textarea { min-height: 130px; }
    body.single-product #reviews #commentform input#submit { min-height: 46px; }
}
@media (max-width: 767px) {
    body.single-product #reviews #reply-title,
    body.single-product #reviews #review_form_wrapper h3 { font-size: 19px !important; line-height: 29px !important; }
    body.single-product #reviews #commentform textarea { min-height: 120px; }
    body.single-product #reviews #commentform input#submit,
    body.single-product #reviews #commentform button[type="submit"],
    body.single-product #reviews #commentform .form-submit .submit { min-height: 46px; font-size: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
    body.single-product #reviews #commentform input,
    body.single-product #reviews #commentform textarea,
    body.single-product #reviews #commentform button { transition: none !important; }
}
