/* =============================================================
   WC Rating & Reviews — Elementor Widget  |  wcrr.css
   Pixel-perfect match to design reference
============================================================= */

.wcrr-widget {
    background: #fff;
    color: #1a1e2e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

/* ---- Title ---- */
.wcrr-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1e2e;
    margin: 0 0 6px;
    padding: 0;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* ---- Subtitle ---- */
.wcrr-subtitle {
    font-size: .875rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0 0 22px;
    padding: 0;
    line-height: 1.4;
}

/* ---- Summary row: score LEFT, bars RIGHT ---- */
.wcrr-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 26px;
}

/* -- Big score -- */
.wcrr-score {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
}

.wcrr-score-num {
    font-size: 4rem;
    font-weight: 900;
    color: #1a1e2e;
    line-height: 1;
    letter-spacing: -.04em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wcrr-score-denom {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    margin-left: 2px;
    line-height: 1;
    align-self: flex-end;
    padding-bottom: 6px;
}

/* -- Bars column -- */
.wcrr-bars {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.wcrr-bar-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.wcrr-bar-star {
    font-size: .95rem;
    color: #f59e0b;
    flex: 0 0 16px;
    line-height: 1;
}

.wcrr-bar-label {
    font-size: .82rem;
    font-weight: 600;
    color: #1a1e2e;
    flex: 0 0 10px;
    text-align: right;
    line-height: 1;
}

.wcrr-bar-track {
    flex: 1 1 auto;
    height: 8px;
    background: #d1d5db;
    border-radius: 99px;
    overflow: hidden;
}

.wcrr-bar-fill {
    height: 100%;
    width: 0;                          /* animated by JS */
    background: #1a1e2e;
    border-radius: 99px;
    transition: width 1s cubic-bezier(.22, 1, .36, 1);
}

/* ---- Form ---- */
.wcrr-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Star picker */
.wcrr-star-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.wcrr-pick-star {
    font-size: 1.6rem;
    line-height: 1;
    color: #d1d5db;
    cursor: pointer;
    transition: color .12s, transform .12s;
    user-select: none;
}

.wcrr-pick-star:hover,
.wcrr-pick-star.active {
    color: #f59e0b;
    transform: scale(1.2);
}

.wcrr-pick-label {
    font-size: .78rem;
    color: #9ca3af;
    margin-left: 6px;
    font-weight: 500;
}

/* Textarea — matches the rounded-rect in the image */
.wcrr-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: .9rem;
    color: #1a1e2e;
    background: #fff;
    resize: vertical;
    min-height: 110px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    display: block;
    line-height: 1.5;
}

.wcrr-textarea::placeholder {
    color: #9ca3af;
    font-size: .88rem;
}

.wcrr-textarea:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

/* Submit button — red pill, matches image */
.wcrr-submit {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 32px;
    background: #e02020;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    line-height: 1;
    transition: background .18s, transform .1s, box-shadow .18s;
    box-shadow: 0 4px 16px rgba(224,32,32,.28);
    align-self: flex-start;
}

.wcrr-submit:hover {
    background: #c01818;
    box-shadow: 0 6px 20px rgba(224,32,32,.36);
    transform: translateY(-1px);
}

.wcrr-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(224,32,32,.2);
}

.wcrr-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* Message */
.wcrr-message {
    margin-top: 10px;
    font-size: .82rem;
    font-weight: 600;
    min-height: 0;
}

.wcrr-message.success { color: #16a34a; }
.wcrr-message.error   { color: #dc2626; }
