/* DOTACJE ONLINE - samodzielne style banera zgód */
#docb-root { --docb-accent: #1764a1; font-family: inherit; color: #1d2b3a; }
#docb-root *, #docb-root *::before, #docb-root *::after { box-sizing: border-box; }
#docb-root [hidden] { display: none !important; }
#docb-root button { font: inherit; cursor: pointer; }
#docb-root button:focus-visible, #docb-root a:focus-visible, #docb-root input:focus-visible { outline: 3px solid #f4b641; outline-offset: 3px; }
#docb-root a { color: var(--docb-accent); text-decoration: underline; text-underline-offset: 2px; }
#docb-root .docb-banner { position: fixed; z-index: 2147483000; right: 22px; bottom: 22px; left: 22px; max-width: 1240px; margin: 0 auto; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid #dce4ec; border-radius: 16px; background: #fff; color: #243345; box-shadow: 0 18px 70px rgba(20,40,65,.22); }
#docb-root .docb-banner-text { flex: 1 1 450px; }
#docb-root .docb-banner h2 { font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin: 0 0 8px; color: #183b61; }
#docb-root .docb-banner p { font-size: 14px; line-height: 1.65; margin: 0; color: #39495a; }
#docb-root .docb-banner-actions { flex: 0 1 270px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
#docb-root .docb-banner-actions .docb-btn { width: 100%; }
#docb-root .docb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; line-height: 1.4; font-weight: 650; box-shadow: none; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
#docb-root .docb-primary { background: var(--docb-accent); color: #fff; }
#docb-root .docb-primary:hover { filter: brightness(.92); color: #fff; }
#docb-root .docb-outline { color: var(--docb-accent); background: #fff; border-color: var(--docb-accent); }
#docb-root .docb-outline:hover { background: #f2f7fc; }
#docb-root .docb-light { color: #23374c; background: #f1f4f8; border-color: #d8e0e9; }
#docb-root .docb-light:hover { background: #e7eef6; }
#docb-root .docb-float { position: fixed; z-index: 2147482000; left: 18px; bottom: 18px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #d6e1ec; border-radius: 50%; background: #fff; color: var(--docb-accent); box-shadow: 0 5px 16px rgba(0,0,0,.15); }
#docb-root .docb-float:hover { background: #eef5fb; }
#docb-root .docb-overlay { position: fixed; z-index: 2147483200; inset: 0; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 22px; background: rgba(15, 32, 53, .55); }
body.docb-modal-open { overflow: hidden; }
#docb-root .docb-dialog { display: flex; flex-direction: column; width: min(100%, 720px); max-height: min(90vh, 850px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 20px 90px rgba(0,0,0,.28); color: #243345; }
#docb-root .docb-dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 16px; border-bottom: 1px solid #e9eef3; }
#docb-root .docb-dialog-top h2 { margin: 0 0 8px; color: #193e64; font-size: 21px; line-height: 1.35; font-weight: 700; }
#docb-root .docb-dialog-top p { margin: 0; color: #445568; font-size: 14px; line-height: 1.6; }
#docb-root .docb-close { padding: 0; width: 32px; height: 32px; flex: 0 0 32px; border: 0; background: #f2f5f7; color: #36485c; border-radius: 7px; font-size: 25px; line-height: 1; }
#docb-root .docb-dialog-scroll { overflow: auto; padding: 18px 26px; overscroll-behavior: contain; }
#docb-root .docb-category { padding: 15px 0; border-bottom: 1px solid #edf1f6; }
#docb-root .docb-category-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#docb-root .docb-category h3 { margin: 0; font-size: 15px; font-weight: 700; color: #203d5b; }
#docb-root .docb-category p { margin: 7px 50px 0 0; color: #566779; font-size: 13px; line-height: 1.6; }
#docb-root .docb-always { color: #2b6276; font-size: 12px; font-weight: 700; white-space: nowrap; }
#docb-root .docb-toggle { display: inline-flex; align-items: center; position: relative; width: 42px; height: 24px; flex: 0 0 42px; }
#docb-root .docb-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
#docb-root .docb-switch { width: 42px; height: 24px; background: #a5b3c1; border-radius: 20px; transition: background .15s; pointer-events: none; }
#docb-root .docb-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .15s; }
#docb-root .docb-toggle input:checked + .docb-switch { background: var(--docb-accent); }
#docb-root .docb-toggle input:checked + .docb-switch::after { transform: translateX(18px); }
#docb-root .docb-toggle input:focus-visible + .docb-switch { outline: 3px solid #f4b641; outline-offset: 3px; }
#docb-root .docb-inventory { padding-top: 17px; }
#docb-root .docb-inventory summary { color: var(--docb-accent); font-size: 14px; font-weight: 650; cursor: pointer; }
#docb-root .docb-inventory p, #docb-root .docb-privacy { color: #506174; font-size: 13px; line-height: 1.6; }
#docb-root .docb-privacy { margin: 16px 0 0; }
#docb-root .docb-table-wrap { overflow-x: auto; margin-top: 13px; }
#docb-root table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 12px; text-align: left; }
#docb-root th, #docb-root td { padding: 9px 10px; border: 1px solid #dce4ec; vertical-align: top; line-height: 1.4; }
#docb-root th { background: #f4f7fa; font-weight: 650; }
#docb-root .docb-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 18px 26px 22px; border-top: 1px solid #e9eef3; }
#docb-root .docb-dialog-actions .docb-btn { flex: 1 1 150px; }
.docb-inline-button { border: none; padding: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 720px) {
  #docb-root .docb-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; gap: 14px; max-height: calc(100vh - 20px); overflow-y: auto; }
  #docb-root .docb-banner h2 { font-size: 17px; }
  #docb-root .docb-banner p { font-size: 13px; }
  #docb-root .docb-banner-actions { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; }
  #docb-root .docb-banner-actions .docb-primary { grid-column: 1 / -1; }
  #docb-root .docb-overlay { padding: 9px; }
  #docb-root .docb-dialog { max-height: calc(100dvh - 18px); }
  #docb-root .docb-dialog-top { padding: 18px 16px 14px; }
  #docb-root .docb-dialog-top h2 { font-size: 18px; }
  #docb-root .docb-dialog-scroll { padding: 12px 16px; }
  #docb-root .docb-dialog-actions { padding: 12px 16px 16px; gap: 8px; }
  #docb-root .docb-dialog-actions .docb-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { #docb-root .docb-btn, #docb-root .docb-switch, #docb-root .docb-switch::after { transition: none; } }
/* v1.0: ukrywanie, treści osadzone, zwiększenie dostępności */
#docb-root [hidden] { display: none !important; }
#docb-root .docb-embed { display:flex; flex-direction:column; gap:12px; align-items:center; justify-content:center; min-height:180px; padding:25px; border:1px dashed #b8c7d8; border-radius:12px; background:#f5f8fb; color:#233a56; text-align:center; }
#docb-root .docb-embed p { margin:0; }
#docb-root .docb-embed iframe { border:0; width:100%; }
.docb-embed { display:flex; flex-direction:column; gap:12px; align-items:center; justify-content:center; min-height:180px; padding:25px; border:1px dashed #b8c7d8; border-radius:12px; background:#f5f8fb; color:#233a56; text-align:center; }
.docb-embed iframe { border:0; width:100%; }
#docb-root :is(button,a,input,summary):focus-visible { outline:3px solid #edb83c; outline-offset:3px; }
.docb-embed .docb-btn { display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;background:#eef2f6;color:#193e64;border:1px solid #c7d5e2;border-radius:8px;font-size:14px;cursor:pointer; }
/* 1.2: immediately visible consent banner, hidden only for a valid saved choice. */
html.docb-has-valid-choice #docb-root #docb-banner { display:none !important; }
/* v1.2.2 - On desktop, stretch the consent bar across the viewport, flush with its bottom edge. */
@media (min-width: 721px) {
  #docb-root .docb-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px clamp(26px, 4vw, 80px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    gap: clamp(24px, 3vw, 52px);
  }
  #docb-root .docb-banner-text { min-width: 0; }
  #docb-root .docb-banner-actions { flex: 0 0 286px; }
}
/* The settings shortcut is hidden until the visitor has chosen (accept, reject or custom). */
#docb-root .docb-banner:not([hidden]) ~ .docb-float { display: none !important; }


/* v1.2.5 - refined desktop banner: slightly narrower, centered, rounded and more elegant. */
@media (min-width: 721px) {
  #docb-root .docb-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 18px;
    width: min(90vw, 1600px);
    max-width: none;
    margin: 0;
    padding: 24px clamp(28px, 3vw, 52px);
    border-radius: 20px;
    border: 1px solid #d7e2ee;
    box-shadow: 0 24px 70px rgba(16, 42, 72, .18), 0 8px 24px rgba(16, 42, 72, .08);
    gap: clamp(24px, 2.6vw, 44px);
    background: #ffffff;
  }
  #docb-root .docb-banner h2 {
    font-size: 20px;
    letter-spacing: -0.02em;
  }
  #docb-root .docb-banner p {
    max-width: 980px;
    font-size: 15px;
    line-height: 1.7;
  }
  #docb-root .docb-banner-actions {
    flex: 0 0 290px;
  }
  #docb-root .docb-btn {
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
  }
}

/* v1.2.6 - compact two-line copy on ordinary desktop screens without truncation. */
@media (min-width: 1100px) {
  #docb-root .docb-banner-text p {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.65;
  }
}
