/* Podgląd szablonu (galeria kreatora / oferta) — banner informacyjny i
   przełącznik widoku desktop/telefon. Patrz template-preview-demo.js. */
.tpd-banner {
  position: sticky;
  top: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  background: #14213d;
  color: #fff;
  font: 500 0.85rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tpd-banner--hidden { display: none; }
.tpd-banner__text { flex: 1 1 260px; }
.tpd-banner__actions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.tpd-banner__btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
}
.tpd-banner__btn.is-active { background: #fff; color: #14213d; border-color: #fff; }
.tpd-banner__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

/* Symulacja szerokości telefonu bez otwierania narzędzi deweloperskich. */
html.tpd-view-mobile body {
  max-width: 390px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px #d9dee3, 0 20px 60px -20px rgba(16, 44, 64, 0.35);
  overflow-x: hidden;
}
html.tpd-view-mobile { background: #eef1f4; }

.tpd-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 12px);
  background: #14213d;
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font: 500 0.85rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2147483000;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}
.tpd-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Sekcje odsłaniane scrollem (animacje wejścia) mają być widoczne od razu —
   podgląd/zrzut nie przewija strony. */
.ct-reveal, [class*="-reveal"] { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }

/* Opinie gości w podglądzie są przykładowe (z manifestu szablonu, nie od
   prawdziwego gościa) — mała, nienachalna plakietka nad sekcją. */
[data-section="testimonials"] { position: relative; }
[data-section="testimonials"]::before {
  content: "Przykładowe opinie — podgląd szablonu";
  display: block;
  text-align: center;
  font: 600 0.72rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.6;
  padding: 0.5rem 0 0;
}
html[lang="en"] [data-section="testimonials"]::before {
  content: "Sample reviews — template preview";
}
