/* Crowdfunding campaign page: all rules are scoped to the widget. */
.cz-campaign {
  --cz-red: #d71920;
  --cz-ink: #242424;
  --cz-muted: #666;
  --cz-line: #e9e9e9;
  box-sizing: border-box;
  width: min(100% - 32px, 1180px);
  margin: 42px auto 64px !important;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  color: var(--cz-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
}
.cz-campaign, .cz-campaign * { box-sizing: border-box; }
.cz-campaign__story { min-width: 0; }
.cz-campaign__image { overflow: hidden; border-radius: 12px; background: #f4f4f4; }
.cz-campaign__image img { display: block; width: 100%; height: auto; max-height: 520px; aspect-ratio: 16 / 10; object-fit: cover; }
.cz-campaign__copy { padding: 26px 4px 0; }
.cz-campaign__eyebrow { display: inline-block; margin-bottom: 8px; color: var(--cz-red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cz-campaign__copy h2 { margin: 0 0 18px; color: var(--cz-ink); font-size: clamp(30px, 3.6vw, 46px); font-weight: 750; line-height: 1.12; letter-spacing: -.025em; }
.cz-campaign__description { max-width: 68ch; color: #555; font-size: 17px; }
.cz-campaign__description p { margin: 0 0 1em; }
.cz-campaign__sidebar { position: sticky; top: 24px; }
.cz-campaign__progress-card, .cz-campaign__form { padding: 25px; background: #fff; border: 1px solid var(--cz-line); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.06); }
.cz-campaign__progress-card { margin-bottom: 16px; }
.cz-campaign__raised { display: flex; align-items: baseline; gap: 9px; margin: 0; color: var(--cz-muted); }
.cz-campaign__raised strong { color: var(--cz-ink); font-size: 34px; line-height: 1.15; letter-spacing: -.03em; }
.cz-campaign__goal { margin: 3px 0 16px; color: var(--cz-muted); font-size: 14px; }
.cz-campaign__goal strong { color: #454545; }
.cz-campaign__progress-card progress { display: block; width: 100%; height: 11px; margin: 0; overflow: hidden; border: 0; border-radius: 99px; background: #f1e6e6; accent-color: var(--cz-red); }
.cz-campaign__progress-card progress::-webkit-progress-bar { background: #f1e6e6; border-radius: 99px; }
.cz-campaign__progress-card progress::-webkit-progress-value { background: var(--cz-red); border-radius: 99px; }
.cz-campaign__progress-card progress::-moz-progress-bar { background: var(--cz-red); border-radius: 99px; }
.cz-campaign__percent { margin: 8px 0 0; color: #4b4b4b; font-size: 13px; font-weight: 700; }
.cz-campaign__deadline { margin: 15px 0 0; padding-top: 13px; color: var(--cz-muted); border-top: 1px solid var(--cz-line); font-size: 13px; }
.cz-campaign__form { display: flex; flex-direction: column; gap: 15px; }
.cz-campaign__form h3 { margin: 0; color: var(--cz-ink); font-size: 23px; line-height: 1.25; }
.cz-campaign__form-hint { margin: -12px 0 0; color: var(--cz-muted); font-size: 14px; }
.cz-campaign__form > input[type="hidden"] { display: none; }
.cz-campaign__amounts, .cz-campaign__methods { min-width: 0; margin: 0; padding: 0; border: 0; }
.cz-campaign__amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cz-campaign__amounts legend, .cz-campaign__methods legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cz-campaign__amounts label { cursor: pointer; }
.cz-campaign__amounts input, .cz-campaign__methods input { position: absolute; opacity: 0; pointer-events: none; }
.cz-campaign__amounts span { display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 7px 4px; color: #333; background: #fff; border: 1px solid #d9d9d9; border-radius: 7px; font-weight: 700; transition: .15s ease; }
.cz-campaign__amounts label:hover span { border-color: var(--cz-red); }
.cz-campaign__amounts input:checked + span { color: var(--cz-red); background: #fff7f7; border-color: var(--cz-red); box-shadow: inset 0 0 0 1px var(--cz-red); }
.cz-campaign__amounts input:focus-visible + span, .cz-campaign__methods input:focus-visible + .cz-method { outline: 3px solid rgba(215,25,32,.25); outline-offset: 2px; }
.cz-campaign__field { display: block; color: #363636; font-size: 13px; font-weight: 700; }
.cz-campaign__field input, .cz-campaign__field textarea { display: block; width: 100%; min-height: 45px; margin-top: 6px; padding: 10px 12px; color: #222; background: #fff; border: 1px solid #d1d1d1; border-radius: 6px; font: inherit; font-size: 15px; }
.cz-campaign__field textarea { min-height: 86px; resize: vertical; }
.cz-campaign__field input:focus, .cz-campaign__field textarea:focus { outline: 3px solid rgba(215,25,32,.18); border-color: var(--cz-red); }
.cz-campaign__methods label { flex: 1; min-width: 0; cursor: pointer; }
.cz-campaign__details { padding-top: 2px; color: #444; font-size: 13px; }
.cz-campaign__details summary { color: #555; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cz-campaign__details[open] summary { margin-bottom: 13px; }
.cz-campaign__details .cz-campaign__field { margin-bottom: 12px; }
.cz-campaign__anonymous { display: flex; align-items: center; gap: 8px; }
.cz-campaign__anonymous input { accent-color: var(--cz-red); }
.cz-campaign__form > button { width: 100%; min-height: 52px; padding: 12px 18px; color: #fff; background: var(--cz-red); border: 0; border-radius: 7px; box-shadow: 0 4px 10px rgba(215,25,32,.2); font: inherit; font-size: 16px; font-weight: 750; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.cz-campaign__form > button:hover { background: #b9141a; transform: translateY(-1px); }
.cz-campaign__secure { margin: -7px 0 0; color: #777; font-size: 11px; text-align: center; }
@media (max-width: 820px) {
  .cz-campaign { width: min(100% - 28px, 650px); margin: 24px auto 40px !important; grid-template-columns: 1fr; gap: 20px; }
  .cz-campaign__sidebar { position: static; }
  .cz-campaign__image img { max-height: 400px; }
  .cz-campaign__copy { padding-top: 20px; }
  .cz-campaign__copy h2 { font-size: 32px; }
}
@media (max-width: 420px) {
  .cz-campaign { width: calc(100% - 20px); }
  .cz-campaign__progress-card, .cz-campaign__form { padding: 19px; }
  .cz-campaign__raised strong { font-size: 30px; }
}
/* The widget repeats the campaign title with its designed hierarchy. */
body.single-cz_campaign .entry-title { display: none; }

/* v1.3: widok kompaktowy (strona pojedynczej kampanii), komunikat po płatności, zgoda RODO */
.cz-campaign--compact { grid-template-columns: 1fr; width: min(100% - 32px, 520px); }
.cz-campaign--compact .cz-campaign__sidebar { position: static; }
.cz-campaign__notice { margin: 0 0 16px; padding: 14px 16px; background: #f1f8f1; border: 1px solid #cfe5cf; border-radius: 10px; font-size: 15px; }
.cz-campaign__consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 13px; line-height: 1.5; color: var(--cz-muted); }
.cz-campaign__consent input { margin-top: 3px; flex: 0 0 auto; }

/* v1.4: ekran po powrocie z płatności */
#cz-wynik { scroll-margin-top: 24px; }
.cz-campaign__thanks { margin: 0 0 16px; padding: 22px; background: #f1f8f1; border: 1px solid #cfe5cf; border-radius: 12px; }
.cz-campaign__thanks h3 { margin: 0 0 10px; font-size: 22px; }
.cz-campaign__thanks p { margin: 0 0 10px; font-size: 15px; }
.cz-campaign__button { display: inline-block; padding: 10px 18px; background: var(--cz-red); color: #fff !important; border-radius: 8px; text-decoration: none; font-weight: 700; }


/* v1.5: dopracowanie graficzne */
.cz-campaign__form { border-top: 4px solid var(--cz-red); }
.cz-campaign__form h3 { display: flex; align-items: center; gap: 9px; }
.cz-campaign__form h3 .cz-icon { width: 22px; height: 22px; color: var(--cz-red); flex: 0 0 auto; }
.cz-icon { flex: 0 0 auto; vertical-align: -3px; }

/* licznik */
.cz-campaign__progress-card { border-top: 4px solid var(--cz-red); }
.cz-campaign__raised strong { font-size: 38px; white-space: nowrap; }
.cz-campaign__progress-card progress { height: 12px; }
.cz-campaign__progress-card progress::-webkit-progress-value { background: linear-gradient(90deg, #e2383f, var(--cz-red)); }
.cz-campaign__stats { display: flex; margin: 18px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--cz-line); }
.cz-campaign__stats li { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin: 0; padding: 0 10px; color: var(--cz-muted); font-size: 12px; line-height: 1.3; border-left: 1px solid var(--cz-line); }
.cz-campaign__stats li:first-child { padding-left: 0; border-left: 0; }
.cz-campaign__stats strong { color: var(--cz-ink); font-size: 18px; letter-spacing: -.02em; }
.cz-campaign__stats .cz-icon { align-self: center; color: var(--cz-red); }

/* kwoty */
.cz-campaign__amounts span { min-height: 52px; font-size: 17px; border-radius: 9px; white-space: nowrap; }
.cz-campaign__amounts label:hover span { background: #fff9f9; }
.cz-campaign__input-wrap { position: relative; display: block; }
.cz-campaign__input-wrap input { padding-right: 38px !important; font-size: 16px !important; }
.cz-campaign__input-wrap i { position: absolute; right: 13px; bottom: 12px; color: var(--cz-muted); font-style: normal; font-weight: 700; }

/* metody płatności */
.cz-campaign__methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cz-campaign__methods label { display: block; min-width: 0; cursor: pointer; }
.cz-method { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 8px; background: #fff; border: 1px solid #d9d9d9; border-radius: 9px; text-align: center; transition: .15s ease; }
.cz-campaign__methods label:hover .cz-method { border-color: var(--cz-red); }
.cz-campaign__methods input:checked + .cz-method { background: #fff9f9; border-color: var(--cz-red); box-shadow: inset 0 0 0 1px var(--cz-red); }
.cz-campaign__methods input:checked + .cz-method::after { content: ""; position: absolute; top: 7px; right: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--cz-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cz-method__logo { display: flex; align-items: center; justify-content: center; min-height: 24px; }
.cz-method__name { color: #555; font-size: 12px; line-height: 1.25; }
.cz-logo--img { display: block; height: 22px; width: auto; max-width: 100%; }
.cz-logo--text { color: var(--cz-ink); font-size: 18px; font-weight: 850; letter-spacing: -.01em; line-height: 1; }
.cz-logo--blik { letter-spacing: .04em; }

/* przycisk i zaufanie */
.cz-campaign__form > button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; font-size: 17px; border-radius: 9px; }
.cz-campaign__form > button .cz-icon { width: 18px; height: 18px; }
.cz-campaign__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -6px 0 0; color: #6f6f6f; font-size: 12px; }
.cz-campaign__secure .cz-icon { width: 13px; height: 13px; color: #3b8d3b; }

@media (max-width: 420px) {
  .cz-campaign__raised strong { font-size: 32px; }
  .cz-campaign__stats li { padding: 0 6px; }
  .cz-campaign__amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
