/**
 * Single-product review form fields only: review textarea, name, email.
 * Intentionally narrow — does not touch the rest of the reviews tab.
 */

/* Layout: keep notes / rating / review full width, then put
   Name + Email + Submit together on one row. */
#reviews .comment-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    row-gap: 24px;
    column-gap: 24px;
    padding: 10px;
}

/* A touch of breathing room between each label and its field. */
#reviews .comment-form label {
    display: block;
    margin-bottom: 8px;
}

#reviews .comment-form .comment-notes,
#reviews .comment-form .comment-form-rating,
#reviews .comment-form .comment-form-comment {
    flex: 0 0 100%;
    margin: 0;
}

#reviews .comment-form .comment-form-author,
#reviews .comment-form .comment-form-email {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

#reviews .comment-form .form-submit {
    flex: 0 0 auto;
    margin: 0;
}

/* Match the submit button height to the inputs so the row lines up. */
#reviews .comment-form .form-submit #submit {
    padding: 12px 32px;
    font-size: 14px;
    line-height: 1.5;
}

/* Add the theme's CTA line-arrow (same icon as "See all stores →") to the
   right of "Submit", rendered as an inline SVG. High specificity so it
   overrides the `background: 0 0` reset in style.css. The arrow keeps the
   button's blue (#214af1) and needs no hover variant (colour is constant). */
.woocommerce #review_form #respond .form-submit input#submit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23214af1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 18px 18px;
    padding-right: 34px;
}

#reviews .comment-form #comment,
#reviews .comment-form #author,
#reviews .comment-form #email {
    width: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 2px;
    padding: 12px 14px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

#reviews .comment-form #comment {
    min-height: 130px;
    resize: vertical;
}

#reviews .comment-form #comment:focus,
#reviews .comment-form #author:focus,
#reviews .comment-form #email:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 1px #1a1a1a;
}

#reviews .comment-form #comment::placeholder,
#reviews .comment-form #author::placeholder,
#reviews .comment-form #email::placeholder {
    color: #9a9a9a;
}

/* Stack Name / Email / Submit on small screens. */
@media (max-width: 600px) {
    #reviews .comment-form .comment-form-author,
    #reviews .comment-form .comment-form-email,
    #reviews .comment-form .form-submit {
        flex: 0 0 100%;
    }

    #reviews .comment-form .form-submit #submit {
        width: 100%;
    }
}
