#wisnia-cookie-consent[hidden],
#wcc-modal[hidden] { display: none !important; }

.wcc-open { overflow: hidden; }

.wcc {
  position: fixed;
  left: 16px;
  right: 16px;
  z-index: 99999;
  font-family: inherit;
}

.wcc--bottom { bottom: 16px; }
.wcc--top { top: 16px; }

.wcc__panel {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  color: #222;
  border: 1px solid #ead7de;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
  padding: 22px;
}

.wcc__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.wcc__text,
.wcc__policy {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.wcc__policy a { color: #d3003f; text-decoration: underline; }

.wcc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.wcc__btn {
  appearance: none;
  border: 1px solid #d3003f;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  background: #fff;
  color: #d3003f;
}

.wcc__btn--primary {
  background: #d3003f;
  color: #fff;
}

.wcc__btn--secondary {
  background: #fff4f7;
  color: #d3003f;
}

.wcc__btn--ghost {
  background: #fff;
  color: #222;
  border-color: #d7c2c9;
}

.wcc-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.wcc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.48);
}

.wcc-modal__dialog {
  position: relative;
  max-width: 720px;
  margin: 7vh auto 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  overflow: hidden;
}

.wcc-modal__header,
.wcc-modal__footer {
  padding: 18px 22px;
  border-bottom: 1px solid #f1e5e9;
}

.wcc-modal__footer {
  border-bottom: 0;
  border-top: 1px solid #f1e5e9;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.wcc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wcc-modal__header h3 {
  margin: 0;
  font-size: 22px;
}

.wcc-modal__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wcc-modal__body {
  padding: 22px;
}

.wcc-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f3eaed;
}

.wcc-cat:last-child { border-bottom: 0; }
.wcc-cat p { margin: 6px 0 0; color: #555; line-height: 1.6; }

.wcc-switch {
  position: relative;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
}

.wcc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wcc-switch span {
  position: absolute;
  inset: 0;
  background: #d8d8d8;
  border-radius: 999px;
  transition: .2s ease;
}

.wcc-switch span::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: .2s ease;
}

.wcc-switch input:checked + span { background: #d3003f; }
.wcc-switch input:checked + span::before { transform: translateX(24px); }

@media (max-width: 700px) {
  .wcc { left: 10px; right: 10px; }
  .wcc__panel,
  .wcc-modal__dialog { border-radius: 14px; }
  .wcc__actions,
  .wcc-modal__footer { justify-content: stretch; }
  .wcc__btn { width: 100%; }
  .wcc-cat { align-items: flex-start; }
}
