/* DogDog - styl bannera zgod cookie. Paleta marki:
   purpura #472772, zolty #F3B411, krem #F8F5EB, czerwien #D4343D. */

.ddc-root { position: relative; z-index: 2147483000; }

.ddc-root *,
.ddc-root *::before,
.ddc-root *::after { box-sizing: border-box; }

/* --- Banner (dolny pasek) --- */
.ddc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 1080px;
  background: #ffffff;
  color: #2a2a2a;
  border: 1px solid #ece6f4;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(71, 39, 114, 0.18);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  font-family: 'Open Sans', 'Inter', Arial, sans-serif;
  animation: ddc-rise 0.28s ease-out;
}

@keyframes ddc-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ddc-banner__body { flex: 1 1 420px; min-width: 260px; }

.ddc-banner__title {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 700;
  color: #472772;
  font-family: 'Quicksand', 'Open Sans', sans-serif;
}

.ddc-banner__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a4a4a;
}

.ddc-banner__text a,
.ddc-modal__foot a { color: #472772; text-decoration: underline; }

.ddc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* --- Przyciski --- */
.ddc-btn {
  appearance: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Quicksand', 'Open Sans', sans-serif;
  cursor: pointer;
  line-height: 1.1;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.ddc-btn--primary {
  background: #F3B411;
  color: #472772;
  border-color: #F3B411;
}
.ddc-btn--primary:hover { background: #472772; color: #ffffff; border-color: #472772; }

/* Odrzuc/Dostosuj - tak samo widoczne jak Akceptuj (wymog RODO: rownorzednosc) */
.ddc-btn--ghost {
  background: #ffffff;
  color: #472772;
  border-color: #d9cdee;
}
.ddc-btn--ghost:hover { background: #F8F5EB; border-color: #472772; }

.ddc-btn:focus-visible { outline: 3px solid rgba(243, 180, 17, 0.6); outline-offset: 2px; }

/* --- Modal ustawien --- */
.ddc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 22, 64, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ddc-fade 0.2s ease-out;
}
@keyframes ddc-fade { from { opacity: 0; } to { opacity: 1; } }

.ddc-modal {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 64px rgba(40, 22, 64, 0.35);
  font-family: 'Open Sans', 'Inter', Arial, sans-serif;
}

.ddc-modal__title {
  margin: 0 0 8px 0;
  font-size: 21px;
  font-weight: 700;
  color: #472772;
  font-family: 'Quicksand', 'Open Sans', sans-serif;
}
.ddc-modal__intro { margin: 0 0 18px 0; font-size: 13.5px; line-height: 1.5; color: #4a4a4a; }
.ddc-modal__foot { margin: 16px 0 0 0; font-size: 12px; color: #6a6a6a; }

/* --- Kategoria --- */
.ddc-cat {
  border: 1px solid #ece6f4;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fbfaff;
}
.ddc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ddc-cat__name { font-size: 15px; font-weight: 700; color: #472772; }
.ddc-cat__always { font-size: 12px; font-weight: 700; color: #2d7d46; }
.ddc-cat__desc { margin: 8px 0 0 0; font-size: 12.5px; line-height: 1.45; color: #5a5a5a; }

.ddc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* --- Przelacznik (toggle) --- */
.ddc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.ddc-switch input { opacity: 0; width: 0; height: 0; }
.ddc-switch__slider {
  position: absolute;
  inset: 0;
  background: #cfc6df;
  border-radius: 999px;
  transition: background-color 0.18s ease;
}
.ddc-switch__slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.ddc-switch input:checked + .ddc-switch__slider { background: #472772; }
.ddc-switch input:checked + .ddc-switch__slider::before { transform: translateX(20px); }
.ddc-switch input:focus-visible + .ddc-switch__slider { outline: 3px solid rgba(243, 180, 17, 0.7); outline-offset: 2px; }

/* --- Placeholder formularza MailerLite (gdy brak zgody marketingowej) --- */
.ddc-ml-placeholder {
  border: 1px dashed #d9cdee;
  border-radius: 16px;
  background: #F8F5EB;
  padding: 20px;
  text-align: center;
  max-width: 360px;
  margin: 0 auto;
}
.ddc-ml-placeholder p { margin: 0 0 12px 0; font-size: 13.5px; line-height: 1.5; color: #472772; }

/* --- Link "Ustawienia cookie" w stopce --- */
.ddc-settings-link {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* --- Responsywnosc --- */
@media (max-width: 720px) {
  .ddc-banner { padding: 18px; gap: 14px; }
  .ddc-banner__actions { width: 100%; }
  .ddc-banner__actions .ddc-btn { flex: 1 1 auto; text-align: center; }
  .ddc-modal__actions { justify-content: stretch; }
  .ddc-modal__actions .ddc-btn { flex: 1 1 auto; text-align: center; }
}
