/* SEB Cookies — style banera, modala i placeholderów
   Używamy CSS Variables — nadpisywane inline z PHP (jedno miejsce do zmiany).
*/

:root {
  --seb-banner-bg: #222;
  --seb-banner-text: #fff;
  --seb-btn-accept-bg: #2e7d32;
  --seb-btn-accept-tx: #fff;
  --seb-btn-reject-bg: #b71c1c;
  --seb-btn-reject-tx: #fff;
  --seb-btn-alt-bg: #424242;
  --seb-btn-alt-tx: #fff;
  --seb-modal-backdrop: rgba(0, 0, 0, 0.55);
  --seb-modal-bg: #fff;
  --seb-modal-text: #111;
  --seb-font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

/* BANER */
.seb-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--seb-banner-bg);
  color: var(--seb-banner-text);
  z-index: 99999;
  font-family: var(--seb-font-family);
  padding: 14px;
}
.seb-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.seb-actions button {
  margin-right: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--seb-font-family);
}
.seb-actions .seb-accept-all {
  background: var(--seb-btn-accept-bg);
  color: var(--seb-btn-accept-tx);
}
.seb-actions .seb-reject-all {
  background: var(--seb-btn-reject-bg);
  color: var(--seb-btn-reject-tx);
}
.seb-actions .seb-settings-open {
  background: var(--seb-btn-alt-bg);
  color: var(--seb-btn-alt-tx);
}

/* MODAL */
.seb-modal {
  position: fixed;
  inset: 0;
  background: var(--seb-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.seb-modal[aria-hidden="false"],
.seb-modal.show {
  display: flex;
}
.seb-modal-box {
  background: var(--seb-modal-bg);
  color: var(--seb-modal-text);
  min-width: 320px;
  max-width: 560px;
  padding: 16px;
  border-radius: 8px;
  font-family: var(--seb-font-family);
}
.seb-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.seb-desc {
  opacity: 0.85;
}

/* PLACEHOLDER */
.seb-placeholder {
  background: #f5f5f5;
  border: 1px dashed #bbb;
  padding: 14px;
  border-radius: 6px;
  margin: 8px 0;
  font-family: var(--seb-font-family);
}
.seb-placeholder .seb-enable {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--seb-btn-alt-bg);
  color: var(--seb-btn-alt-tx);
  border: 0;
  cursor: pointer;
}

/* FORM GATE (UI) */
form[data-consent-cats]:not(.seb-enabled) {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}
form[data-consent-cats]:not(.seb-enabled)::after {
  content: "Formularz wymaga zgody";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  color: #333;
  font-weight: 600;
}
