/* =====================================================
   Reviewfic — Admin Styles v1.2.3
   Meta Box + Shortcode Generator
   Brand color: Review Orange #0E9F6E
   ===================================================== */

/* ── Design tokens ──────────────────────────────────── */
:root {
    --rwf-primary:      #0E9F6E;
    --rwf-primary-lt:   #ECFDF5;
    --rwf-primary-dk:   #057A55;
    --rwf-danger:       #ef4444;
    --rwf-danger-lt:    #fee2e2;
    --rwf-border:       #e5e7eb;
    --rwf-bg:           #f9fafb;
    --rwf-text:         #111827;
    --rwf-muted:        #6b7280;
    --rwf-radius:       8px;
    --rwf-radius-sm:    5px;
}

/* =====================================================
   META BOX — Postbox wrapper
   ===================================================== */

/* Accent left border on the entire meta box */
#reviewfic_meta_box {
    border-left: 3px solid var(--rwf-primary) !important;
}

/* Header bar — "Review Details" title area */
#reviewfic_meta_box .postbox-header {
    background: var(--rwf-primary-lt);
    border-bottom: 1px solid #D1FAE5;
}

#reviewfic_meta_box .postbox-header h2,
#reviewfic_meta_box .postbox-header .hndle {
    color: var(--rwf-primary-dk) !important;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 12px;
}

#reviewfic_meta_box .postbox-header .handle-actions .handlediv {
    color: var(--rwf-primary);
}

/* ── Meta box inner wrap ────────────────────────────── */
.rwf-meta-wrap {
    padding: 4px 0 8px;
}

/* Section block */
.rwf-section {
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius);
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
}

.rwf-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--rwf-bg);
    border-bottom: 1px solid var(--rwf-border);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rwf-muted);
}

.rwf-section-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--rwf-primary);
    vertical-align: middle;
}

.rwf-section-body {
    padding: 4px 0;
}

/* Field row */
.rwf-field {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rwf-border);
}

.rwf-field:last-child {
    border-bottom: none;
}

.rwf-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rwf-text);
    padding-top: 7px;
    line-height: 1.4;
}

.rwf-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Inputs */
.rwf-text-input {
    width: 100%;
    max-width: 320px;
    padding: 7px 10px;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius-sm);
    font-size: 13px;
    color: var(--rwf-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.rwf-text-input:focus {
    border-color: var(--rwf-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,159,110,.15);
}

.rwf-select {
    max-width: 260px;
    padding: 7px 10px;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius-sm);
    font-size: 13px;
    color: var(--rwf-text);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.rwf-select:focus {
    border-color: var(--rwf-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,159,110,.15);
}

.rwf-number-input {
    width: 80px;
    padding: 7px 10px;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius-sm);
    font-size: 13px;
    color: var(--rwf-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.rwf-number-input:focus {
    border-color: var(--rwf-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,159,110,.15);
}

.rwf-hint {
    font-size: 12px;
    color: var(--rwf-muted);
    margin: 0;
}

.rwf-hint a {
    color: var(--rwf-primary);
    text-decoration: none;
}

.rwf-hint a:hover {
    text-decoration: underline;
}

/* Stars */
.rwf-stars-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rwf-stars-visual {
    display: flex;
    gap: 2px;
}

.rwf-star {
    font-size: 20px;
    line-height: 1;
    transition: color .1s;
}

.rwf-star.full  { color: #f59e0b; }
.rwf-star.half  { color: #f59e0b; opacity: .6; }
.rwf-star.empty { color: #d1d5db; }

/* Source row */
.rwf-source-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.rwf-btn {
    padding: 6px 14px;
    border-radius: var(--rwf-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
    line-height: 1.5;
}

.rwf-btn-secondary {
    background: #fff;
    border-color: var(--rwf-border);
    color: var(--rwf-text);
}

.rwf-btn-secondary:hover {
    border-color: var(--rwf-primary);
    color: var(--rwf-primary);
}

.rwf-btn-danger {
    background: #fff;
    border-color: var(--rwf-danger);
    color: var(--rwf-danger);
}

.rwf-btn-danger:hover {
    background: var(--rwf-danger-lt);
}

/* Avatar upload */
.rwf-avatar-upload {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.rwf-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px dashed var(--rwf-border);
    background: var(--rwf-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color .15s;
}

.rwf-avatar-preview.has-image {
    border-style: solid;
    border-color: var(--rwf-primary);
}

.rwf-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.rwf-avatar-placeholder .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #d1d5db;
}

.rwf-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* =====================================================
   SHORTCODE GENERATOR
   ===================================================== */

.rwf-generator-wrap {
    max-width: 1100px;
}

.rwf-generator-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rwf-border);
}

.rwf-generator-header-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--rwf-primary);
}

.rwf-generator-title {
    font-size: 22px !important;
    font-weight: 700;
    color: var(--rwf-text);
    margin: 0 0 2px !important;
    padding: 0 !important;
    border: none !important;
}

.rwf-generator-subtitle {
    color: var(--rwf-muted);
    font-size: 13px;
    margin: 0;
}

/* Two-column layout */
.rwf-generator-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .rwf-generator-layout { grid-template-columns: 1fr; }
}

/* Form card */
.rwf-generator-form-card {
    background: #fff;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Gen fields */
.rwf-gen-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.rwf-gen-field:last-of-type {
    margin-bottom: 24px;
}

.rwf-gen-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rwf-text);
    display: flex;
    align-items: center;
    gap: 7px;
}

.rwf-gen-label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--rwf-primary);
    flex-shrink: 0;
}

.rwf-gen-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius-sm);
    font-size: 13px;
    color: var(--rwf-text);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.rwf-gen-select:focus {
    border-color: var(--rwf-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,159,110,.15);
}

.rwf-gen-number {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius-sm);
    font-size: 13px;
    color: var(--rwf-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.rwf-gen-number:focus {
    border-color: var(--rwf-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,159,110,.15);
}

.rwf-gen-hint {
    font-size: 12px;
    color: var(--rwf-muted);
    margin: 0;
}

.rwf-gen-hint a {
    color: var(--rwf-primary);
    text-decoration: none;
}

.rwf-gen-hint a:hover { text-decoration: underline; }

/* Column toggle */
.rwf-columns-toggle {
    display: flex;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius-sm);
    overflow: hidden;
    width: fit-content;
}

.rwf-col-btn {
    padding: 8px 22px;
    background: #fff;
    border: none;
    border-right: 1px solid var(--rwf-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--rwf-muted);
    cursor: pointer;
    transition: all .15s;
    line-height: 1;
}

.rwf-col-btn:last-child { border-right: none; }

.rwf-col-btn:hover {
    background: var(--rwf-primary-lt);
    color: var(--rwf-primary);
}

.rwf-col-btn.active {
    background: var(--rwf-primary);
    color: #fff;
}

/* Toggle switch */
.rwf-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.rwf-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rwf-toggle-track {
    position: relative;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    transition: background .2s;
    flex-shrink: 0;
}

.rwf-toggle input:checked ~ .rwf-toggle-track {
    background: var(--rwf-primary);
}

.rwf-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.rwf-toggle input:checked ~ .rwf-toggle-track .rwf-toggle-thumb {
    transform: translateX(18px);
}

.rwf-toggle-label {
    font-size: 13px;
    color: var(--rwf-text);
}

/* Generate button */
.rwf-gen-btn {
    width: 100%;
    padding: 11px;
    background: var(--rwf-primary);
    color: #fff;
    border: none;
    border-radius: var(--rwf-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.rwf-gen-btn:hover { background: var(--rwf-primary-dk); }

.rwf-gen-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Output card */
.rwf-generator-output-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rwf-output-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--rwf-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rwf-output-body {
    background: #1e1e2e;
    border-radius: var(--rwf-radius);
    padding: 20px;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.rwf-output-placeholder {
    color: #6b6b8a;
    font-size: 13px;
    font-style: italic;
}

.rwf-code-wrap { width: 100%; }

.rwf-code-wrap code {
    display: block;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    color: #a6e3a1;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.6;
    background: none;
    padding: 0;
}

.rwf-output-footer {
    display: flex;
    align-items: center;
}

.rwf-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--rwf-text);
    cursor: pointer;
    transition: all .15s;
}

.rwf-copy-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.rwf-copy-btn:hover {
    border-color: var(--rwf-primary);
    color: var(--rwf-primary);
}

.rwf-copy-btn.copied {
    border-color: #10b981;
    color: #10b981;
    background: #ecfdf5;
}

/* Usage reference */
.rwf-usage-card {
    background: #fff;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius);
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.rwf-usage-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rwf-text);
    margin-bottom: 12px;
}

.rwf-usage-title .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--rwf-primary);
}

.rwf-usage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rwf-usage-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--rwf-border);
    vertical-align: top;
    color: var(--rwf-text);
}

.rwf-usage-table tr:last-child td { border-bottom: none; }

.rwf-usage-table td:first-child code {
    background: var(--rwf-primary-lt);
    color: var(--rwf-primary-dk);
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
    font-weight: 600;
}

.rwf-usage-table td:last-child { color: var(--rwf-muted); }

/* ── Source badge colors ──────────────────────────────── */
.reviewfic-source-badge,
.rwf-badge-preview {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.6;
    color: #fff;
    background: #aaa;
}

.rwf-source-google,    .reviewfic-source-google     { background: #4285F4; color: #fff; }
.rwf-source-trustpilot,.reviewfic-source-trustpilot { background: #00B67A; color: #fff; }
.rwf-source-g2,        .reviewfic-source-g2         { background: #FF492C; color: #fff; }
.rwf-source-capterra,  .reviewfic-source-capterra   { background: #FF3E72; color: #fff; }
.rwf-source-facebook,  .reviewfic-source-facebook   { background: #1877F2; color: #fff; }
.rwf-source-yelp,      .reviewfic-source-yelp       { background: #FF1A1A; color: #fff; }
.rwf-source-amazon,    .reviewfic-source-amazon     { background: #FF9900; color: #111; }
.rwf-source-custom,    .reviewfic-source-custom     { background: #444;    color: #fff; }

/* ── Template picker ──────────────────────────────────── */
.rwf-template-picker {
    display: flex;
    gap: 12px;
}

.rwf-template-option {
    flex: 1;
    border: 2px solid var(--rwf-border);
    border-radius: var(--rwf-radius);
    padding: 10px;
    cursor: pointer;
    transition: all .18s;
    background: #fff;
    text-align: center;
    user-select: none;
}

.rwf-template-option:hover {
    border-color: var(--rwf-primary);
}

.rwf-template-option.active {
    border-color: var(--rwf-primary);
    background: var(--rwf-primary-lt);
}

.rwf-template-preview {
    border-radius: 6px;
    padding: 10px;
    background: #f9fafb;
    margin-bottom: 8px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

/* Template 2 preview has orange left border */
.rwf-tp-2 {
    border-left: 3px solid var(--rwf-primary);
    background: #F0FDF4;
}

.rwf-tp-stars {
    font-size: 10px;
    color: #f59e0b;
    letter-spacing: 1px;
}

.rwf-tp-stars.small {
    font-size: 8px;
}

.rwf-tp-line {
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
}

.rwf-tp-line.short  { width: 65%; }
.rwf-tp-line.xshort { width: 40%; }

.rwf-tp-avatar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.rwf-tp-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.rwf-tp-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.rwf-tp-accent-bar {
    height: 3px;
    width: 30px;
    background: var(--rwf-primary);
    border-radius: 2px;
    margin-bottom: 2px;
}

.rwf-tp-quote {
    font-size: 22px;
    color: rgba(14,159,110,.3);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 2px;
}

.rwf-template-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--rwf-text);
}

.rwf-template-option.active .rwf-template-label {
    color: var(--rwf-primary-dk);
}

/* Divider */
.rwf-gen-divider {
    height: 1px;
    background: var(--rwf-border);
    margin: 4px 0 20px;
}

/* ── Template picker: 5-column grid ──────────────────── */
.rwf-template-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* Template 3 — Minimal preview */
.rwf-tp-3 {
    background: #fff;
    border-top: 3px solid var(--rwf-primary);
    border-radius: 0;
    padding-top: 8px;
}

.rwf-tp-top-bar {
    height: 3px;
    width: 100%;
    background: var(--rwf-primary);
    border-radius: 2px;
    margin-bottom: 6px;
    display: none; /* bar already on .rwf-tp-3 via border */
}

/* Template 4 — Dark preview */
.rwf-tp-4 {
    background: #111827;
    border-radius: 6px;
}

.rwf-tp-4 .rwf-tp-stars { color: #f59e0b; }

.rwf-tp-line.dark  { background: #374151; }
.rwf-tp-avatar.dark { background: #374151; border: 1px solid #0E9F6E; }

/* Template 5 — Centered preview */
.rwf-tp-5 {
    background: #fff;
    border-radius: 6px;
    align-items: center;
    text-align: center;
}

.rwf-tp-avatar.centered {
    margin: 0 auto 4px;
    border: 2px solid var(--rwf-primary);
}

.rwf-tp-line.centered {
    margin-left: auto;
    margin-right: auto;
}

.rwf-tp-stars.centered {
    text-align: center;
}

/* =====================================================
   SHORTCODE CONFIG META BOX
   ===================================================== */

/* Fix template picker to single column in generator */
.rwf-template-picker {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
}

/* Sidebar shortcode display */
.rwf-sc-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rwf-sc-display code {
    display: block;
    background: #1e1e2e;
    color: #a6e3a1;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-all;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.rwf-sc-copy {
    width: 100%;
    text-align: center;
}

/* Config meta box wrap */
.rwf-config-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0;
}

/* Config sections */
.rwf-config-section {
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius);
    overflow: hidden;
    background: #fff;
}

.rwf-config-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--rwf-bg);
    border-bottom: 1px solid var(--rwf-border);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rwf-muted);
}

.rwf-config-section-title .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--rwf-primary);
}

/* Two-column grid for display+filter */
.rwf-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 782px) {
    .rwf-config-grid { grid-template-columns: 1fr; }
}

/* Config row */
.rwf-config-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rwf-border);
    flex-wrap: wrap;
}

.rwf-config-row:last-child { border-bottom: none; }

.rwf-config-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rwf-text);
    min-width: 130px;
    flex-shrink: 0;
}

/* Template list picker */
.rwf-tpl-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rwf-tpl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--rwf-border);
    border-radius: var(--rwf-radius-sm);
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}

.rwf-tpl-row:hover {
    border-color: var(--rwf-primary);
    background: var(--rwf-primary-lt);
}

.rwf-tpl-row.active {
    border-color: var(--rwf-primary);
    background: var(--rwf-primary-lt);
}

.rwf-tpl-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rwf-border);
    color: var(--rwf-muted);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .15s;
}

.rwf-tpl-row.active .rwf-tpl-num {
    background: var(--rwf-primary);
    color: #fff;
}

.rwf-tpl-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    font-size: 13px;
}

.rwf-tpl-info strong {
    color: var(--rwf-text);
}

.rwf-tpl-info span {
    font-size: 11px;
    color: var(--rwf-muted);
}

.rwf-tpl-check {
    color: var(--rwf-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: opacity .15s;
}

.rwf-tpl-row.active .rwf-tpl-check { opacity: 1; }

/* Slider sub-options */
.rwf-slider-subopts {
    overflow: hidden;
    transition: max-height .25s ease;
    max-height: 600px;
}

.rwf-slider-subopts.rwf-collapsed {
    max-height: 0;
    border-top: none;
}

.rwf-subopts-grid {
    border-top: 1px solid var(--rwf-border);
    background: #fafafa;
}

/* Hidden utility */
.rwf-hidden { display: none !important; }

/* ── Template row mini previews ──────────────────────── */
.rwf-tpl-mini-preview {
    width: 72px;
    height: 64px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    padding: 7px 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Template 2 — Quote */
.rwf-mp-2 {
    border-left: 3px solid var(--rwf-primary);
    background: #F0FDF4;
}

/* Template 3 — Minimal */
.rwf-mp-3 {
    border-top: 2px solid var(--rwf-primary);
    border-radius: 0;
}

/* Template 4 — Dark */
.rwf-mp-4 {
    background: #111827;
    border-color: #374151;
}

/* Template 5 — Centered */
.rwf-mp-5 {
    align-items: center;
}

/* Stars */
.rwf-mp-stars {
    font-size: 7px;
    color: #f59e0b;
    letter-spacing: 0.5px;
    line-height: 1;
}
.rwf-mp-stars.centered { text-align: center; }

/* Lines */
.rwf-mp-line {
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    width: 100%;
}
.rwf-mp-line.short  { width: 65%; }
.rwf-mp-line.xshort { width: 40%; }
.rwf-mp-line.light  { background: #374151; }
.rwf-mp-line.centered { margin-left: auto; margin-right: auto; }

/* Quote mark */
.rwf-mp-quote {
    font-size: 16px;
    color: rgba(14,159,110,.35);
    font-family: Georgia, serif;
    line-height: 1;
    margin: -2px 0;
}

/* Avatar row */
.rwf-mp-avatar-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.rwf-mp-circle {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}
.rwf-mp-circle.centered {
    margin: 0 auto 2px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--rwf-primary);
    background: #e5e7eb;
}
.rwf-mp-circle.orange-ring {
    border: 1px solid var(--rwf-primary);
    background: #4b5563;
}

.rwf-mp-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

/* ── Design section ───────────────────────────────────── */
.rwf-section-hint {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    color: var(--rwf-muted);
    text-transform: none;
    letter-spacing: 0;
}

.rwf-range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rwf-range {
    width: 160px;
    accent-color: var(--rwf-primary);
    cursor: pointer;
}

.rwf-range-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--rwf-primary);
    min-width: 36px;
}

/* Color picker override to fit our layout */
.rwf-config-row .wp-picker-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
