/*
 * Aukcje #dlaHanki — formularz „Przekaż fant” i strona „Twój fant”.
 * Wszystkie style w prefiksie .dhl-donate; przyciski zabezpieczone przed stylami motywu.
 */
.dhl-donate {
  --d-ink: #263348; --d-muted: #5c6878; --d-teal: #2b7880; --d-teal-dark: #205d65; --d-teal-soft: #eaf5f4;
  --d-sand: #fbf4ed; --d-sand-2: #efe6dc; --d-coral: #e0734f; --d-coral-dark: #b85d2c; --d-border: #e1e7eb;
  box-sizing: border-box; max-width: 560px; margin: 0 auto; color: var(--d-ink);
  font-family: "Source Sans 3", system-ui, sans-serif; font-size: 17px; line-height: 1.5; text-align: left;
}
.dhl-donate *, .dhl-donate *::before, .dhl-donate *::after { box-sizing: border-box; }
.dhl-donate :where(p, li, ol, ul, span, a, button, label, legend, small, b, strong, input, textarea) { font-family: inherit; }
.dhl-donate [hidden] { display: none !important; }
.dhl-donate a { color: var(--d-teal-dark); }
.dhl-donate .dhl-donate-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dhl-donate .dhl-donate-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.dhl-donate-form { position: relative; display: flex; flex-direction: column; gap: 0; background: var(--d-sand); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 34px rgba(35,52,72,.08); }
.dhl-donate-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; background: #fff; }
.dhl-donate-brand { display: flex; align-items: center; gap: 10px; }
.dhl-donate-brand > span:last-child { display: flex; flex-direction: column; }
.dhl-donate-brand strong { font: 800 16px/1.1 Montserrat, sans-serif; color: var(--d-ink); }
.dhl-donate-brand small { font-size: 13px; color: var(--d-muted); }
.dhl-donate-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--d-teal-soft); color: var(--d-teal); }
.dhl-donate-stepno { font-size: 13px; font-weight: 700; color: var(--d-teal-dark); }
.dhl-donate-progress { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 20px 14px; background: #fff; border-bottom: 1px solid #ece4da; }
.dhl-donate-form.is-enhanced .dhl-donate-progress { display: grid; }
.dhl-donate-progress span { height: 6px; border-radius: 999px; background: var(--d-border); }
.dhl-donate-progress span.is-on { background: var(--d-teal); }
.dhl-donate-form:not(.is-enhanced) .dhl-donate-progress, .dhl-donate-form:not(.is-enhanced) .dhl-donate-stepno { display: none; }

.dhl-donate-step { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px 8px; margin: 0; }
.dhl-donate .dhl-donate-h1 { margin: 0; font: 800 26px/1.15 Montserrat, sans-serif; color: var(--d-ink); letter-spacing: normal; text-transform: none; }
.dhl-donate .dhl-donate-h1:focus { outline: none; }
.dhl-donate .dhl-donate-h2 { margin: 0 0 12px; font: 700 18px/1.2 Montserrat, sans-serif; color: var(--d-ink); }
.dhl-donate .dhl-donate-lead { margin: -8px 0 0; color: var(--d-muted); font-size: 16px; line-height: 1.45; }
.dhl-donate .dhl-donate-hint { margin: 0; font-size: 13px; color: var(--d-muted); line-height: 1.4; }

.dhl-donate fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.dhl-donate legend, .dhl-donate-field > label { display: block; padding: 0; margin: 0 0 7px; font-weight: 700; font-size: 15px; color: var(--d-ink); }
.dhl-donate-field label span { font-weight: 400; color: var(--d-muted); }
.dhl-donate-field { display: flex; flex-direction: column; }
.dhl-donate input[type=text], .dhl-donate input[type=tel], .dhl-donate input[type=email], .dhl-donate textarea {
  width: 100%; margin: 0; padding: 13px 14px; border: 1.5px solid #d4dde2; border-radius: 14px; background: #fff; color: var(--d-ink);
  font: 400 17px/1.4 "Source Sans 3", system-ui, sans-serif; box-shadow: none;
}
.dhl-donate textarea { resize: vertical; min-height: 84px; }
.dhl-donate input:focus-visible, .dhl-donate textarea:focus-visible, .dhl-donate button:focus-visible, .dhl-donate a:focus-visible, .dhl-donate .dhl-donate-kind:has(input:focus-visible) > .dhl-donate-kind-box, .dhl-donate .dhl-donate-option:has(input:focus-visible), .dhl-donate .dhl-donate-seg label:has(input:focus-visible) span, .dhl-donate .dhl-donate-add:has(input:focus-visible) { outline: 3px solid #f2b24c; outline-offset: 2px; }

/* Rodzaje */
.dhl-donate-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dhl-donate-kind { position: relative; display: block; cursor: pointer; }
.dhl-donate-kind input, .dhl-donate-option input, .dhl-donate-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dhl-donate-kind-box { display: flex; flex-direction: column; gap: 4px; min-height: 84px; padding: 14px; border-radius: 16px; background: #fff; border: 2px solid var(--d-border); }
.dhl-donate-kind-box b { font-size: 17px; color: var(--d-ink); }
.dhl-donate-kind-box small { font-size: 13px; color: var(--d-muted); line-height: 1.3; }
.dhl-donate-kind input:checked + .dhl-donate-kind-box { background: var(--d-teal-soft); border-color: var(--d-teal); box-shadow: 0 6px 16px rgba(43,120,128,.15); }

/* Zdjęcia */
.dhl-donate-photos { display: flex; flex-direction: column; gap: 10px; }
.dhl-donate-row { display: flex; justify-content: space-between; align-items: baseline; }
.dhl-donate-row h3 { margin: 0; font: 700 17px/1.2 Montserrat, sans-serif; color: var(--d-ink); }
.dhl-donate-row small { font-size: 13px; color: var(--d-muted); }
.dhl-donate-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dhl-donate-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #e8eef0; }
.dhl-donate-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dhl-donate .dhl-donate-thumb button { position: absolute !important; top: 6px; right: 6px; width: 30px !important; height: 30px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(38,51,72,.8) !important; color: #fff !important; font-size: 17px !important; line-height: 1 !important; cursor: pointer; }
.dhl-donate-add { position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 2px dashed #9ccbc6; border-radius: 12px; background: #fff; color: var(--d-teal-dark); font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; }
.dhl-donate-add input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dhl-donate-form:not(.is-enhanced) .dhl-donate-add { aspect-ratio: auto; grid-column: 1 / -1; }
.dhl-donate-form:not(.is-enhanced) .dhl-donate-add input[type=file] { position: static; opacity: 1; }

/* Segmenty i opcje */
.dhl-donate-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; margin-bottom: 8px; border-radius: 14px; background: var(--d-sand-2); }
.dhl-donate-seg.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.dhl-donate-seg label { position: relative; display: block; cursor: pointer; margin: 0; }
.dhl-donate-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 6px; border-radius: 11px; color: var(--d-muted); font-weight: 600; font-size: 15px; text-align: center; }
.dhl-donate-seg input:checked + span { background: #fff; color: var(--d-teal-dark); font-weight: 700; box-shadow: 0 2px 6px rgba(38,51,72,.12); }
.dhl-donate-options { display: flex; flex-direction: column; gap: 8px; }
.dhl-donate-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--d-border); cursor: pointer; margin: 0; }
.dhl-donate-option::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9aa7b4; background: #fff; }
.dhl-donate-option:has(input:checked) { background: var(--d-teal-soft); border-color: var(--d-teal); }
.dhl-donate-option:has(input:checked)::before { border: 6px solid var(--d-teal); }
.dhl-donate-option > span { display: flex; flex-direction: column; gap: 2px; }
.dhl-donate-option b { font-size: 16px; color: var(--d-ink); }
.dhl-donate-option small { font-size: 13px; color: var(--d-muted); line-height: 1.3; }
.dhl-donate-city { margin-top: 10px; }
.dhl-donate-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: #3d4a5c; cursor: pointer; margin: 0; }
.dhl-donate-consent input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--d-teal); }

.dhl-donate-error { margin: 12px 20px 0; padding: 12px 14px; border-radius: 12px; background: #fff0ee; color: #8b2b1c; font-weight: 600; font-size: 15px; }

/* Stopka z przyciskami */
.dhl-donate-foot { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 20px 18px; margin-top: 14px; background: #fff; border-top: 1px solid #ece4da; }
.dhl-donate-actions { display: flex; gap: 10px; }
.dhl-donate-form:not(.is-enhanced) .dhl-donate-next, .dhl-donate-form:not(.is-enhanced) .dhl-donate-back { display: none !important; }
.dhl-donate button.dhl-donate-next, .dhl-donate button.dhl-donate-submit, .dhl-donate a.dhl-donate-btn, .dhl-donate-btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 52px !important; padding: 0 22px !important;
  border: 0 !important; border-radius: 999px !important; background: var(--d-teal) !important; color: #fff !important;
  font: 700 17px/1.2 "Source Sans 3", system-ui, sans-serif !important; text-transform: none !important; letter-spacing: normal !important;
  text-decoration: none !important; cursor: pointer; box-shadow: 0 8px 20px rgba(43,120,128,.22);
}
.dhl-donate button.dhl-donate-submit { background: var(--d-coral) !important; box-shadow: 0 8px 20px rgba(224,115,79,.28); }
.dhl-donate button.is-blocked { background: #9fb7ba !important; box-shadow: none; cursor: not-allowed; }
.dhl-donate button.dhl-donate-back, .dhl-donate button.dhl-donate-again {
  flex: 0 0 auto; min-height: 52px !important; padding: 0 20px !important; border: 2px solid #b9d9d6 !important; border-radius: 999px !important;
  background: #fff !important; color: var(--d-teal-dark) !important; font: 700 16px/1.2 "Source Sans 3", system-ui, sans-serif !important; text-transform: none !important; cursor: pointer;
}
.dhl-donate-why { margin: 0; min-height: 1.2em; font-size: 13px; color: #8a5a1f; text-align: center; }
.dhl-donate-why:empty { display: none; }
.dhl-donate-messenger { align-self: center; font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }

/* Podziękowanie */
.dhl-donate-done { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 20px; text-align: center; background: var(--d-sand); border-radius: 24px; }
.dhl-donate-done:focus { outline: none; }
.dhl-donate-check { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--d-teal); color: #fff; }
.dhl-donate-done .dhl-donate-lead { margin: 0; }
.dhl-donate-done .dhl-donate-btn { width: 100%; flex: 0 0 auto; }
.dhl-donate .dhl-donate-card { width: 100%; padding: 18px; border-radius: 18px; background: #fff; text-align: left; box-shadow: 0 10px 28px rgba(35,52,72,.07); }
.dhl-donate-card ol { margin: 8px 0 0; padding-left: 20px; color: #3d4a5c; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.dhl-donate button.dhl-donate-again { border: 0 !important; background: transparent !important; text-decoration: underline; min-height: 44px !important; }

/* Strona statusu „Twój fant” */
.dhl-donate-status-page { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 24px; }
.dhl-donate-banner { padding: 14px 16px; border-radius: 16px; background: var(--d-teal-soft); color: var(--d-teal-dark); font-size: 15px; line-height: 1.45; }
.dhl-donate-item { padding: 0 !important; overflow: hidden; }
.dhl-donate-item-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.dhl-donate-item-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.dhl-donate-item-body .dhl-donate-h1 { font-size: 22px; }
.dhl-donate-chip { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #fde9df; color: #9a4a21; font-size: 13px; font-weight: 700; }
.dhl-donate-approval { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--d-teal); color: #fff; }
.dhl-donate-approval strong { font: 700 17px/1.25 Montserrat, sans-serif; }
.dhl-donate-approval p { margin: 0; color: #e6f3f2; font-size: 15px; }
.dhl-donate a.dhl-donate-btn.is-light { background: #fff !important; color: var(--d-teal-dark) !important; box-shadow: none; }
.dhl-donate a.dhl-donate-btn.is-coral { background: var(--d-coral) !important; }
.dhl-donate-timeline { list-style: none; margin: 0; padding: 0; }
.dhl-donate-timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; margin: 0; }
.dhl-donate-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: #dfe5ea; }
.dhl-donate-timeline li.is-done:not(:last-child)::after { background: var(--d-teal); }
.dhl-donate-timeline li > div { display: flex; flex-direction: column; gap: 2px; }
.dhl-donate-timeline b { font-size: 16px; }
.dhl-donate-timeline span:not(.dhl-donate-dot) { font-size: 14px; color: var(--d-muted); line-height: 1.35; }
.dhl-donate-timeline a { font-size: 14px; font-weight: 700; }
.dhl-donate-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 800 13px/1 Montserrat, sans-serif; background: #fff; color: #8794a2; border: 2px solid #c9d2da; }
.dhl-donate-timeline li.is-done .dhl-donate-dot { background: var(--d-teal); color: #fff; border-color: var(--d-teal); }
.dhl-donate-timeline li.is-now .dhl-donate-dot { background: var(--d-coral); color: #fff; border-color: var(--d-coral); box-shadow: 0 0 0 5px #fde9df; }
.dhl-donate-timeline li.is-todo b { color: #8794a2; }
.dhl-donate-more { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--d-teal-soft); }
.dhl-donate-more p { margin: 0; color: #3d4a5c; font-size: 15px; }

/* Strona /przekaz-fant/ (szablon wtyczki) */
.dhl-donate-main { display: block; margin: 0; padding: clamp(16px, 4vw, 48px) 12px clamp(32px, 6vw, 72px); background: #fbf4ed; }
.dhl-donate-main > .dhl-donate { max-width: 560px; }
@media (max-width: 520px) { .dhl-donate-main { padding: 0 0 24px; } .dhl-donate-main .dhl-donate-form, .dhl-donate-main .dhl-donate-done { border-radius: 0; box-shadow: none; } .dhl-donate-main .dhl-donate-status-page { padding: 12px; } }

/* Okno (tryb przycisku) */
html.dhl-donate-locked, html.dhl-donate-locked body { overflow: hidden; }
.dhl-donate-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dhl-donate-modal[hidden] { display: none !important; }
.dhl-donate-backdrop { position: absolute; inset: 0; background: rgba(27,36,51,.6); }
.dhl-donate-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 24px; background: #fbf4ed; }
.dhl-donate-dialog:focus { outline: none; }
.dhl-donate-dialog .dhl-donate-form { box-shadow: none; border-radius: 0; }
.dhl-donate-modal button.dhl-donate-x { position: absolute !important; top: 12px; right: 12px; z-index: 2; width: 40px !important; height: 40px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #f1ece6 !important; color: #263348 !important; font-size: 24px !important; line-height: 1 !important; cursor: pointer; }
.dhl-donate-modal .dhl-donate-head { padding-right: 64px; }
button.dhl-donate-open.dhl-donate-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: #e0734f; color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }

@media (max-width: 520px) {
  .dhl-donate-modal { padding: 0; align-items: stretch; }
  .dhl-donate-dialog { width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
  .dhl-donate-form { border-radius: 0; box-shadow: none; }
  .dhl-donate .dhl-donate-h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .dhl-donate * { transition: none !important; }
}
