/* ============================================================
   /przyklady/ — shared banner + promo card
   ============================================================
   Everything in this file is scoped under .tsd-demo-banner* /
   .tsd-demo-promo* / .tsd-demo-footer-cta* to avoid clashing
   with per-branża stylesheets. No !important — rely on class
   specificity (.tsd-* is unique).
   ============================================================ */

/* --- Make room for the fixed top banner --------------------- */
body {
  padding-top: 52px;
}

/* Screenshot mode: banner is skipped by PHP, drop the padding too. */
body:not(:has(.tsd-demo-banner)) {
  padding-top: 0;
}

/* --- Top banner --------------------------------------------- */
.tsd-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background-color: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  line-height: 1.2;
  z-index: 2147483647;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tsd-demo-banner[hidden] {
  display: none;
}

.tsd-demo-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tsd-demo-banner__back {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.tsd-demo-banner__back:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.tsd-demo-banner__label {
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.tsd-demo-banner__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.tsd-demo-banner__cta {
  background-color: #e8590c;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13px;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.tsd-demo-banner__cta:hover {
  background-color: #d14d08;
  transform: translateY(-1px);
}

.tsd-demo-banner__close {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.64);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  flex-shrink: 0;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.tsd-demo-banner__close:hover,
.tsd-demo-banner__close:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

/* --- Floating promo card ------------------------------------ */
.tsd-demo-promo {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2147483646;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  pointer-events: none;
}

.tsd-demo-promo[data-state="hidden"] {
  display: none;
}

.tsd-demo-promo__fab {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  border: none;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
  cursor: pointer;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
}

.tsd-demo-promo__fab:hover {
  transform: scale(1.05);
}

.tsd-demo-promo__card {
  width: 280px;
  padding: 16px 18px 18px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.tsd-demo-promo[data-state="visible"] .tsd-demo-promo__card {
  transform: translateY(0);
  opacity: 1;
}

.tsd-demo-promo__card:hover {
  transform: translateY(0) scale(1.02);
}

.tsd-demo-promo__icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}

.tsd-demo-promo__headline {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.tsd-demo-promo__subline {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.tsd-demo-promo .tsd-demo-promo__cta,
.tsd-demo-promo a.tsd-demo-promo__cta,
.tsd-demo-promo a.tsd-demo-promo__cta:link,
.tsd-demo-promo a.tsd-demo-promo__cta:visited {
  display: inline-block;
  background-color: #ffffff;
  color: #b91c1c;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.tsd-demo-promo a.tsd-demo-promo__cta:hover,
.tsd-demo-promo a.tsd-demo-promo__cta:focus {
  background-color: #fef2f2;
  color: #7f1d1d;
}

.tsd-demo-promo__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}

.tsd-demo-promo__close:hover,
.tsd-demo-promo__close:focus {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  outline: none;
}

/* --- Demo form notice (injected by banner.js) --------------- */
.tsd-demo-form-notice {
  margin-top: 12px;
  padding: 10px 14px;
  background-color: #fef3c7;
  border: 1px solid #fcd34d;
  color: #78350f;
  border-radius: 6px;
  font-size: 14px;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

/* --- Footer CTA (shared chrome, per-branża colour inline) ----
   Background colour and text colour are both set inline from
   shared/footer-cta.php via a WCAG luminance check, so we keep
   the base colour neutral here and let inline styles win. */
.tsd-demo-footer-cta {
  padding: 80px 20px;
  color: #0f172a;
  text-align: center;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.tsd-demo-footer-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.tsd-demo-footer-cta__headline {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.tsd-demo-footer-cta__subline {
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.92;
  margin: 0 0 28px;
}

.tsd-demo-footer-cta__button {
  display: inline-block;
  background-color: #e8590c;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.tsd-demo-footer-cta__button:hover {
  background-color: #d14d08;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(232, 89, 12, 0.4);
}

.tsd-demo-footer-cta__note {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.82;
}

.tsd-demo-footer-cta__landing-link {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  opacity: 0.88;
}

.tsd-demo-footer-cta__landing-link a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tsd-demo-footer-cta__landing-link a:hover {
  opacity: 0.75;
}

/* --- Mobile breakpoint -------------------------------------- */
@media (max-width: 768px) {
  .tsd-demo-banner {
    height: auto;
    min-height: 56px;
  }

  .tsd-demo-banner__inner {
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }

  .tsd-demo-banner__back {
    padding: 5px 8px;
    font-size: 12px;
    order: 1;
  }

  .tsd-demo-banner__back-text {
    display: none;
  }

  .tsd-demo-banner__label {
    order: 2;
    font-size: 11px;
    padding: 3px 10px;
  }

  .tsd-demo-banner__close {
    order: 3;
  }

  .tsd-demo-banner__text {
    flex: 1 1 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 12px;
    order: 4;
    padding-top: 4px;
  }

  .tsd-demo-banner__cta {
    order: 5;
    font-size: 12px;
    padding: 8px 14px;
  }

  body {
    padding-top: 90px;
  }

  /* Promo collapses into a FAB on mobile. */
  .tsd-demo-promo {
    left: auto;
    right: 16px;
    bottom: 16px;
  }

  .tsd-demo-promo__fab {
    display: flex;
  }

  .tsd-demo-promo__card {
    display: none;
    width: calc(100vw - 32px);
    max-width: 320px;
    position: fixed;
    right: 16px;
    bottom: 80px;
  }

  .tsd-demo-promo[data-state="expanded"] .tsd-demo-promo__card {
    display: block;
    transform: translateY(0);
    opacity: 1;
  }

  .tsd-demo-footer-cta {
    padding: 60px 20px;
  }

  .tsd-demo-footer-cta__headline {
    font-size: 28px;
  }
}

/* --- Contact page disclaimer box ---------------------------- */
.tsd-demo-disclaimer {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  margin: 0 0 32px;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.tsd-demo-disclaimer__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.tsd-demo-disclaimer__body {
  flex: 1;
  min-width: 0;
}

.tsd-demo-disclaimer__title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #7c2d12;
  margin-bottom: 4px;
}

.tsd-demo-disclaimer__text {
  font-size: 14px;
  line-height: 1.5;
  color: #9a3412;
  margin: 0 0 12px;
}

.tsd-demo-disclaimer__cta {
  display: inline-block;
  background-color: #e8590c;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.tsd-demo-disclaimer__cta:hover {
  background-color: #d14d08;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .tsd-demo-disclaimer {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
}

/* --- Post-submit form overlay ------------------------------- */
.tsd-demo-form-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  animation: tsd-overlay-fade 0.2s ease;
}

@keyframes tsd-overlay-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tsd-demo-form-overlay__card {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 40px 32px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: tsd-card-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tsd-card-rise {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tsd-demo-form-overlay__icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
}

.tsd-demo-form-overlay__title {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.2;
}

.tsd-demo-form-overlay__text {
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 28px;
}

.tsd-demo-form-overlay__cta {
  display: inline-block;
  background-color: #e8590c;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.tsd-demo-form-overlay__cta:hover {
  background-color: #d14d08;
  transform: translateY(-1px);
}

.tsd-demo-form-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
}

.tsd-demo-form-overlay__close:hover,
.tsd-demo-form-overlay__close:focus {
  background-color: #f1f5f9;
  color: #0f172a;
  outline: none;
}
