/* CalmPet: kalkulator dawkowania. Wygląd zgodny z motywem calmpet-motyw (landing.css): zieleń #123C3A, szałwia #A7C6A4, krem #FBF6EE,
   miętowy #EEF3EA, przyciski w kształcie pigułki. Czcionka z motywu (Montserrat ładowany tylko w 400 i 600, więc tu też tylko 400/600).
   Zasada kształtów: przyciski i chipy to pigułka, karty mają 20 px, pola 14 px, opakowanie 6 px.
   Zasada kolorów: akcentem jest zieleń marki. Kolory wariantów (zielony 600, ceglasty 1200) służą tylko do rozpoznania opakowania.
   Klasy mają prefiks cpd-, bo motyw używa już cp-* i globalnych stylów nagłówków; reguły komponentów mają .cpd + klasę (0,2,0). */

.cpd,
.cpd *,
.cpd *::before,
.cpd *::after { box-sizing: border-box; }

.cpd {
  --cpd-green: var(--cp-color-primary, #123c3a);
  --cpd-green-dark: #0c2c2a;
  --cpd-ink: var(--cp-color-text, #1d2428);
  --cpd-muted: #566166;
  --cpd-sage: var(--cp-color-sage, #a7c6a4);
  --cpd-line: rgba(18, 60, 58, .14);
  --cpd-line-sage: rgba(167, 198, 164, .6);
  --cpd-cream: #fbf6ee;
  --cpd-mint: #eef3ea;
  --cpd-warn-bg: #fff3d1;
  --cpd-warn-ink: #4d3a00;
  --cpd-warn-line: #c9a100;
  --cpd-err-ink: #7a2314;
  --cpd-shadow: 0 1px 2px rgba(18, 60, 58, .05), 0 14px 30px -14px rgba(18, 60, 58, .2);
  --cpd-box-shadow: 0 1px 2px rgba(18, 60, 58, .14), 0 16px 26px -12px rgba(18, 60, 58, .34);
  --cpd-ease: cubic-bezier(.23, 1, .32, 1);
  --cpd-r-card: 20px;
  --cpd-r-field: 14px;
  --cpd-thumb: 28px;
  --cpd-variant: var(--cpd-green);

  max-width: 1180px;
  margin: 0 auto;
  color: var(--cpd-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.cpd[data-status="preview"] { outline: 2px dashed var(--cpd-warn-line); outline-offset: 10px; }
.cpd[hidden] { display: none; }

/* reset elementów, które motyw stylizuje globalnie (specyficzność 0,1,1, komponenty mają 0,2,0) */
.cpd p,
.cpd h1,
.cpd h2,
.cpd h3,
.cpd h4,
.cpd ul,
.cpd dl,
.cpd dt,
.cpd dd,
.cpd figure { margin: 0; padding: 0; }
.cpd ul { list-style: none; }
.cpd img { display: block; max-width: 100%; height: auto; }
.cpd a { transition: none; }

.cpd ::selection { background: var(--cpd-green); color: #fff; }
.cpd :focus-visible { outline: 2px solid var(--cpd-green); outline-offset: 3px; }
.cpd a:focus:not(:focus-visible),
.cpd button:focus:not(:focus-visible) { outline: 0; }
.cpd button,
.cpd .cpd-range { touch-action: manipulation; }
@media (pointer: coarse) { .cpd .cpd-range { height: 44px; } }

.cpd .cpd-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.cpd .cpd-draft {
  margin: 0 0 20px; padding: 10px 14px;
  border-radius: var(--cpd-r-field); background: var(--cpd-warn-bg); color: var(--cpd-warn-ink);
  font-size: 14px; font-weight: 600;
}

/* układ: nagłówek, wejście i wynik; w wariancie split wynik stoi obok nagłówka i wejścia */
.cpd .cpd-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "head head" "input result";
  gap: 28px 32px;
  align-items: start;
}
.cpd .cpd-head { grid-area: head; }
.cpd .cpd-card--input { grid-area: input; }
.cpd .cpd-result { grid-area: result; min-width: 0; }
.cpd--split .cpd-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head result" "input result";
  grid-template-rows: auto 1fr;
  gap: 0 56px;
}
.cpd--split .cpd-head { padding-bottom: 24px; }

.cpd .cpd-head { max-width: 40rem; }
.cpd .cpd-title {
  margin: 0 0 12px; padding: 0;
  color: var(--cpd-green); font-family: inherit; font-size: clamp(2rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 600;
  line-height: 1.08; letter-spacing: -.02em; text-transform: none; text-wrap: balance;
}
.cpd .cpd-lead { max-width: 33em; margin: 0; color: var(--cpd-muted); font-size: clamp(1rem, .95rem + .2vw, 1.0625rem); line-height: 1.55; text-wrap: pretty; }

.cpd .cpd-card {
  padding: 24px;
  border: 1px solid var(--cpd-line-sage); border-radius: var(--cpd-r-card);
  background: #fff; box-shadow: var(--cpd-shadow);
}

/* pole wagi */
.cpd .cpd-label { display: block; margin: 0 0 12px; color: var(--cpd-green); font-size: 15px; font-weight: 600; line-height: 1.3; }
.cpd .cpd-stepper { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 12px; align-items: center; }
.cpd .cpd-step {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0; padding: 0;
  border: 2px solid var(--cpd-green); border-radius: 50%;
  background: #fff; color: var(--cpd-green);
  font: inherit; font-size: 30px; font-weight: 400; line-height: 1;
  -webkit-appearance: none; appearance: none; cursor: pointer; box-shadow: none; text-shadow: none;
  transition: transform 160ms var(--cpd-ease), background-color 160ms ease, color 160ms ease;
}
.cpd .cpd-field {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 64px; padding: 0 14px;
  border: 2px solid var(--cpd-green); border-radius: var(--cpd-r-field); background: #fff;
  transition: box-shadow 160ms ease;
}
.cpd .cpd-field:focus-within { box-shadow: 0 0 0 4px rgba(167, 198, 164, .6); }
.cpd .cpd-field--invalid { border-color: var(--cpd-err-ink); }
.cpd .cpd-field--invalid:focus-within { box-shadow: 0 0 0 4px rgba(122, 35, 20, .18); }
.cpd .cpd-input {
  width: 6ch; min-width: 0; height: auto; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; outline: 0; box-shadow: none; caret-color: var(--cpd-green);
  color: var(--cpd-green); font: inherit; font-size: 2.25rem; font-weight: 600; line-height: 1.1; text-align: right;
  font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none;
}
.cpd .cpd-input::placeholder { color: #68756c; opacity: 1; }
/* motyw nadaje polom tekstowym przerywany obrys przy fokusie (input[type=text]:focus, 0,2,1): zerujemy go, fokus pokazuje ramka pola */
.cpd .cpd-input:focus,
.cpd .cpd-input:focus-visible { border: 0; outline: 0; box-shadow: none; }
.cpd .cpd-unit { color: var(--cpd-muted); font-size: 1.15rem; font-weight: 600; }

/* suwak: tor ma kolory wariantów, znaczniki to wagi z tabeli na opakowaniu */
.cpd .cpd-slider { margin-top: 18px; }
.cpd .cpd-range {
  display: block; width: 100%; height: var(--cpd-thumb); margin: 0; padding: 0;
  background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.cpd .cpd-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: var(--cpd-track, var(--cpd-sage)); }
.cpd .cpd-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--cpd-track, var(--cpd-sage)); }
.cpd .cpd-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: var(--cpd-thumb); height: var(--cpd-thumb); margin-top: -10px;
  border: 3px solid var(--cpd-green); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(18, 60, 58, .28);
}
.cpd .cpd-range::-moz-range-thumb {
  box-sizing: border-box; width: var(--cpd-thumb); height: var(--cpd-thumb);
  border: 3px solid var(--cpd-green); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(18, 60, 58, .28);
}
.cpd .cpd-range:focus,
.cpd .cpd-range:focus-visible { border: 0; outline: 0; }
.cpd .cpd-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(167, 198, 164, .75); }
.cpd .cpd-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(167, 198, 164, .75); }
.cpd .cpd-range--idle::-webkit-slider-thumb { border-color: #8a978d; box-shadow: none; }
.cpd .cpd-range--idle::-moz-range-thumb { border-color: #8a978d; box-shadow: none; }
.cpd .cpd-scale { position: relative; height: 20px; margin-top: 4px; }
.cpd .cpd-scale__tick { position: absolute; top: 0; transform: translateX(-50%); color: var(--cpd-muted); font-size: 12px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cpd .cpd-swatch { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--cpd-variant); }
.cpd .cpd-swatch--lg { width: 12px; height: 12px; margin-right: 10px; }

.cpd .cpd-hint { margin-top: 10px; color: var(--cpd-muted); font-size: 14px; }
.cpd .cpd-hint--error { color: var(--cpd-err-ink); font-weight: 600; }
.cpd .cpd-hint[hidden] { display: none; }

.cpd .cpd-presets { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--cpd-line); }
.cpd .cpd-presets__label { margin: 0 0 10px; color: var(--cpd-green); font-size: 14px; font-weight: 600; }
.cpd .cpd-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cpd .cpd-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; margin: 0; padding: 8px 16px;
  border: 1.5px solid var(--cpd-line-sage); border-radius: 999px; text-align: left;
  background: #fff; color: var(--cpd-ink);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: normal;
  -webkit-appearance: none; appearance: none; cursor: pointer; box-shadow: none;
  transition: transform 160ms var(--cpd-ease), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.cpd .cpd-chip small { color: var(--cpd-muted); font-size: .85em; font-weight: 400; }
.cpd .cpd-chip[aria-pressed="true"] { border-color: var(--cpd-green); background: var(--cpd-green); color: #fff; }
.cpd .cpd-chip[aria-pressed="true"] small { color: #d9e6d7; }
.cpd .cpd-presets__note { margin: 10px 0 0; color: var(--cpd-muted); font-size: 13px; }

/* wynik: wspólna powłoka kart */
.cpd .cpd-plan,
.cpd .cpd-info,
.cpd .cpd-stage {
  border: 1px solid var(--cpd-line-sage); border-radius: var(--cpd-r-card);
  background: #fff; box-shadow: var(--cpd-shadow);
}

/* butelka (zdjęcie z przezroczystym tłem) oraz opakowanie z konfiguracji albo kafelek w kolorze wariantu, gdy nie ma zdjęcia butelki */
.cpd .cpd-bottle { display: block; width: auto; max-width: 100%; object-fit: contain; }
.cpd .cpd-bottle--lg { height: var(--cpd-bottle-h); }
.cpd .cpd-bottle--md { height: 176px; }
.cpd .cpd-bottle--sm { height: 112px; }
.cpd .cpd-box { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: var(--cpd-box-shadow); }
.cpd .cpd-box--text {
  display: grid; place-items: center; aspect-ratio: 390 / 922; background: var(--cpd-variant); color: #fff;
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em;
}
.cpd .cpd-box--sm { width: 72px; }
.cpd .cpd-box--md { width: 112px; }
.cpd .cpd-box--lg { width: auto; height: var(--cpd-bottle-h); }

.cpd .cpd-plan__for { color: var(--cpd-muted); font-size: 14px; font-weight: 600; line-height: 1.3; }
.cpd .cpd-plan__name {
  display: flex; align-items: center; margin: 6px 0 0; padding: 0;
  color: var(--cpd-green); font-family: inherit; font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-transform: none;
}
.cpd .cpd-chip-note {
  display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--cpd-warn-bg); color: var(--cpd-warn-ink); font-size: 12px; font-weight: 600; vertical-align: 1px;
}

/* karta zakupu: panel z butelką po lewej (rośnie na całą wysokość), po prawej dla kogo, dawka, zestaw i przycisk */
.cpd .cpd-plan {
  --cpd-bottle-h: 280px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  grid-template-areas: "media head" "media main" "more more";
  column-gap: 28px; padding: 24px;
}
.cpd .cpd-plan__media {
  grid-area: media; align-self: stretch; display: grid; place-items: center; min-height: 0;
  padding: 22px 10px 18px; border-radius: var(--cpd-r-field); background: var(--cpd-mint);
}
.cpd .cpd-plan__head { grid-area: head; }
.cpd .cpd-plan__main { grid-area: main; min-width: 0; margin-top: 20px; }
.cpd .cpd-plan__more { grid-area: more; }

.cpd .cpd-dose { display: grid; gap: 16px 28px; margin-top: 16px; }
.cpd .cpd-dose--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cpd .cpd-dose__when { margin-bottom: 2px; color: var(--cpd-muted); font-size: 14px; font-weight: 600; }
.cpd .cpd-dose__n { display: flex; align-items: baseline; gap: 14px; }
.cpd .cpd-dose__n strong {
  color: var(--cpd-green); font-size: clamp(3.5rem, 2.6rem + 2.4vw, 4.75rem); font-weight: 600; line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.cpd .cpd-dose--2 .cpd-dose__n strong { font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem); }
.cpd .cpd-dose--2 .cpd-dose__unit { font-size: 1.0625rem; }
.cpd .cpd-dose__unit { display: grid; gap: 2px; color: var(--cpd-green); font-size: 1.1875rem; font-weight: 600; line-height: 1.2; }
.cpd .cpd-dose__unit em { color: var(--cpd-muted); font-size: 1rem; font-style: normal; font-weight: 400; }
.cpd .cpd-total { margin-top: 8px; color: var(--cpd-muted); font-size: 14px; font-weight: 600; }

.cpd .cpd-facts { display: grid; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cpd-line); }
.cpd .cpd-fact dt { margin: 0 0 2px; color: var(--cpd-green); font-size: 13px; font-weight: 600; line-height: 1.3; }
.cpd .cpd-fact dt:empty { display: none; }
.cpd .cpd-fact dd { margin: 0; color: var(--cpd-ink); font-size: 15px; line-height: 1.55; }

.cpd .cpd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cpd .cpd-actions--flush { margin-top: 18px; }

/* wybór zestawu (1 albo 2 butelki) i przycisk dodania do koszyka */
.cpd .cpd-buy { display: grid; gap: 14px; }
.cpd .cpd-plan__main > * + .cpd-buy { margin-top: 20px; }
.cpd .cpd-sets { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cpd .cpd-set {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 68px; margin: 0; padding: 12px 16px;
  border: 1.5px solid var(--cpd-line-sage); border-radius: var(--cpd-r-field); background: #fff; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--cpd-ease);
}
.cpd .cpd-set.cpd-is-selected { border-color: var(--cpd-green); background: var(--cpd-mint); }
.cpd .cpd-set:has(input:focus-visible) { outline: 2px solid var(--cpd-green); outline-offset: 3px; }
.cpd .cpd-set:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.cpd .cpd-set__dot { position: relative; width: 22px; height: 22px; border: 2px solid var(--cpd-green); border-radius: 50%; background: #fff; }
.cpd .cpd-set.cpd-is-selected .cpd-set__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--cpd-green); }
.cpd .cpd-set input:focus-visible + .cpd-set__dot { box-shadow: 0 0 0 4px rgba(167, 198, 164, .75); }
.cpd .cpd-set__main { display: grid; gap: 2px; min-width: 0; }
.cpd .cpd-set__label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--cpd-green); font-size: 16px; font-weight: 600; line-height: 1.3; }
/* plakietka siedzi na górnej krawędzi wiersza, żeby nie zabierać miejsca w jego treści */
.cpd .cpd-set__badge {
  position: absolute; top: -11px; right: 16px; padding: 2px 10px;
  border-radius: 999px; background: var(--cpd-sage); color: var(--cpd-green-dark); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.cpd .cpd-set:has(.cpd-set__badge) { padding-top: 18px; }
.cpd .cpd-set__lasts { color: var(--cpd-muted); font-size: 14px; line-height: 1.35; }
.cpd .cpd-set__price { display: grid; justify-items: end; gap: 0; text-align: right; line-height: 1.25; }
.cpd .cpd-set__price strong { color: var(--cpd-green); font-size: 1.1875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cpd .cpd-set__price s { color: var(--cpd-muted); font-size: 13px; font-weight: 400; }
.cpd .cpd-btn.cpd-btn--block { width: 100%; min-height: 56px; padding: 14px 20px; font-size: 16px; white-space: normal; text-align: center; text-wrap: balance; }
.cpd .cpd-btn[disabled] { cursor: default; opacity: .65; }
/* termin kolejnego zamówienia pod przyciskiem zakupu, z przypomnieniem do kalendarza */
.cpd .cpd-reorder { margin: -2px 0 0; color: var(--cpd-muted); font-size: 14px; line-height: 1.45; text-align: center; }
.cpd .cpd-reorder .cpd-btn { display: inline; width: auto; min-height: 0; margin: 0; padding: 10px 2px; border: 0; background: transparent; font-size: inherit; line-height: inherit; vertical-align: baseline; }
.cpd .cpd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; margin: 0; padding: 12px 26px;
  border: 2px solid var(--cpd-green); border-radius: 50px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none; text-decoration: none; white-space: nowrap;
  -webkit-appearance: none; appearance: none; cursor: pointer; text-shadow: none;
  transition: transform 160ms var(--cpd-ease), background-color 160ms ease, color 160ms ease;
}
.cpd .cpd-btn--primary { background: var(--cpd-green); color: #fff; box-shadow: 0 10px 25px -8px rgba(18, 60, 58, .45); }
.cpd .cpd-btn--ghost { background: transparent; color: var(--cpd-green); box-shadow: none; }
.cpd .cpd-btn--text { margin-inline-start: 14px; padding-inline: 0; border-color: transparent; background: transparent; color: var(--cpd-green); box-shadow: none; text-decoration: underline; text-decoration-color: var(--cpd-sage); text-underline-offset: 4px; }
.cpd .cpd-link { display: inline-block; margin-top: 14px; color: var(--cpd-green); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cpd-sage); }

.cpd .cpd-more { margin-top: 18px; padding: 12px 0 0; border-top: 1px solid var(--cpd-line); font-size: 14.5px; }
.cpd .cpd-more .cpd-facts { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 922px) { .cpd .cpd-more .cpd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; } }
.cpd .cpd-more .cpd-explain { margin: 14px 0 0; color: var(--cpd-muted); }
.cpd .cpd-more .cpd-actions { margin-top: 10px; }
.cpd .cpd-more .cpd-btn--text { width: auto; min-height: 40px; margin-inline-start: 0; justify-content: flex-start; }
.cpd .cpd-tables { margin-top: 8px; }
.cpd .cpd-more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 0 12px; color: var(--cpd-green); font-weight: 600; cursor: pointer; list-style: none;
}
.cpd .cpd-more summary::-webkit-details-marker { display: none; }
.cpd .cpd-more summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms var(--cpd-ease);
}
.cpd .cpd-more[open] summary::after { transform: translateY(1px) rotate(225deg); }
.cpd .cpd-more p { margin: 0 0 12px; color: var(--cpd-ink); }
.cpd .cpd-more .cpd-link { margin: 0 0 12px; }
.cpd .cpd-table { width: 100%; margin: 0 0 14px; border: 0; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cpd .cpd-table caption { padding: 8px 0 4px; color: var(--cpd-variant); font-weight: 600; text-align: left; }
.cpd .cpd-table th,
.cpd .cpd-table td { padding: 7px 10px; border: 0; border-bottom: 1px solid var(--cpd-line); text-align: left; }
.cpd .cpd-table th { color: var(--cpd-muted); font-size: 12px; font-weight: 600; }
.cpd .cpd-table tr.cpd-is-hit td { background: var(--cpd-mint); color: var(--cpd-green); font-weight: 600; }

/* wagi bez dawki: wariant z opakowania, granica 10 kg, poza zakresem */
.cpd .cpd-info { display: grid; padding: 30px; }
.cpd .cpd-info__body { min-width: 0; }
.cpd .cpd-info__body--wide { grid-column: 1 / -1; }
.cpd .cpd-plan__main .cpd-info__lead { margin-top: 20px; }
.cpd .cpd-info__lead { margin-top: 16px; color: var(--cpd-green); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.cpd .cpd-near__title { margin-top: 20px; color: var(--cpd-muted); font-size: 13px; font-weight: 600; }
.cpd .cpd-near { display: grid; gap: 4px; margin-top: 6px; font-size: 15px; font-variant-numeric: tabular-nums; }
.cpd .cpd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.cpd .cpd-pair__item { display: flex; align-items: center; gap: 16px; }
.cpd .cpd-pair__item .cpd-box { flex: none; }
.cpd .cpd-pair__name { display: flex; align-items: center; gap: 8px; color: var(--cpd-green); font-size: 15px; font-weight: 600; }
.cpd .cpd-pair__tagline { margin-top: 2px; color: var(--cpd-muted); font-size: 13px; }
.cpd .cpd-pair__row { margin-top: 10px; font-size: 14.5px; font-weight: 600; }

/* stan początkowy: oba opakowania, żeby od razu było widać, czego szukać */
.cpd .cpd-stage { display: grid; justify-items: center; gap: 26px; padding: 36px 28px 32px; text-align: center; }
.cpd .cpd-stage__boxes { display: flex; justify-content: center; gap: 40px; }
.cpd .cpd-stage__item { display: grid; justify-items: center; gap: 14px; width: 132px; }
.cpd .cpd-stage__item .cpd-box { width: 132px; }
.cpd .cpd-stage__item figcaption { display: grid; gap: 2px; font-size: 13px; color: var(--cpd-muted); }
.cpd .cpd-stage__item strong { color: var(--cpd-variant); font-size: 15px; font-weight: 600; }
.cpd .cpd-stage__text { max-width: 22em; margin: 0; color: var(--cpd-ink); font-size: 1.0625rem; line-height: 1.5; }

.cpd .cpd-foot { display: grid; gap: 4px; margin-top: 24px; color: var(--cpd-muted); font-size: 13px; }
.cpd .cpd-foot p { margin: 0; }
.cpd .cpd-vet { font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .cpd .cpd-step:hover { background: var(--cpd-green); color: #fff; }
  .cpd .cpd-chip:hover { border-color: var(--cpd-green); }
  .cpd .cpd-set:not(.cpd-is-selected):not(:has(input:disabled)):hover { border-color: var(--cpd-green); }
  .cpd .cpd-btn--primary:hover { background: var(--cpd-green-dark); border-color: var(--cpd-green-dark); color: #fff; }
  .cpd .cpd-btn--ghost:hover { background: var(--cpd-green); color: #fff; }
  .cpd .cpd-btn--text:hover { background: transparent; color: var(--cpd-green); text-decoration-color: var(--cpd-green); }
  .cpd .cpd-link:hover { text-decoration-color: var(--cpd-green); }
}
.cpd .cpd-step:active,
.cpd .cpd-chip:active,
.cpd .cpd-btn:active { transform: scale(.97); }
.cpd .cpd-set:active { transform: scale(.985); }

/* ruch: tylko przy zmianie widoku (pierwszy wynik, inny wariant), nigdy przy każdej cyfrze */
@media (prefers-reduced-motion: no-preference) {
  .cpd .cpd-is-entering > * { animation: cpd-rise 280ms var(--cpd-ease) both; animation-delay: calc(var(--cpd-i, 0) * 55ms); }
  @keyframes cpd-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  /* zmiana zestawu (1 albo 2 butelki): butelka wchodzi na miejsce poprzedniej */
  .cpd .cpd-plan__media.cpd-is-swapping > * { animation: cpd-swap 240ms var(--cpd-ease) both; }
  @keyframes cpd-swap { from { opacity: .4; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .cpd .cpd-is-entering > * { animation: cpd-fade 160ms linear both; }
  @keyframes cpd-fade { from { opacity: 0; } to { opacity: 1; } }
  .cpd .cpd-more summary::after { transition: none; }
}

/* sekcja na stronie sprzedażowej (template-parts/landing/kalkulator.php); progi jak w motywie: 921 px i 544 px */
.cpd-section { width: 100%; padding: 76px 20px; background: #fff; color: #1d2428; font-family: inherit; }
.cpd-section__inner { max-width: 1280px; margin: 0 auto; }

@media (max-width: 921px) {
  .cpd-section { padding: 52px 16px; }
  .cpd .cpd-grid,
  .cpd--split .cpd-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "input" "result"; grid-template-rows: auto; gap: 20px; }
  .cpd--split .cpd-head { padding-bottom: 4px; }
  .cpd .cpd-plan { --cpd-bottle-h: 240px; grid-template-columns: 172px minmax(0, 1fr); column-gap: 24px; padding: 22px; }
}

@media (max-width: 544px) {
  .cpd .cpd-card { padding: 20px 16px; }
  .cpd .cpd-stepper { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
  .cpd .cpd-step { width: 48px; height: 48px; font-size: 26px; }
  .cpd .cpd-field { height: 56px; }
  .cpd .cpd-input { font-size: 1.9rem; }
  .cpd .cpd-plan {
    --cpd-bottle-h: 178px;
    grid-template-columns: 124px minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "media head" "main main" "more more";
    column-gap: 14px; padding: 16px;
  }
  .cpd .cpd-plan__media { padding: 12px 6px 10px; }
  .cpd .cpd-plan__for .cpd-chip-note { display: table; margin: 6px 0 0; }
  .cpd .cpd-plan__name { font-size: 1.25rem; }
  .cpd .cpd-plan__main { margin-top: 16px; }
  .cpd .cpd-dose { margin-top: 10px; }
  .cpd .cpd-dose__unit { font-size: 1.0625rem; }
  .cpd .cpd-dose--2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cpd .cpd-set { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .cpd .cpd-actions { flex-direction: column; }
  .cpd .cpd-btn { width: 100%; }
  .cpd .cpd-btn--text { margin-inline-start: 0; }
  .cpd .cpd-info { padding: 20px 16px; }
  .cpd .cpd-pair { grid-template-columns: 1fr; }
  .cpd .cpd-stage { padding: 28px 16px 24px; }
  .cpd .cpd-stage__boxes { gap: 24px; }
  .cpd .cpd-stage__item,
  .cpd .cpd-stage__item .cpd-box { width: 108px; }
  /* jeden wiersz chipów z przewijaniem w bok, żeby wynik był bliżej pola wagi */
  .cpd .cpd-chips { display: flex; flex-wrap: nowrap; margin: 0 -4px; padding: 2px 4px 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--cpd-sage) transparent; }
  .cpd .cpd-chip { flex: none; scroll-snap-align: start; }
  .cpd .cpd-presets__note { display: none; }
}

/* bardzo wąskie telefony (320 px): węższy panel z butelką, żeby nagłówek karty miał więcej miejsca */
@media (max-width: 380px) {
  .cpd .cpd-plan { --cpd-bottle-h: 156px; grid-template-columns: 108px minmax(0, 1fr); column-gap: 12px; }
  .cpd .cpd-plan__media { padding: 10px 4px 8px; }
  .cpd .cpd-plan__name { font-size: 1.125rem; }
  .cpd .cpd-dose__n { gap: 10px; }
  .cpd .cpd-dose__n strong { font-size: 3rem; }
}
