.hprw {
    --hprw-blue: #2859d7;
    --hprw-yellow: #ffc400;
    --hprw-text: #1c2b3d;
    --hprw-muted: #6f7b89;
    --hprw-border: #dedede;
    --hprw-light: #f5f5f5;
    width: 100%;
    color: var(--hprw-text);
    font-family: inherit;
}

.hprw * { box-sizing: border-box; }

.hprw-custom-title {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 500;
}

.hprw-tabs {
    display: flex;
    align-items: flex-end;
    gap: 38px;
    border-bottom: 0;
    margin-bottom: 45px;
}

.hprw-tab {
    display: inline-block;
    padding: 0 0 9px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: .01em;
    color: #777;
}

.hprw-tab--active {
    color: var(--hprw-blue);
    border-bottom: 3px solid var(--hprw-blue);
}

.hprw-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 62px;
}

.hprw-summary-rating {
    display: flex;
    align-items: center;
    gap: 26px;
}

.hprw-stars {
    display: inline-flex;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
}

.hprw-star {
    display: inline-block;
    font-size: 26px;
    color: #d6d9dd;
}

.hprw-star.is-filled { color: var(--hprw-yellow); }

.hprw-review-count {
    font-size: 18px;
    color: #24354a;
}

.hprw-write-button,
.hprw-submit {
    appearance: none;
    border: 0;
    background: var(--hprw-blue);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.hprw-write-button {
    min-width: 238px;
    min-height: 58px;
    padding: 14px 24px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hprw-write-button:hover,
.hprw-submit:hover {
    opacity: .9;
}

.hprw-pencil {
    font-size: 25px;
    line-height: 1;
    transform: rotate(-15deg);
}

.hprw-divider {
    border-top: 1px solid var(--hprw-border);
    margin: 46px 0 30px;
}

.hprw-form-wrap {
    margin-top: 45px;
}

.hprw-form {
    max-width: 100%;
}

.hprw-form h3 {
    margin: 0 0 25px;
    font-size: 20px;
    font-weight: 500;
}

.hprw-field { margin: 0 0 22px; }

.hprw-field > label {
    display: block;
    margin: 0 0 10px;
    font-size: 17px;
    color: #58708a;
}

.hprw-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.hprw-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hprw-rating-input label {
    font-size: 39px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--hprw-blue);
    cursor: pointer;
    transition: color .12s ease;
}

.hprw-rating-input label:hover,
.hprw-rating-input label:hover ~ label,
.hprw-rating-input input:checked ~ label {
    color: var(--hprw-blue);
}

.hprw-form textarea,
.hprw-form input[type="text"],
.hprw-form input[type="email"] {
    width: 100%;
    border: 1px solid transparent;
    background: #f5f5f5;
    border-radius: 0;
    padding: 14px 16px;
    color: #222;
    font: inherit;
    outline: none;
}

.hprw-form textarea {
    min-height: 122px;
    resize: vertical;
}

.hprw-form textarea:focus,
.hprw-form input:focus {
    border-color: #c7d2ea;
    background: #fafafa;
}

.hprw-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hprw-submit {
    min-width: 128px;
    min-height: 58px;
    padding: 13px 30px;
    font-size: 17px;
}

.hprw-logged-in {
    color: var(--hprw-muted);
    margin: -4px 0 20px;
}

.hprw-review-heading {
    font-size: 18px;
    margin-bottom: 25px;
}

.hprw-product-name {
    font-weight: 500;
}

.hprw-review {
    display: flex;
    gap: 22px;
    padding: 28px 0;
    border-bottom: 1px solid var(--hprw-border);
}

.hprw-review-avatar {
    flex: 0 0 56px;
}

.hprw-avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.hprw-review-content {
    flex: 1;
    min-width: 0;
}

.hprw-review-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.hprw-review-author {
    display: block;
    font-size: 17px;
    color: #a66048;
    font-weight: 500;
}

.hprw-review-date {
    margin-top: 4px;
    color: #8a8f95;
    font-size: 14px;
}

.hprw-review-rating .hprw-star {
    font-size: 18px;
    gap: 3px;
}

.hprw-review-text {
    margin-top: 17px;
    font-size: 16px;
    line-height: 1.7;
}

.hprw-review-text p { margin: 0 0 10px; }
.hprw-review-text p:last-child { margin-bottom: 0; }

.hprw-empty,
.hprw-notice {
    padding: 20px 0;
    color: var(--hprw-muted);
}

@media (max-width: 767px) {
    .hprw-tabs {
        margin-bottom: 28px;
    }

    .hprw-tab {
        font-size: 18px;
    }

    .hprw-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .hprw-summary-rating {
        gap: 14px;
        flex-wrap: wrap;
    }

    .hprw-review-count {
        font-size: 15px;
    }

    .hprw-write-button {
        width: 100%;
    }

    .hprw-divider {
        margin: 30px 0 24px;
    }

    .hprw-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hprw-review-top {
        flex-direction: column;
        gap: 12px;
    }

    .hprw-stars {
        gap: 4px;
    }

    .hprw-star {
        font-size: 22px;
    }
}
