/* Baner zgód zgodny z komponentem używanym na stronie Restart Energii. */

#m20-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 0 20px 20px;
  pointer-events: none;
}

#m20-consent .m20-consent__card {
  width: 100%;
  max-width: 768px;
  padding: 24px;
  border: 1px solid oklch(0.96 0.01 75 / 0.12);
  border-radius: 16px;
  background: oklch(0.17 0.012 45);
  color: oklch(0.96 0.012 75);
  box-shadow: 0 24px 64px oklch(0.08 0.01 35 / 0.56);
  font-family: var(--font-body, system-ui, sans-serif);
  pointer-events: auto;
}

#m20-consent .m20-consent__title {
  margin: 0;
  color: oklch(0.96 0.012 75);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

#m20-consent .m20-consent__text {
  margin: 8px 0 0;
  color: oklch(0.88 0.012 75 / 0.78);
  font-size: 0.875rem;
  line-height: 1.55;
}

#m20-consent .m20-consent__text a {
  color: inherit;
  text-decoration-color: oklch(0.72 0.17 55);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#m20-consent .m20-consent__text a:hover {
  color: oklch(0.83 0.12 60);
}

#m20-consent .m20-consent__settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid oklch(0.96 0.01 75 / 0.1);
  border-radius: 12px;
  background: oklch(0.96 0.01 75 / 0.05);
}

#m20-consent .m20-consent__settings[hidden],
#m20-consent [hidden] {
  display: none;
}

#m20-consent .m20-consent__opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: oklch(0.9 0.01 75 / 0.84);
  font-size: 0.875rem;
  line-height: 1.5;
}

#m20-consent .m20-consent__opt.is-locked {
  opacity: 0.58;
}

#m20-consent .m20-consent__opt input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: oklch(0.72 0.17 55);
  flex: 0 0 auto;
}

#m20-consent .m20-consent__opt b {
  color: oklch(0.96 0.012 75);
  font-weight: 600;
}

#m20-consent .m20-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

#m20-consent .m20-consent__btn {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid oklch(0.96 0.01 75 / 0.22);
  border-radius: 999px;
  background: transparent;
  color: oklch(0.96 0.012 75 / 0.86);
  font: 500 0.875rem/1.2 var(--font-body, system-ui, sans-serif);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms cubic-bezier(.16, 1, .3, 1), border-color 180ms cubic-bezier(.16, 1, .3, 1), color 180ms cubic-bezier(.16, 1, .3, 1);
}

#m20-consent .m20-consent__btn:hover {
  border-color: oklch(0.96 0.01 75 / 0.42);
  color: oklch(0.98 0.008 75);
  background: oklch(0.96 0.01 75 / 0.06);
}

#m20-consent .m20-consent__btn:focus-visible,
#m20-consent .m20-consent__text a:focus-visible,
#m20-consent .m20-consent__opt input:focus-visible {
  outline: 2px solid oklch(0.8 0.13 60);
  outline-offset: 3px;
}

#m20-consent .m20-consent__btn--primary {
  border-color: oklch(0.72 0.17 55);
  background: oklch(0.72 0.17 55);
  color: oklch(0.17 0.012 45);
  font-weight: 700;
}

#m20-consent .m20-consent__btn--primary:hover {
  border-color: oklch(0.66 0.18 50);
  background: oklch(0.66 0.18 50);
  color: oklch(0.14 0.01 45);
}

@media (max-width: 640px) {
  #m20-consent {
    padding: 0 12px 12px;
  }

  #m20-consent .m20-consent__card {
    max-height: calc(100dvh - 24px);
    padding: 20px;
    overflow-y: auto;
  }

  #m20-consent .m20-consent__actions {
    flex-direction: column;
  }

  #m20-consent .m20-consent__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #m20-consent .m20-consent__btn {
    transition: none;
  }
}
