.wcr-reviews-wrap {
    --wcr-cols: 1;
    margin: 24px 0;
}

.wcr-reviews {
    display: grid;
    grid-template-columns: repeat(var(--wcr-cols, 1), minmax(0, 1fr));
    gap: 20px;
}

.wcr-review {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcr-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wcr-review-side {
    flex: 0 0 auto;
}

.wcr-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wcr-avatar-letter {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 20px;
}

.wcr-review-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.wcr-review-author {
    font-weight: 600;
    color: #111827;
}

.wcr-review-date {
    color: #6b7280;
    font-size: 13px;
}

.wcr-review-rating {
    margin-left: auto;
}

.wcr-stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
    vertical-align: middle;
}

.wcr-stars-bg {
    color: #d1d5db;
}

.wcr-stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: #f59e0b;
}

.wcr-review-text {
    color: #374151;
    line-height: 1.6;
}

.wcr-review-text p {
    margin: 0 0 .6em;
}

.wcr-review-text p:last-child {
    margin-bottom: 0;
}

.wcr-review-footer {
    margin-top: auto;
    font-size: 14px;
}

.wcr-review-product {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dashed rgba(37, 99, 235, .4);
}

.wcr-review-product:hover {
    border-bottom-style: solid;
}

.wcr-empty {
    color: #6b7280;
    font-style: italic;
}

.wcr-load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.wcr-load-more {
    display: inline-block;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .15s ease;
}

.wcr-load-more:hover {
    opacity: .85;
}

.wcr-load-more[disabled] {
    opacity: .5;
    cursor: default;
}

.wcr-form-wrap {
    max-width: 640px;
    margin: 24px 0;
}

.wcr-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    position: relative;
}

.wcr-form-title {
    margin: 0 0 16px;
    font-size: 20px;
}

.wcr-field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcr-field label {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.wcr-field input[type="text"],
.wcr-field input[type="email"],
.wcr-field select,
.wcr-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}

.wcr-field textarea {
    resize: vertical;
    min-height: 120px;
}

.wcr-required {
    color: #dc2626;
}

.wcr-hint {
    color: #6b7280;
    font-weight: 400;
    font-size: 13px;
}

.wcr-field-rating {
    border: 0;
    padding: 0;
    margin: 0 0 16px;
}

.wcr-field-rating legend {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    padding: 0;
}

.wcr-rate {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.wcr-rate input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.wcr-rate label {
    font-size: 28px;
    line-height: 1;
    color: #d1d5db;
    cursor: pointer;
    transition: color .12s ease, transform .12s ease;
}

.wcr-rate label:hover,
.wcr-rate label:hover ~ label,
.wcr-rate input:checked ~ label {
    color: #f59e0b;
}

.wcr-rate label:hover {
    transform: scale(1.1);
}

.wcr-rate input:focus + label {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

.wcr-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wcr-field-consent label {
    flex-direction: row;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    color: #4b5563;
}

.wcr-submit {
    display: inline-block;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .15s ease;
}

.wcr-submit:hover {
    opacity: .9;
}

.wcr-submit[disabled] {
    opacity: .5;
    cursor: default;
}

.wcr-form-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.wcr-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.wcr-form-message.wcr-ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wcr-form-message.wcr-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wcr-product-filter {
    margin-bottom: 6px;
}

.wcr-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .wcr-reviews {
        grid-template-columns: repeat(min(var(--wcr-cols, 1), 2), minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wcr-reviews {
        grid-template-columns: 1fr;
    }
    .wcr-review-rating {
        margin-left: 0;
        width: 100%;
    }
}