
/* Main review container */
.wcpr-wrap {
    clear: both;
    margin: 40px 0;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.wcpr-wrap h2,
.wcpr-wrap h3 {
    margin: 0 0 16px;
}

.wcpr-heading {
    margin-bottom: 24px;
}

/* Rating summary */
.wcpr-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wcpr-summary strong {
    font-size: 20px;
}

.wcpr-summary > span:last-child {
    color: #666;
    font-size: 14px;
}

/* Stars */
.wcpr-stars {
    white-space: nowrap;
    letter-spacing: 1px;
    font-size: 18px;
}

.wcpr-filled {
    color: #e3a008;
}

.wcpr-empty {
    color: #ccc;
}

/* Review list */
.wcpr-review {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.wcpr-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wcpr-review-top strong {
    font-weight: 700;
}

.wcpr-review-top time {
    margin-left: auto;
    color: #777;
    font-size: 13px;
}

.wcpr-review-content {
    margin-top: 10px;
}

.wcpr-review-content p:last-child {
    margin-bottom: 0;
}

/* Review image */
.wcpr-review-image {
    display: inline-block;
    margin-top: 12px;
}

.wcpr-review-image img {
    display: block;
    width: auto;
    max-width: 160px;
    height: auto;
    border-radius: 6px;
}

/* Review form */
.wcpr-form-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.wcpr-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.wcpr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wcpr-field {
    margin: 0 0 18px;
}

.wcpr-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.wcpr-field input[type="text"],
.wcpr-field input[type="email"],
.wcpr-field input[type="file"],
.wcpr-field textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.wcpr-field textarea {
    resize: vertical;
}

.wcpr-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* Star rating selection */
.wcpr-rating-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wcpr-rating-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.wcpr-rating-options label span {
    color: #e3a008;
    font-size: 20px;
    letter-spacing: 1px;
}

/* Submit button */
.wcpr-submit {
    padding: 12px 22px;
    border: 0;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.wcpr-submit:hover {
    opacity: 0.88;
}

/* Notices */
.wcpr-notice {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
}

.wcpr-success {
    background: #edf8ef;
    color: #176b2c;
    border: 1px solid #b9e2c1;
}

.wcpr-error {
    background: #fff0f0;
    color: #9d2020;
    border: 1px solid #edc2c2;
}

/* Honeypot */
.wcpr-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 600px) {

    .wcpr-wrap {
        padding: 18px;
    }

    .wcpr-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wcpr-review-top time {
        width: 100%;
        margin-left: 0;
    }

}
