/* Debesis CMP — baner zgody na ciasteczka (22.09.2026) */
.deb-cmp, .deb-cmp * { box-sizing: border-box; }
.deb-cmp {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998;
  background: #fff; border-top: 1px solid #E8E4DD;
  box-shadow: 0 -8px 32px rgba(15, 41, 66, .12);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0A0E1A; padding: 20px 24px;
  transform: translateY(110%); transition: transform .28s ease;
}
.deb-cmp[data-open="1"] { transform: translateY(0); }
.deb-cmp-in { max-width: 1160px; margin: 0 auto; display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.deb-cmp-txt { flex: 1 1 420px; min-width: 280px; }
.deb-cmp h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 21px; line-height: 1.25;
  margin: 0 0 6px; color: #0A0E1A; }
.deb-cmp p { font-size: 14.5px; line-height: 1.55; color: #4A5160; margin: 0; }
.deb-cmp p a { color: #1A7A90; text-decoration: underline; }
.deb-cmp-short { display: none; }
/* Skrypt animacji Mobirise (theme/js/script.js) ukrywa elementy klasą .hidden i odsłania je z opóźnieniem,
   a te poza „strefą widoczności” wcale — w banerze zgody wyłączamy to dla wszystkich szerokości. */
.deb-cmp .hidden { visibility: visible !important; }
.deb-cmp .animate__animated { animation: none !important; }
.deb-cmp-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 0 0 auto; }
.deb-cmp-btn { font: inherit; font-size: 14.5px; font-weight: 600; padding: 11px 20px; border-radius: 100px;
  border: 1px solid #E8E4DD; background: #fff; color: #0A0E1A; cursor: pointer; white-space: nowrap; }
.deb-cmp-btn:hover { border-color: #0A0E1A; }
.deb-cmp-btn--main { background: #0F2942; border-color: #0F2942; color: #fff; }
.deb-cmp-btn--main:hover { background: #0A0E1A; }
.deb-cmp-btn--link { border: 0; background: none; text-decoration: underline; padding: 11px 6px; color: #4A5160; }
.deb-cmp-btn:focus-visible, .deb-cmp-sw input:focus-visible + .deb-cmp-sw-ui { outline: 2px solid #1A7A90; outline-offset: 2px; }

.deb-cmp-panel { display: none; flex-basis: 100%; margin-top: 18px; padding-top: 18px; border-top: 1px solid #E8E4DD; }
.deb-cmp[data-panel="1"] .deb-cmp-panel { display: block; }
.deb-cmp-row { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #F1EFEA; }
.deb-cmp-row:last-child { border-bottom: 0; }
.deb-cmp-row h3 { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.deb-cmp-row p { font-size: 13.5px; }
.deb-cmp-sw { flex: 0 0 auto; margin-left: auto; position: relative; }
.deb-cmp-sw input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.deb-cmp-sw-ui { display: block; width: 44px; height: 26px; border-radius: 100px; background: #D8D4CC; transition: background .18s; }
.deb-cmp-sw-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .18s; }
.deb-cmp-sw input:checked + .deb-cmp-sw-ui { background: #2D6A4F; }
.deb-cmp-sw input:checked + .deb-cmp-sw-ui::after { transform: translateX(18px); }
.deb-cmp-sw input:disabled + .deb-cmp-sw-ui { background: #B9D4C6; cursor: not-allowed; }

@media (max-width: 720px) {
  .deb-cmp { padding: 18px 16px; max-height: 88vh; overflow-y: auto; }
  .deb-cmp-in { gap: 14px; }
  .deb-cmp-btns { width: 100%; }
  .deb-cmp-btn { flex: 1 1 auto; text-align: center; }
  .deb-cmp h2 { font-size: 19px; }
}

/* Telefony (do 600 px): krótszy tekst, równorzędne przyciski, „Ustawienia” jako link — cel: ≤ 25% wysokości ekranu (07.10.2026) */
@media (max-width: 600px) {
  .deb-cmp { padding: 12px 14px calc(10px + env(safe-area-inset-bottom)); }
  .deb-cmp-in { gap: 8px; }
  .deb-cmp h2 { font-size: 17px; margin: 0 0 2px; }
  .deb-cmp p { font-size: 13px; line-height: 1.45; }
  .deb-cmp-long { display: none; }
  .deb-cmp-short { display: inline; }
  .deb-cmp-in > .deb-cmp-btns { gap: 8px; }
  .deb-cmp-in > .deb-cmp-btns .deb-cmp-btn[data-akcja="odrzuc"],
  .deb-cmp-in > .deb-cmp-btns .deb-cmp-btn[data-akcja="akceptuj"] {
    flex: 1 1 0; min-width: 0; padding: 10px 8px; font-size: 14px;
    background: #0F2942; border-color: #0F2942; color: #fff;
  }
  .deb-cmp-in > .deb-cmp-btns .deb-cmp-btn--link {
    order: 3; flex: 1 1 100%; padding: 3px 0; font-size: 13px; font-weight: 500; text-align: left;
  }
}

/* Telefony do 575 px: baner ok. 120 px — „Ustawienia” obok tytułu, dwa przyciski w jednym wierszu (20.10.2026) */
@media (max-width: 575.98px) {
  .deb-cmp { padding: 10px 14px calc(8px + env(safe-area-inset-bottom)); }
  .deb-cmp-in { position: relative; gap: 8px; }
  .deb-cmp-txt { min-width: 0; }
  .deb-cmp h2 { font-size: 16px; line-height: 1.25; margin: 0 0 2px; padding-right: 92px; }
  .deb-cmp p { font-size: 12.5px; line-height: 1.4; }
  .deb-cmp-in > .deb-cmp-btns .deb-cmp-btn[data-akcja="odrzuc"],
  .deb-cmp-in > .deb-cmp-btns .deb-cmp-btn[data-akcja="akceptuj"] { padding: 9px 8px; font-size: 13.5px; line-height: 20px; }
  .deb-cmp-in > .deb-cmp-btns .deb-cmp-btn--link {
    position: absolute; top: 0; right: 0; flex: none; width: auto; padding: 0 0 6px 12px; font-size: 13px; line-height: 20px;
  }
}
