/* Okienko newslettera i karta w rogu. Kolory jak na stronie. */
.cwn, .cwn-pill { --cwn-g: #01473d; --cwn-gd: #00362e; --cwn-ink: #101a17; --cwn-mut: #59645f; --cwn-line: #dcdcd6; --cwn-gold: #fff3d6; font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.cwn[hidden], .cwn-pill[hidden] { display: none !important; }
.cwn *, .cwn *::before, .cwn *::after, .cwn-pill, .cwn-pill * { box-sizing: border-box; }
.cwn { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px; background: rgba(7, 18, 15, .55); }
html.cwn-open { overflow: hidden; }
.cwn .cwn__dlg { position: relative; width: min(100%, 480px); max-height: calc(100vh - 32px); overflow: auto; padding: 32px 30px 26px; border-radius: 26px; background: #fff; color: var(--cwn-ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: cwn-in .25s ease-out; }
@keyframes cwn-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cwn .cwn__dlg { animation: none; } }
.cwn .cwn__x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f4f3f0; color: var(--cwn-ink); font: 700 22px/40px system-ui, sans-serif; cursor: pointer; }
.cwn .cwn__x:hover { background: #ebe9e4; }
.cwn .cwn__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cwn-g); }
.cwn .cwn__title { margin: 0 0 10px; font-size: 38px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--cwn-ink); }
.cwn .cwn__lead { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: #2f3a36; }
.cwn .cwn__form { display: grid; gap: 12px; margin: 0; }
.cwn .cwn__field { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
.cwn .cwn__field input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 16px; border: 1.5px solid var(--cwn-line); border-radius: 14px; background: #fff; font: inherit; font-weight: 400; color: var(--cwn-ink); }
.cwn .cwn__field input:focus { outline: none; border-color: var(--cwn-g); box-shadow: 0 0 0 3px rgba(1, 71, 61, .14); }
.cwn .cwn__why { margin: -4px 0 0; font-size: 13px; color: var(--cwn-mut); }
.cwn .cwn__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #2f3a36; cursor: pointer; }
.cwn .cwn__check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cwn-g); }
.cwn .cwn__check em { font-style: normal; color: var(--cwn-mut); }
.cwn .cwn__trap { position: absolute; left: -9999px; }
.cwn .cwn__err { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fdecea; color: #a3281d; font-size: 14px; font-weight: 700; }
.cwn .cwn__btn { width: 100%; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--cwn-g); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.cwn .cwn__btn:hover { background: var(--cwn-gd); }
.cwn .cwn__btn:disabled { opacity: .7; cursor: default; }
.cwn .cwn__legal { margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: var(--cwn-mut); }
.cwn .cwn__legal a { color: var(--cwn-g); }
.cwn .cwn__done { display: grid; gap: 16px; }
.cwn .cwn__ok { margin: 0; padding: 14px 16px; border-radius: 14px; background: #e3ebe6; color: var(--cwn-g); font-size: 16px; font-weight: 700; }
.cwn button:focus-visible, .cwn input:focus-visible, .cwn a:focus-visible { outline: 2px solid var(--cwn-g); outline-offset: 2px; }

/* Telefon: okienko jako panel od dołu, żeby nie zasłaniało całej strony */
@media (max-width: 560px) {
  .cwn { place-items: end center; padding: 0; }
  .cwn .cwn__dlg { width: 100%; max-height: 92vh; padding: 26px 18px 20px; border-radius: 22px 22px 0 0; }
  .cwn .cwn__title { font-size: 32px; padding-right: 40px; }
  .cwn .cwn__lead { font-size: 15px; }
}

/* Karta w rogu. Motyw (Hello / Elementor) stylizuje każdy <button>: różowa ramka, przezroczyste tło, inline-block.
   Karta jest poza sekcjami strony, więc nadpisujemy to mocniejszym selektorem i !important, także dla :hover/:focus/:active. */
button.cwn-pill.cwn-pill, button.cwn-pill.cwn-pill:hover, button.cwn-pill.cwn-pill:focus, button.cwn-pill.cwn-pill:active {
  position: fixed; right: 16px; bottom: 16px; z-index: 9990;
  display: inline-flex !important; align-items: center; gap: 4px;
  width: auto; min-height: 48px; margin: 0; padding: 0 22px !important;
  border: 0 !important; border-radius: 999px !important;
  background: var(--cwn-g) !important; color: #fff !important;
  font: 800 15px/1.2 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  text-transform: none; letter-spacing: 0; white-space: nowrap !important; text-decoration: none;
  box-shadow: 0 10px 28px rgba(1, 71, 61, .35); cursor: pointer;
}
button.cwn-pill.cwn-pill:hover { background: var(--cwn-gd) !important; }
button.cwn-pill.cwn-pill:focus-visible { outline: 2px solid var(--cwn-g) !important; outline-offset: 3px; }
.cwn-pill .cwn-pill__t { color: #fff; }
/* na karcie produktu na telefonie jest pasek „Zarezerwuj” na dole: karta wyżej */
body:has(.buybar:not([hidden])) button.cwn-pill.cwn-pill { bottom: 84px; }
@media (max-width: 560px) { button.cwn-pill.cwn-pill, button.cwn-pill.cwn-pill:hover, button.cwn-pill.cwn-pill:focus { right: 10px; bottom: 10px; min-height: 44px; font-size: 14px !important; } }

/* Przyciski w okienku: te same zabezpieczenia przed stylami motywu */
.cwn button.cwn__btn, .cwn button.cwn__btn:hover, .cwn button.cwn__btn:focus { border: 0 !important; background: var(--cwn-g) !important; color: #fff !important; white-space: normal; text-transform: none; }
.cwn button.cwn__btn:hover { background: var(--cwn-gd) !important; }
.cwn button.cwn__x, .cwn button.cwn__x:hover, .cwn button.cwn__x:focus { border: 0 !important; background: #f4f3f0 !important; color: var(--cwn-ink) !important; padding: 0 !important; }
.cwn button.cwn__x:hover { background: #ebe9e4 !important; }
