/* ===== Kolory – dopasuj do identyfikacji wizualnej ===== */
.srn-bar,
.srn-modal {
  --srn-accent: #24b9d7;        /* tło paska, przycisk CTA */
  --srn-accent-hover: #1a9cb8;
  --srn-on-accent: #000000;     /* tekst na kolorze akcentu */
  --srn-text: #000000;
  --srn-muted: #000000;
}

/* ===== Pasek ===== */
.srn-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 8px;
  padding: 12px 16px;
  background: var(--srn-accent);
  color: var(--srn-on-accent);
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
}
.srn-bar__link,
.srn-bar__link:visited {
  color: var(--srn-on-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.srn-bar__link:hover,
.srn-bar__link:focus {
  color: var(--srn-on-accent);
  text-decoration-thickness: 2px;
}

/* ===== Popup ===== */
.srn-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.srn-modal[hidden] { display: none; }

.srn-modal__backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.55);
}

.srn-modal__box {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 48px 40px 28px;
  background: #fff;
  color: var(--srn-text);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 19px;
  line-height: 1.55;
}
.srn-modal__box:focus { outline: none; }

.srn-modal__title {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  color: var(--srn-text);
}
.srn-modal__box p { margin: 0 0 10px; }

.srn-modal__x {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--srn-muted);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.srn-modal__x:hover { color: var(--srn-text); }

.srn-modal__cta,
.srn-modal__cta:visited {
  display: block;
  margin: 28px 0 10px;
  padding: 18px 24px;
  border-radius: 8px;
  background: var(--srn-accent);
  color: var(--srn-on-accent);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}
.srn-modal__cta:hover,
.srn-modal__cta:focus {
  background: var(--srn-accent-hover);
  color: var(--srn-on-accent);
  text-decoration: none;
}

.srn-modal__stay {
  padding: 6px;
  border: 0;
  background: none;
  color: var(--srn-muted);
  font-size: 17px;
  text-decoration: underline;
  cursor: pointer;
}
.srn-modal__stay:hover { color: var(--srn-text); }

.srn-modal__box .srn-modal__note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: var(--srn-muted);
  font-size: 16px;
}
.srn-modal__note a { color: inherit; text-decoration: underline; }

html.srn-lock,
html.srn-lock body { overflow: hidden; }

@media (max-width: 480px) {
  .srn-bar { font-size: 15px; }
  .srn-modal__box { padding: 44px 20px 20px; font-size: 17px; }
  .srn-modal__title { font-size: 23px; }
  .srn-modal__cta { font-size: 19px; }
  .srn-modal__stay { font-size: 16px; }
  .srn-modal__box .srn-modal__note { font-size: 15px; }
}

/* ===== Wymuszenie koloru tekstu (motyw nadpisuje kolor <p>, <span> itd.) ===== */
#srn-modal .srn-modal__box,
#srn-modal .srn-modal__box p,
#srn-modal .srn-modal__box span,
#srn-modal .srn-modal__box strong,
#srn-modal .srn-modal__title,
#srn-modal .srn-modal__stay,
#srn-modal .srn-modal__note,
#srn-modal .srn-modal__note a,
#srn-modal .srn-modal__x {
  color: var(--srn-text) !important;
}
#srn-modal .srn-modal__cta,
#srn-bar,
#srn-bar span,
#srn-bar a {
  color: var(--srn-on-accent) !important;
}
