/* Customer-facing configurator. Keep the drawing, material swatches and
   success, warning and error states under the configurator's own styles. */
@media screen {
  html,
  body.gbc-standalone-page {
    background-color: #f5f3ed;
  }

  body.gbc-standalone-page {
    min-width: 0;
  }

  .gbc-standalone-page #gbc-configurator {
    /* The app sets its original accent inline when the editor starts. */
    --gbc-accent: #80472e !important;
    --gbc-accent-ink: #75412a;
    --gbc-accent-soft: #f6eee8;
    --gbc-ink: #292a24;
    --gbc-muted: #585b51;
    --gbc-paper: #f5f3ed;
    --gbc-surface: #fffefb;
    --gbc-soft: #f5f2ea;
    --gbc-line: #ddd9ce;
    --gbc-line-strong: #89887a;
    --gbc-radius: .75rem;
    --gbc-radius-sm: .35rem;
    --gbc-font: Inter, "Segoe UI", Arial, sans-serif;
  }

  #gbc-configurator :is(.gbc-header__title, .gbc-step__title) {
    color: var(--gbc-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.025em;
  }

  #gbc-configurator .gbc-header__title {
    font-size: clamp(1.7rem, 3.3vw, 3.2rem);
  }

  #gbc-configurator .gbc-header__eyebrow {
    color: var(--gbc-accent);
  }
}

/* Kolory warsztatu dotyczą interfejsu. Próbki materiałów mają własne kolory. */
@media screen {
  html,
  body.gbc-standalone-page {
    background-color: #fffdf9;
  }

  .gbc-standalone-page #gbc-configurator {
    --gbc-accent: #704a33 !important;
    --gbc-accent-ink: #704a33;
    --gbc-accent-soft: #f2e8db;
    --gbc-ink: #302a26;
    --gbc-muted: #675c52;
    --gbc-paper: #fffdf9;
    --gbc-surface: #ffffff;
    --gbc-soft: #f8f4ee;
    --gbc-line: #ddd0c2;
    --gbc-line-strong: #897665;
    --gbc-radius: .28rem;
    --gbc-radius-sm: .2rem;
  }

  #gbc-configurator .gbc-header {
    padding: clamp(1rem, 2.7vw, 2.7rem);
    border-block-end: 1px solid #ba9276;
    color: var(--gbc-ink);
    background: var(--gbc-accent-soft);
  }

  #gbc-configurator .gbc-header__title {
    color: var(--gbc-ink);
    font-family: Georgia, serif;
    font-weight: 500;
    line-height: 1.08;
  }

  #gbc-configurator .gbc-header__eyebrow,
  #gbc-configurator .gbc-header-progress__value {
    color: var(--gbc-accent-ink);
    font-family: Consolas, "Liberation Mono", monospace;
  }

  #gbc-configurator .gbc-header__lead {
    color: var(--gbc-muted);
  }

  #gbc-configurator .gbc-header-progress__track {
    background: #ddccbc;
  }

  #gbc-configurator .gbc-header-progress__bar {
    background: #946345;
  }

  #gbc-configurator .gbc-header .gbc-button--secondary {
    border-color: var(--gbc-line-strong);
    color: var(--gbc-accent-ink);
    background: var(--gbc-paper);
  }

  #gbc-configurator .gbc-header .gbc-button--secondary:enabled:hover {
    color: var(--gbc-ink);
    border-color: var(--gbc-accent-ink);
    background: #f8f4ee;
  }

  #gbc-configurator .gbc-header :focus-visible {
    outline-color: var(--gbc-accent-ink);
  }

  #gbc-configurator .gbc-editor {
    border-block-start: 2px solid #ba9276;
  }

  #gbc-configurator .gbc-step__title {
    color: var(--gbc-ink);
    font-family: Georgia, serif;
    font-weight: 500;
  }
}
