/* Repo studios inside the local WordPress: the same calm look as the Ontwerp Studio.
   Scoped to html.pls-local (set by studio-bridge.php). Colour mapping lives in studio-theme.generated.css. */

html.pls-local {
  --pls-ink: #111111; --pls-muted: #4a4a46; --pls-line: #e4e4e0; --pls-field: #d6d6d1; --pls-soft: #f4f4f1;
  --pls-sel: #2f5bff; --pls-danger: #b42318;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f6f6f3;
}
html.pls-local body { font-family: inherit; color: var(--pls-ink); background: #f6f6f3; }
html.pls-local :is(h1, h2, h3) { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.01em; color: var(--pls-ink); }
html.pls-local h1 { font-weight: 700; }

/* The Studio bar replaces the old green page header. */
html.pls-local body > header { display: none !important; }
html.pls-local .pls-local-shell { max-width: 1440px; margin: 0 auto; padding: 12px 16px 0; }
html.pls-local .pls-local-shell .pls-shell { margin: 0; }

/* Cards, steps and controls */
html.pls-local :is(.box, .controls, .bar, .label-preview, .preview, .center figure) { border-color: var(--pls-line) !important; border-radius: 14px !important; box-shadow: none !important; }
html.pls-local .steps button { border-radius: 10px !important; }
html.pls-local .steps button[aria-current] { color: var(--pls-ink) !important; box-shadow: inset 0 0 0 1px var(--pls-ink) !important; }
html.pls-local .steps button b { background: var(--pls-ink) !important; color: #fff !important; }
html.pls-local :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea) { border-radius: 10px !important; border-color: var(--pls-field) !important; }
html.pls-local :is(input, select, textarea):focus-visible { outline: 2px solid var(--pls-ink) !important; outline-offset: 1px; }
html.pls-local :is(.primary, button.primary, a.primary) {
  background: var(--pls-ink) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important;
  font-family: Inter, sans-serif !important; font-weight: 600 !important; box-shadow: none !important;
}
html.pls-local :is(.primary, button.primary, a.primary):hover:not(:disabled) { background: #333 !important; }
html.pls-local .primary:disabled { background: #b9b9b4 !important; }
html.pls-local :is(.fonts, .swatches) button[aria-pressed=true] { outline: 2px solid var(--pls-sel) !important; outline-offset: -2px; }
html.pls-local :is(.fonts, .swatches) button[aria-pressed=true]::after { background: var(--pls-sel) !important; }
html.pls-local .swatches i { border-radius: 9px !important; }
html.pls-local .return { color: var(--pls-ink) !important; }
html.pls-local #error:not(:empty) { color: var(--pls-danger) !important; }
html.pls-local a { color: var(--pls-ink); }

@media (max-width: 719px) {
  html.pls-local .pls-local-shell { padding: 0; }
  html.pls-local .pls-local-shell .pls-shell { border-radius: 0; border-inline: 0; }
}

/* Elements that used the coral accent as a background: black with white text. */
html.pls-local .tabs [aria-pressed="true"] { background: var(--pls-ink) !important; color: #fff !important; border-radius: 9px; }
html.pls-local .tabs button { border-radius: 9px; }
html.pls-local .fonts .selected { background: #fff !important; outline: 2px solid var(--pls-sel) !important; }

/* Only the current step is outlined; the others stay light. */
html.pls-local .steps button:not([aria-current]) { border-color: var(--pls-line) !important; box-shadow: none !important; }

/* Print/Cut: the hidden quantity-mode radio sat 1000 px to the right and made phones scroll sideways (review P1-6). */
html.pls-local .plaklab-ss-mode label { position: relative; }
html.pls-local .plaklab-ss-mode input { left: 0 !important; width: 1px; height: 1px; }

/* Ordering (phase 4) */
html.pls-local .pls-local-shell { position: relative; }
html.pls-local .pls-local-cart { position: absolute; right: 28px; top: 22px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--pls-line); border-radius: 10px; background: #fff; color: var(--pls-ink) !important; text-decoration: none !important; font: 600 14px/1 Inter, sans-serif; }
html.pls-local .pls-local-cart span { min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--pls-ink); color: #fff; font-size: 12px; }
html.pls-local .pls-cart-add { margin-left: 8px; }
html.pls-local .pls-cart-note { margin: 8px 0 0; font-size: 14px; }
html.pls-local .pls-cart-note a { font-weight: 600; }
html.pls-local .pls-fly { position: fixed; z-index: 9999; width: 34px; height: 34px; border-radius: 9px; background: #111; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; }
@media (max-width: 1100px) { html.pls-local .pls-local-cart { position: static; margin: 8px 0 0 auto; display: flex; width: max-content; } }
