/* ── Custom Reviews — Frontend styles ──────────────────────────── */

.cwr-wrap {
    font-family: Georgia, 'Times New Roman', serif;
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header — count only, no title */
.cwr-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e2e2;
}
.cwr-count { font-size: 14px; color: #888; }

/* Average row */
.cwr-avg-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.cwr-avg-score {
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
}
.cwr-avg-label { font-size: 13px; color: #888; }

/* Stars (display on cards) */
.cwr-stars { color: #D7A80E; font-size: 15px; letter-spacing: 1px; }

/* Review cards */
.cwr-card {
    padding: 1.25rem 0;
    border-bottom: 1px solid #ececec;
}
.cwr-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.cwr-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500; color: #3b5bdb;
    flex-shrink: 0;
}
.cwr-meta { flex: 1; }
.cwr-author { font-size: 14px; font-weight: 500; margin: 0 0 3px; }
.cwr-date   { font-size: 12px; color: #aaa; margin: 0; }
.cwr-verified {
    font-size: 11px; color: #2a7d4f;
    background: #e6f6ee; padding: 2px 8px;
    border-radius: 20px; margin-left: 8px;
    font-family: sans-serif;
}
.cwr-review-text { font-size: 15px; color: #555; line-height: 1.75; margin: 0; }

/* Store reply */
.cwr-reply {
    margin-top: 12px;
    border-left: 3px solid #ddd;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 0 6px 6px 0;
}
.cwr-reply-label { font-size: 12px; font-weight: 600; color: #888; font-family: sans-serif; display: block; margin-bottom: 4px; }
.cwr-reply-text  { font-size: 14px; color: #555; margin: 0; }

/* Empty / loading */
.cwr-empty, .cwr-loading { font-size: 14px; color: #aaa; padding: 1rem 0; }

/* ── Submit form ──────────────────────────────────────────────── */
.cwr-form-section {
    margin-top: 2.5rem;
    background: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 1.5rem;
}
.cwr-form-title { font-size: 18px; font-weight: 500; margin: 0 0 1.25rem; }

/* Star selector — force override theme styles */
.cwr-star-select { display: flex; gap: 6px; margin-bottom: 1.25rem; }
.cwr-wrap .cwr-form-section .cwr-star-select .cwr-star-btn {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-size: 28px !important;
    cursor: pointer !important;
    color: #D7A80E !important;
    transition: color .15s !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
}
.cwr-wrap .cwr-form-section .cwr-star-select .cwr-star-btn.cwr-star-active,
.cwr-wrap .cwr-form-section .cwr-star-select .cwr-star-btn:hover {
    color: #224A30 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Form inputs with spacing */
.cwr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 600px) {
    .cwr-form-row { grid-template-columns: 1fr; }
}

.cwr-input {
    width: 100%; box-sizing: border-box;
    border: 1px solid #ddd; border-radius: 6px;
    padding: 10px 12px; font-size: 14px;
    font-family: sans-serif;
    transition: border-color .15s;
}
.cwr-input:focus { outline: none; border-color: #888; }
.cwr-textarea {
    min-height: 100px;
    resize: vertical;
    display: block;
    margin-bottom: 0;
    margin-top: 0;
}

/* Submit button */
.cwr-submit-btn {
    margin-top: 16px;
    background: #D7A80E;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 14px;
    font-family: sans-serif;
    cursor: pointer;
    transition: background .2s;
}
.cwr-submit-btn:hover { background: #224A30; }

.cwr-msg { font-size: 13px; margin-top: 12px; padding: 9px 14px; border-radius: 6px; font-family: sans-serif; }
.cwr-msg-success { background: #e6f6ee; color: #2a7d4f; }
.cwr-msg-error   { background: #fdecea; color: #c0392b; }
