.rrwc {
    --rrwc-ink: #03295d;
    --rrwc-muted: #526176;
    --rrwc-line: #ded6dc;
    --rrwc-accent: #03295d;
    --rrwc-secondary: #c9959a;
    --rrwc-pale: #f7edef;
    --rrwc-error: #aa3544;
    color: var(--rrwc-ink);
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.5;
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
    clear: both;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--rrwc-line);
}
.rrwc *, .rrwc *::before, .rrwc *::after { box-sizing: border-box; letter-spacing: 0; }
.rrwc h3, .rrwc legend, .rrwc label { color: var(--rrwc-ink); }
.rrwc [hidden] { display: none !important; }
.rrwc-viewbar, .rrwc-upload-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rrwc-viewbar { margin: 18px 0 12px; flex-wrap: wrap; }
.rrwc-views { display: inline-flex; border-bottom: 1px solid var(--rrwc-line); }
.rrwc .rrwc-views button { padding: 7px 10px; font: inherit; font-size: 12px; border: 0; border-bottom: 2px solid transparent; color: var(--rrwc-muted); background: transparent; box-shadow: none; }
.rrwc .rrwc-views button[aria-pressed="true"] { color: var(--rrwc-accent); border-bottom-color: var(--rrwc-secondary); }
.rrwc-format { color: var(--rrwc-muted); font-size: 11px; overflow-wrap: anywhere; }
.rrwc-stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: var(--rrwc-ratio, 3 / 4); max-height: 480px; overflow: hidden; background: repeating-linear-gradient(135deg, #f8f6f7 0, #f8f6f7 10px, #eee8ec 10px, #eee8ec 11px); }
.rrwc-stage > img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 480px; object-fit: contain; border-radius: 0; }
.rrwc-empty { display: grid; justify-items: center; gap: 10px; color: var(--rrwc-muted); font-size: 13px; }
.rrwc-empty .dashicons { font-size: 36px; width: 36px; height: 36px; }
.rrwc-image-label { position: absolute; bottom: 10px; left: 10px; font-size: 10px; text-transform: uppercase; background: #fffffff0; color: var(--rrwc-ink); padding: 4px 8px; }
.rrwc-image-label:empty { display: none; }
.rrwc-progress { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: #ffffffdd; font-size: 14px; }
.rrwc-painter { position: relative; flex: 0 0 44px; width: 44px; height: 30px; }
.rrwc-painter::after { content: ""; position: absolute; bottom: 2px; left: 3px; width: 34px; height: 4px; background: var(--rrwc-secondary); border-radius: 2px; transform-origin: left; animation: rrwc-paint-stroke 1.8s ease-in-out infinite; }
.rrwc-painter .dashicons { position: absolute; top: 0; left: 0; width: 24px; height: 24px; font-size: 24px; animation: rrwc-paint-brush 1.8s ease-in-out infinite; }
@keyframes rrwc-paint-brush { 0%, 100% { transform: translateX(0) rotate(-20deg); } 50% { transform: translateX(20px) rotate(12deg); } }
@keyframes rrwc-paint-stroke { 0%, 100% { transform: scaleX(.2); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
.rrwc-upload-row { margin-top: 12px; justify-content: flex-start; }
.rrwc-upload { display: inline-flex; align-items: center; gap: 6px; position: relative; flex-shrink: 0; padding: 8px 10px; border: 1px solid var(--rrwc-line); cursor: pointer; border-radius: 4px; background: #fff; font-weight: 500; font-size: 12px; }
.rrwc-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rrwc-upload:focus-within { outline: 2px solid var(--rrwc-accent); outline-offset: 3px; }
.rrwc .dashicons { flex-shrink: 0; }
.rrwc-file-name { color: var(--rrwc-muted); font-size: 11px; min-width: 0; overflow-wrap: anywhere; }
.rrwc .rrwc-style-field { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; background: transparent; }
.rrwc .rrwc-style-field legend { float: none; width: auto; font-size: 12px; font-weight: 600; margin: 0 0 9px; padding: 0; background: transparent; }
.rrwc-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.rrwc .rrwc-styles-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rrwc .rrwc-styles-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rrwc .rrwc-styles-dialog { width: min(760px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 16px; margin: auto; border: 1px solid var(--rrwc-line); border-radius: 6px; background: #fff; color: var(--rrwc-ink); overflow: auto; }
.rrwc-styles-dialog::backdrop { background: #0009; }
.rrwc-styles-dialog-header { position: sticky; top: -16px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -16px -16px 16px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--rrwc-line); }
.rrwc-styles-dialog .rrwc-style-check { z-index: 1; }
.rrwc .rrwc-styles-dialog-header h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.rrwc-styles-dialog-header button { flex-shrink: 0; }
.rrwc .rrwc-style[data-rrwc-style-choice] { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; text-transform: none; box-shadow: none; white-space: normal; }
.rrwc .rrwc-styles-primary .rrwc-style-chip { grid-template-rows: 36px 1fr; }
.rrwc .rrwc-styles-primary .rrwc-style-chip > .rrwc-style-detail { display: none; }
.rrwc .rrwc-styles-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; width: 100%; min-width: 0; min-height: 138px; height: 100%; margin: 0; padding: 12px 6px; border: 1px dashed var(--rrwc-secondary); border-radius: 4px; background: var(--rrwc-pale); color: var(--rrwc-ink); font: inherit; text-transform: none; white-space: normal; overflow-wrap: anywhere; box-shadow: none; }
.rrwc .rrwc-styles-toggle > .dashicons { width: 28px; height: 28px; font-size: 28px; }
.rrwc .rrwc-styles-toggle.has-selection { box-shadow: inset 0 3px 0 var(--rrwc-secondary); border-style: solid; border-color: var(--rrwc-accent); }
.rrwc-style { position: relative; min-width: 0; margin: 0; }
.rrwc-style > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rrwc-style-chip { position: relative; display: grid; grid-template-rows: 36px auto 1fr; justify-items: center; align-content: start; gap: 7px; padding: 14px 8px 10px; min-height: 138px; height: 100%; border: 1px solid var(--rrwc-line); border-radius: 4px; text-align: center; cursor: pointer; overflow-wrap: anywhere; background: #fff; }
.rrwc-style-name { font-size: 12px; line-height: 1.4; font-weight: 600; }
.rrwc-style-detail { font-size: 11px; line-height: 1.45; color: var(--rrwc-muted); }
.rrwc .rrwc-style-check { display: none; position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; font-size: 16px; color: var(--rrwc-accent); }
.rrwc-style input:checked + .rrwc-style-chip .rrwc-style-check,
.rrwc-style[aria-pressed="true"] .rrwc-style-check { display: block; }
.rrwc-style input:checked + .rrwc-style-chip,
.rrwc-style[aria-pressed="true"] .rrwc-style-chip { border-color: var(--rrwc-accent); background: var(--rrwc-pale); box-shadow: inset 0 3px 0 var(--rrwc-secondary); }
.rrwc-style input:focus-visible + .rrwc-style-chip { outline: 2px solid var(--rrwc-accent); outline-offset: 3px; }
.rrwc .rrwc-own-style { display: block; margin: 8px 0 0; }
.rrwc .rrwc-own-style .rrwc-style-chip { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 8px 32px; border: 2px solid var(--rrwc-secondary); }
.rrwc .rrwc-own-label { display: grid; gap: 2px; min-width: 0; }
.rrwc .rrwc-own-style input:checked + .rrwc-style-chip { border-color: var(--rrwc-accent); }
.rrwc .rrwc-own-style .rrwc-style-check { top: 50%; right: 12px; transform: translateY(-50%); }
.rrwc-swatch { display: block; width: 30px; height: 36px; flex-shrink: 0; border-radius: 2px; }
.rrwc-swatch-classic { background: linear-gradient(160deg, #649d8f 48%, #d3ad89 49%); }
.rrwc-swatch-sketch { background: repeating-linear-gradient(145deg, #f0f1ec 0, #f0f1ec 6px, #64716c 7px, #f0f1ec 8px); border: 1px solid #d6ded6; }
.rrwc-swatch-soft { background: linear-gradient(160deg, #b3c9d6 48%, #e5c5c9 49%); }
.rrwc-swatch-vivid { background: repeating-linear-gradient(135deg, #fff 0 5px, #aaa 5px 6px, #fff 6px 9px); border: 1px solid #ddd; }
.rrwc-swatch-rustic { background: linear-gradient(160deg, #b77d4b 0 40%, #d1b983 41% 68%, #8b9a74 69%); }
.rrwc-swatch-vector { background: repeating-linear-gradient(45deg, transparent 0 7px, #333 7px 8px, transparent 8px 12px), repeating-linear-gradient(135deg, #fff 0 5px, #222 5px 6px, #fff 6px 9px); border: 1px solid #ccc; }
.rrwc-swatch-oil { background: repeating-linear-gradient(120deg, #ffffff30 0 2px, transparent 2px 7px), linear-gradient(150deg, #375f52 0 42%, #d9b56c 43% 65%, #a64b48 66%); }
.rrwc-swatch-pastel { background: repeating-linear-gradient(15deg, #ffffff50 0 1px, transparent 1px 4px), linear-gradient(145deg, #b4cbbb 0 35%, #e7b8c2 36% 70%, #c4d8e5 71%); }
.rrwc-swatch-storybook { background: linear-gradient(155deg, #e2be57 0 32%, #668d72 33% 66%, #c87873 67%); }
.rrwc-swatch-retro { background: repeating-linear-gradient(0deg, #ffffff25 0 1px, transparent 1px 3px), linear-gradient(140deg, #b64943 0 40%, #edcc72 41% 66%, #426970 67%); }
.rrwc-swatch-papercut { background: linear-gradient(140deg, #e1a2a7 0 30%, #9b656b 31% 34%, #f0d88c 35% 61%, #a28e53 62% 65%, #79a39d 66%); }
.rrwc-swatch-popart { background: repeating-linear-gradient(45deg, transparent 0 5px, #15151540 5px 6px), linear-gradient(155deg, #edce32 0 38%, #d95060 39% 67%, #348ba2 68%); }
.rrwc-swatch-sepia { background: repeating-linear-gradient(10deg, #ffffff20 0 1px, transparent 1px 3px), linear-gradient(150deg, #e4d8bf, #967952 55%, #473c30); }
.rrwc-swatch-whisper { background: linear-gradient(145deg, #F7F3EA 20%, #D8E2D4 45%, #C9D6E8 70%, #E6C9CC); }
.rrwc-swatch-soft_heritage { background: linear-gradient(150deg, #F4EDE2 10%, #E0D2C0 35%, #A7B6D6 65%, #D7B7B0); }
.rrwc-swatch-botanic_soft { background: repeating-linear-gradient(65deg, transparent 0 10px, #B6C8A770 10px 12px, transparent 12px 18px), linear-gradient(145deg, #F8F4EA 15%, #B6C8A7 50%, #E1B7C2); }
.rrwc-swatch-astra_classic { background: repeating-linear-gradient(12deg, #80685220 0 1px, transparent 1px 5px), linear-gradient(145deg, #F3E8D2 10%, #8E9875 40%, #7C8FA0 70%, #B58F87); }
.rrwc-style-uses { font-size: 11px; line-height: 1.4; color: var(--rrwc-muted); }
.rrwc-background { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 14px 0 0; }
.rrwc-background label { font-size: 12px; font-weight: 600; }
.rrwc .rrwc-background-description { grid-column: 1 / -1; margin: 0; color: var(--rrwc-muted); font-size: 12px; line-height: 1.5; }
.rrwc .rrwc-background select { width: 100%; min-width: 0; border: 1px solid var(--rrwc-line); border-radius: 4px; padding: 8px 28px 8px 10px; background-color: #fff; color: var(--rrwc-ink); font: inherit; font-size: 12px; }
.rrwc-check { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 9px; align-items: start; font-size: 12px; cursor: pointer; margin: 16px 0; }
.rrwc .rrwc-check input[type="checkbox"] { margin: 3px 0 0; width: 15px; height: 15px; accent-color: var(--rrwc-accent); }
.rrwc .rrwc-check input[type="checkbox"]:focus { outline: 2px solid var(--rrwc-accent); outline-offset: 3px; }
.rrwc-check span { overflow-wrap: anywhere; }
.rrwc-check a { text-decoration: underline; color: inherit; }
.rrwc-consent { font-size: 11px; color: var(--rrwc-muted); }
.rrwc .rrwc-generate { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; padding: 12px 16px; border: 1px solid var(--rrwc-accent); border-radius: 4px; color: #fff; background: var(--rrwc-accent); font: inherit; font-weight: 600; font-size: 13px; box-shadow: none; }
.rrwc .rrwc-generate:hover:not(:disabled) { background: var(--rrwc-secondary); color: var(--rrwc-ink); }
.rrwc button:disabled, .rrwc fieldset:disabled { opacity: 0.5; cursor: not-allowed; }
.rrwc button:focus-visible, .rrwc select:focus-visible { outline: 2px solid var(--rrwc-accent); outline-offset: 3px; }
.rrwc .rrwc-message { font-size: 12px; margin: 10px 0; overflow-wrap: anywhere; }
.rrwc-message:empty { display: none; }
.rrwc-message.is-error { color: var(--rrwc-error); border-left: 2px solid var(--rrwc-error); padding-left: 10px; }
.rrwc-approval { margin-bottom: 0; }
.rrwc-approval:has(input:disabled) { color: var(--rrwc-muted); }
@media (max-width: 400px) {
    .rrwc-viewbar { gap: 8px; }
    .rrwc-styles { gap: 6px; }
    .rrwc .rrwc-styles-primary .rrwc-style-name { font-size: 11px; }
    .rrwc .rrwc-styles-primary .rrwc-style-chip { padding-right: 4px; padding-left: 4px; }
    .rrwc-upload-row { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .rrwc-painter .dashicons, .rrwc-painter::after { animation: none; } }
