/* Kasumi – baner zgód (Consent Mode v2). Paleta: czerń/biel/złoto (#b8965e). */
.kasumi-consent {
  position: fixed;
  z-index: 2147483000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.kasumi-consent[hidden] { display: none; }

.kasumi-consent__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 44rem;
  background: #ffffff;
  color: #171717;
  border: 1px solid #ececec;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  padding: 1.5rem;
  font-family: inherit;
  animation: kasumi-consent-in 0.28s ease-out both;
}
@keyframes kasumi-consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .kasumi-consent__inner { animation: none; }
}

.kasumi-consent__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.kasumi-consent__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #404040;
}
.kasumi-consent__link {
  color: #a07d45;
  text-decoration: underline;
  white-space: nowrap;
}
.kasumi-consent__link:hover { color: #b8965e; }

.kasumi-consent__prefs {
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 1.1rem;
}
.kasumi-consent__prefs[hidden] { display: none; }
.kasumi-consent__pref {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}
.kasumi-consent__pref input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #b8965e;
  flex: 0 0 auto;
}
.kasumi-consent__pref input:disabled { opacity: 0.6; cursor: not-allowed; }
.kasumi-consent__pref-text { display: flex; flex-direction: column; gap: 0.15rem; }
.kasumi-consent__pref-text strong { font-size: 0.9rem; font-weight: 600; }
.kasumi-consent__pref-text span { font-size: 0.82rem; color: #666; line-height: 1.45; }

.kasumi-consent__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}
.kasumi-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}
.kasumi-consent__btn:focus-visible {
  outline: 2px solid #b8965e;
  outline-offset: 2px;
}
.kasumi-consent__btn[hidden] { display: none; }
.kasumi-consent__btn--ghost {
  background: transparent;
  color: #404040;
  border-color: #d4d4d4;
}
.kasumi-consent__btn--ghost:hover { border-color: #171717; color: #171717; }
.kasumi-consent__btn--accept,
.kasumi-consent__btn--save {
  background: #b8965e;
  color: #ffffff;
}
.kasumi-consent__btn--accept:hover,
.kasumi-consent__btn--save:hover { background: #a07d45; }

.kasumi-consent-reopen {
  position: fixed;
  z-index: 2147482000;
  left: 1rem;
  bottom: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid #ececec;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8965e;
}
.kasumi-consent-reopen__icon { display: block; }
.kasumi-consent-reopen[hidden] { display: none; }
.kasumi-consent-reopen:hover { border-color: #b8965e; color: #a07d45; }
.kasumi-consent-reopen:focus-visible { outline: 2px solid #b8965e; outline-offset: 2px; }

@media (max-width: 640px) {
  .kasumi-consent__inner { padding: 1.15rem; border-radius: 0.85rem; }
  .kasumi-consent__actions { justify-content: stretch; }
  .kasumi-consent__btn { flex: 1 1 auto; text-align: center; }
}
