/* Konfigurator druku – style ograniczone do .rrk, czcionka dziedziczona z motywu. */
.rrk {
  --rrk-accent: #2068af;
  --rrk-accent-dark: #174f87;
  --rrk-ink: #1c2530;
  --rrk-muted: #5a6573;
  --rrk-line: #d6dde6;
  --rrk-soft: #eef3f9;
  --rrk-bg: #ffffff;
  --rrk-err: #b42318;
  --rrk-ok: #1f7a3d;
  container-type: inline-size;
  color: var(--rrk-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  max-width: 100%;
  margin: 1.5em 0;
}
.rrk *, .rrk *::before, .rrk *::after { box-sizing: border-box; }
.rrk [hidden] { display: none !important; }
.rrk.rrk-loading .rrk-body { opacity: .45; transition: opacity .15s; }

/* fields */
.rrk .rrk-picker { display: flex; flex-wrap: wrap; gap: 12px 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--rrk-line); }
.rrk .rrk-picker .rrk-field { flex: 1 1 200px; margin: 0; }
.rrk .rrk-picker .rrk-field-wide { flex: 2 1 280px; }
.rrk .rrk-field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.rrk .rrk-field > label, .rrk .rrk-field > legend {
  display: block; padding: 0; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--rrk-ink); float: none;
}
.rrk select, .rrk input[type=text], .rrk input[type=email], .rrk input[type=tel], .rrk textarea {
  display: block; width: 100%; max-width: 100%; margin: 0; padding: 9px 12px; min-height: 42px;
  font: inherit; font-size: 15px; color: var(--rrk-ink); background-color: var(--rrk-bg);
  border: 1px solid #b9c3cf; border-radius: 6px; box-shadow: none;
}
.rrk select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a6573' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.rrk textarea { min-height: 80px; resize: vertical; }
.rrk select:focus-visible, .rrk input:focus-visible, .rrk textarea:focus-visible, .rrk button:focus-visible, .rrk a:focus-visible {
  outline: 2px solid var(--rrk-accent); outline-offset: 2px;
}

/* layout */
.rrk .rrk-body { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 760px) {
  .rrk .rrk-body { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: start; }
  .rrk .rrk-panel { position: sticky; top: 24px; }
}
.rrk .rrk-title { margin: 0 0 14px; font-size: 1.35em; line-height: 1.25; color: var(--rrk-ink); }
.rrk .rrk-muted { color: var(--rrk-muted); font-size: 14px; margin: 0 0 12px; }

/* constant parameters */
.rrk .rrk-fixed { margin: 0 0 20px; padding: 10px 14px; background: var(--rrk-soft); border-radius: 6px; font-size: 14px; }
.rrk .rrk-fixed div { display: flex; flex-wrap: wrap; gap: 0 6px; padding: 2px 0; }
.rrk .rrk-fixed dt { margin: 0; font-weight: 600; color: var(--rrk-muted); }
.rrk .rrk-fixed dt::after { content: ':'; }
.rrk .rrk-fixed dd { margin: 0; }

/* chips (radio buttons) */
.rrk .rrk-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.rrk .rrk-chip { position: relative; display: inline-flex; }
.rrk .rrk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.rrk .rrk-chip label {
  display: inline-block; margin: 0; padding: 8px 14px; min-height: 40px; font-size: 14px; font-weight: 500; line-height: 22px;
  color: var(--rrk-ink); background: var(--rrk-bg); border: 1px solid #b9c3cf; border-radius: 6px; cursor: pointer; user-select: none;
}
.rrk .rrk-chip label:hover { border-color: var(--rrk-accent); }
.rrk .rrk-chip input:checked + label { color: #fff; background: var(--rrk-accent); border-color: var(--rrk-accent); }
.rrk .rrk-chip input:focus-visible + label { outline: 2px solid var(--rrk-accent); outline-offset: 2px; }

/* price panel */
.rrk .rrk-panel { border: 1px solid var(--rrk-line); border-radius: 8px; background: var(--rrk-bg); overflow: hidden; }
.rrk .rrk-sum { padding: 18px 20px 14px; border-top: 4px solid var(--rrk-accent); }
.rrk .rrk-sum p { margin: 0; }
.rrk .rrk-sum-label { font-size: 14px; color: var(--rrk-muted); }
.rrk .rrk-sum-net { margin: 4px 0 6px !important; font-variant-numeric: tabular-nums; }
.rrk .rrk-sum-net strong { font-size: 2em; line-height: 1.1; font-weight: 700; color: var(--rrk-ink); letter-spacing: -.01em; }
.rrk .rrk-sum-net span { font-size: 15px; color: var(--rrk-muted); white-space: nowrap; }
.rrk .rrk-sum-sub { font-size: 14px; color: var(--rrk-ink); font-variant-numeric: tabular-nums; }
.rrk .rrk-disclaimer { margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed var(--rrk-line); font-size: 12.5px; line-height: 1.4; color: var(--rrk-muted); }
.rrk .rrk-terms { padding: 0 20px; }
.rrk .rrk-terms .rrk-field { margin-bottom: 12px; }
.rrk .rrk-terms > p { margin: 0 0 10px; }

/* price ladder */
.rrk .rrk-ladder { border-top: 1px solid var(--rrk-line); }
.rrk .rrk-table-scroll { max-height: 360px; overflow-y: auto; }
.rrk .rrk-table { width: 100%; margin: 0; border-collapse: collapse; border: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.rrk .rrk-table caption { padding: 10px 20px 6px; text-align: left; font-size: 13px; font-weight: 600; color: var(--rrk-muted); caption-side: top; }
.rrk .rrk-table th, .rrk .rrk-table td { padding: 6px 10px; border: 0; border-top: 1px solid #edf0f4; text-align: left; vertical-align: middle; background: none; }
.rrk .rrk-table thead th { position: sticky; top: 0; z-index: 1; background: var(--rrk-bg); font-size: 12px; font-weight: 600; color: var(--rrk-muted); border-top: 0; border-bottom: 1px solid var(--rrk-line); }
.rrk .rrk-table th:first-child { padding-left: 20px; }
.rrk .rrk-table td:last-child, .rrk .rrk-table th:last-child { padding-right: 20px; text-align: right; }
.rrk .rrk-table tbody tr { cursor: pointer; }
.rrk .rrk-table tbody tr:hover { background: #f6f8fb; }
.rrk .rrk-table tbody th { position: relative; font-weight: 500; white-space: nowrap; }  /* 1.8.3: ukryte pole wyboru zostaje w przewijanej tabeli */
.rrk .rrk-table tbody th input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rrk .rrk-table tbody th label { cursor: pointer; margin: 0; font-weight: inherit; }
.rrk .rrk-table tbody tr.rrk-on { background: var(--rrk-soft); }
.rrk .rrk-table tbody tr.rrk-on th { font-weight: 700; color: var(--rrk-accent-dark); box-shadow: inset 4px 0 0 var(--rrk-accent); }
.rrk .rrk-table tbody tr.rrk-on .rrk-total { font-weight: 700; }
.rrk .rrk-table tbody th:has(input:focus-visible) { outline: 2px solid var(--rrk-accent); outline-offset: -2px; }
.rrk .rrk-unit { position: relative; width: 42%; white-space: nowrap; }
.rrk .rrk-unit .rrk-bar { position: absolute; left: 10px; bottom: 5px; height: 3px; max-width: calc(100% - 20px); background: rgba(32, 104, 175, .35); border-radius: 2px; }
.rrk .rrk-table tbody tr.rrk-on .rrk-bar { background: var(--rrk-accent); }
.rrk .rrk-unit span:last-child { position: relative; }
.rrk .rrk-total { white-space: nowrap; }

/* inquiry */
.rrk .rrk-inquiry { padding: 16px 20px 20px; border-top: 1px solid var(--rrk-line); }
.rrk .rrk-btn {
  display: inline-block; width: 100%; margin: 0; padding: 11px 18px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3;
  color: #fff; background: var(--rrk-accent); border: 1px solid var(--rrk-accent); border-radius: 6px; cursor: pointer; text-transform: none; letter-spacing: normal;
}
.rrk .rrk-btn:hover { background: var(--rrk-accent-dark); border-color: var(--rrk-accent-dark); color: #fff; }
.rrk .rrk-btn:disabled { opacity: .6; cursor: progress; }
.rrk .rrk-btn-quiet { color: var(--rrk-accent); background: transparent; }
.rrk .rrk-btn-quiet:hover { color: var(--rrk-accent-dark); background: var(--rrk-soft); }
.rrk .rrk-form h4 { margin: 0 0 10px; font-size: 1.05em; color: var(--rrk-ink); }
.rrk .rrk-form-summary { margin: 0 0 14px; padding: 10px 12px; font-size: 13px; background: var(--rrk-soft); border-radius: 6px; }
.rrk .rrk-form-summary p { margin: 0 0 4px; font-weight: 600; }
.rrk .rrk-form-summary ul { margin: 0; padding: 0 0 0 18px; }
.rrk .rrk-form-summary li { margin: 0; }
.rrk .rrk-form .rrk-field { margin-bottom: 12px; }
.rrk .rrk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rrk .rrk-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 13px; line-height: 1.4; }
.rrk .rrk-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--rrk-accent); }
.rrk .rrk-consent a { color: var(--rrk-accent); }
.rrk .rrk-form-msg { min-height: 1em; margin: 0 0 10px; font-size: 14px; }
.rrk .rrk-form-msg:empty { display: none; }
.rrk .rrk-form-err { color: var(--rrk-err); }
.rrk .rrk-form-ok { margin: 0; padding: 12px 14px; font-weight: 600; color: var(--rrk-ok); background: #edf7f0; border-radius: 6px; }
.rrk .rrk-form-actions { display: grid; gap: 8px; }
.rrk .rrk-error { padding: 14px 16px; color: var(--rrk-err); background: #fdf1f0; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) { .rrk * { transition: none !important; } }

/* add-to-inquiry status (panel) */
.rrk .rrk-add-status { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--rrk-ink); }
.rrk .rrk-add-status a { color: var(--rrk-accent); font-weight: 600; }

/* inquiry list (below the configurator) */
.rrk .rrk-list { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--rrk-accent); }
.rrk .rrk-list h3 { margin: 0 0 14px; font-size: 1.25em; line-height: 1.25; color: var(--rrk-ink); }
.rrk .rrk-list h3:focus { outline: none; }
.rrk .rrk-items { margin: 0; padding: 0; list-style: none; counter-reset: rrk-item; border-top: 1px solid var(--rrk-line); }
.rrk .rrk-item { counter-increment: rrk-item; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 24px; margin: 0; padding: 14px 0 14px 34px; position: relative; border-bottom: 1px solid var(--rrk-line); }
.rrk .rrk-item::before { content: counter(rrk-item) "."; position: absolute; left: 0; top: 14px; width: 26px; font-weight: 700; color: var(--rrk-accent); font-variant-numeric: tabular-nums; }
.rrk .rrk-item p { margin: 0; }
.rrk .rrk-item-main { min-width: 0; }
.rrk .rrk-item-name { font-weight: 600; }
.rrk .rrk-item-params { font-size: 13.5px; line-height: 1.45; color: var(--rrk-muted); }
.rrk .rrk-item-side { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-variant-numeric: tabular-nums; }
.rrk .rrk-item-qty { font-size: 14px; }
.rrk .rrk-item-price { font-weight: 700; }
.rrk .rrk-link { margin: 0; padding: 2px 0; font: inherit; font-size: 14px; color: var(--rrk-accent); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.rrk .rrk-link:hover { color: var(--rrk-accent-dark); }
@container (min-width: 640px) {
  .rrk .rrk-item { grid-template-columns: minmax(0, 1fr) auto; }
  .rrk .rrk-item-side { flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
}
.rrk .rrk-list-total { display: grid; gap: 2px; justify-items: end; margin: 14px 0 0; text-align: right; font-variant-numeric: tabular-nums; }
.rrk .rrk-list-total p { margin: 0; }
.rrk .rrk-list-total p:first-child { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 12px; }
.rrk .rrk-list-total span { font-size: 14px; color: var(--rrk-muted); }
.rrk .rrk-list-total strong { font-size: 1.35em; }
.rrk .rrk-list .rrk-disclaimer { margin: 12px 0 20px; border-top: 0; padding-top: 0; text-align: right; }
.rrk .rrk-list .rrk-form { max-width: 760px; padding: 20px; background: var(--rrk-soft); border-radius: 8px; }
.rrk .rrk-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@container (min-width: 640px) { .rrk .rrk-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rrk .rrk-list .rrk-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rrk .rrk-list .rrk-form-actions .rrk-btn { width: auto; }
.rrk .rrk-list .rrk-form-ok { max-width: 760px; }

.rrk .rrk-req { color: var(--rrk-err); font-weight: 600; }
.rrk .rrk-req-note { margin: -4px 0 10px; font-size: 12.5px; color: var(--rrk-muted); }
.rrk .rrk-consent label { cursor: pointer; }

.rrk .rrk-note { margin: 0; padding: 10px 20px; font-size: 13px; color: var(--rrk-muted); border-top: 1px solid var(--rrk-line); }
.rrk .rrk-terms:empty { display: none; }

.rrk .rrk-swatch { display: inline-block; width: 14px; height: 14px; margin: 0 8px 0 0; vertical-align: -2px; border-radius: 50%; border: 1px solid rgba(28, 37, 48, .35); }
.rrk .rrk-chip input:checked + label .rrk-swatch { border-color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }

.rrk .rrk-sum-disc { margin-top: 6px !important; font-size: 13.5px; font-weight: 600; color: var(--rrk-ok); }
.rrk .rrk-disc { display: inline-block; margin-right: 8px; padding: 1px 6px; font-size: 11.5px; font-weight: 700; line-height: 1.5; color: var(--rrk-ok); background: #e7f4ec; border-radius: 4px; }

.rrk .rrk-chip-off label, .rrk .rrk-chip-off label:hover { color: #9aa3ae; background: #f3f5f8; border-color: #dde2e8; border-style: dashed; cursor: not-allowed; }
