/* DOGMA — cookie consent (blokada strony do wyboru) */

body.dogma-cookie-locked {
  overflow: hidden;
}

body.dogma-cookie-locked .mca-fab {
  display: none !important;
}

.dogma-cookie-consent {
  --cookie-z: 20000;
  position: fixed;
  inset: 0;
  z-index: var(--cookie-z);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 20px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.dogma-cookie-consent.is-visible {
  pointer-events: auto;
}

.dogma-cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background 520ms ease,
    backdrop-filter 720ms ease,
    -webkit-backdrop-filter 720ms ease;
}

.dogma-cookie-consent.is-visible .dogma-cookie-consent__backdrop {
  background:
    radial-gradient(
      ellipse 95% 72% at 50% 36%,
      rgba(239, 186, 115, 0.09) 0%,
      rgba(217, 167, 93, 0.04) 22%,
      rgba(3, 3, 3, 0.52) 48%,
      rgba(3, 3, 3, 0.88) 100%
    );
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
}

.dogma-cookie-consent.is-dissolving .dogma-cookie-consent__backdrop {
  background: rgba(3, 3, 3, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.dogma-cookie-consent__brand {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: min(520px, 96vw);
  min-height: min(220px, 34vh);
  opacity: 0;
  transform: scale(0.88) translateY(14px);
  filter: blur(6px);
  transition:
    opacity 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 680ms cubic-bezier(0.18, 0.95, 0.22, 1),
    filter 560ms ease;
  pointer-events: none;
  isolation: isolate;
}

/* Warstwy rozproszenia światła (szersze, miękkie, eliptyczne) */
.dogma-cookie-consent__brand::before,
.dogma-cookie-consent__brand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
}

.dogma-cookie-consent__brand::before {
  z-index: 0;
  width: min(560px, 98vw);
  height: min(340px, 52vh);
  background: radial-gradient(
    ellipse 48% 40% at 50% 50%,
    rgba(239, 186, 115, 0.11) 0%,
    rgba(217, 167, 93, 0.045) 32%,
    rgba(120, 90, 50, 0.018) 55%,
    transparent 78%
  );
  filter: blur(22px);
}

.dogma-cookie-consent__brand::after {
  z-index: 0;
  width: min(420px, 88vw);
  height: min(200px, 32vh);
  background: radial-gradient(
    ellipse 42% 48% at 50% 50%,
    rgba(255, 228, 180, 0.16) 0%,
    rgba(239, 186, 115, 0.07) 28%,
    rgba(217, 167, 93, 0.025) 52%,
    transparent 74%
  );
  filter: blur(14px);
}

.dogma-cookie-consent.is-brand-in .dogma-cookie-consent__brand {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.dogma-cookie-consent.is-dissolving .dogma-cookie-consent__brand {
  opacity: 0;
  transform: scale(1.12) translateY(-28px);
  filter: blur(12px);
  transition:
    opacity 720ms ease,
    transform 820ms cubic-bezier(0.22, 1, 0.28, 1),
    filter 680ms ease;
}

.dogma-cookie-consent__scatter {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(480px, 90vw);
  height: min(160px, 26vh);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dogma-cookie-consent__scatter-core,
.dogma-cookie-consent__scatter-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.dogma-cookie-consent__scatter-core {
  background: radial-gradient(
    ellipse 38% 52% at 50% 50%,
    rgba(255, 235, 200, 0.42) 0%,
    rgba(239, 186, 115, 0.18) 26%,
    rgba(217, 167, 93, 0.06) 48%,
    transparent 72%
  );
  filter: blur(20px);
  animation: dogma-cookie-glow-pulse 3.6s ease-in-out infinite;
}

.dogma-cookie-consent__scatter-halo {
  inset: -35% -25%;
  background: radial-gradient(
    ellipse 50% 45% at 50% 50%,
    rgba(239, 186, 115, 0.14) 0%,
    rgba(217, 167, 93, 0.05) 38%,
    transparent 70%
  );
  filter: blur(32px);
  opacity: 0.85;
}

.dogma-cookie-consent__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(128px, 34vw, 172px);
  height: auto;
  object-fit: contain;
  animation: dogma-cookie-levitate 3.2s ease-in-out infinite;
  filter:
    drop-shadow(0 0 28px rgba(239, 186, 115, 0.22))
    drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
}

@keyframes dogma-cookie-levitate {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-11px);
  }
}

@keyframes dogma-cookie-glow-pulse {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.dogma-cookie-consent.is-dissolving .dogma-cookie-consent__scatter-core,
.dogma-cookie-consent.is-dissolving .dogma-cookie-consent__scatter-halo {
  opacity: 0;
  filter: blur(40px);
  transition: opacity 680ms ease, filter 720ms ease;
}

.dogma-cookie-consent__panel {
  position: relative;
  z-index: 3;
  width: min(480px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(217, 167, 93, 0.22);
  background: rgba(12, 11, 10, 0.96);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.18, 0.95, 0.22, 1);
}

.dogma-cookie-consent.is-panel-in .dogma-cookie-consent__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dogma-cookie-consent.is-dissolving .dogma-cookie-consent__panel {
  opacity: 0;
  transform: translateY(28px) scale(0.9);
  transition:
    opacity 320ms ease,
    transform 380ms ease;
}

.dogma-cookie-consent__inner {
  padding: 16px 16px 14px;
}

.dogma-cookie-consent__title {
  margin: 0 0 6px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff8f0;
}

.dogma-cookie-consent__text {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #c9bfb2;
}

.dogma-cookie-consent__text a {
  color: #f2c57b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dogma-cookie-consent__actions--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dogma-cookie-consent__btn {
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  min-height: 42px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

.dogma-cookie-consent__btn:active {
  transform: scale(0.98);
}

.dogma-cookie-consent__btn--accept {
  color: #18120b;
  border: 1px solid rgba(239, 186, 115, 0.38);
  background: linear-gradient(180deg, #f2c57b 0%, #d9a75d 56%, #b88444 100%);
  box-shadow: 0 8px 24px rgba(185, 135, 68, 0.25);
}

.dogma-cookie-consent__btn--reject {
  color: #f2c57b;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 167, 93, 0.32);
}

.dogma-cookie-consent__btn--reject:hover {
  background: rgba(217, 167, 93, 0.1);
}

@media (max-width: 420px) {
  .dogma-cookie-consent__actions--dual {
    grid-template-columns: 1fr;
  }

  .dogma-cookie-consent__btn--accept {
    order: 1;
  }

  .dogma-cookie-consent__btn--reject {
    order: 2;
  }
}

/* Przełączniki — strona polityki */
.cookie-consent__categories {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-category__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cookie-category__copy strong {
  display: inline;
  font-size: 14px;
  color: #fff8f0;
}

.cookie-category__copy p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(215, 203, 189, 0.88);
}

.cookie-category__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(217, 167, 93, 0.2);
  vertical-align: middle;
}

.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  margin-top: 2px;
  cursor: pointer;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__ui {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.cookie-toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cookie-toggle input:checked + .cookie-toggle__ui {
  background: rgba(217, 167, 93, 0.85);
}

.cookie-toggle input:checked + .cookie-toggle__ui::after {
  transform: translateX(18px);
}

.cookie-toggle--locked {
  cursor: not-allowed;
  opacity: 0.85;
}

.cookie-toggle--locked .cookie-toggle__ui {
  background: rgba(217, 167, 93, 0.45);
}

@media (max-width: 520px) {
  .dogma-cookie-consent {
    justify-content: flex-end;
    gap: 14px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .dogma-cookie-consent__logo {
    width: clamp(108px, 32vw, 140px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dogma-cookie-consent__logo,
  .dogma-cookie-consent__scatter-core {
    animation: none;
  }

  .dogma-cookie-consent__brand,
  .dogma-cookie-consent__panel,
  .dogma-cookie-consent__backdrop,
  .dogma-cookie-consent__btn {
    transition-duration: 0.01ms;
  }
}
