/* ==========================================================================
   Webdylaj — Cookie Consent Wall
   Strictly black & white. Blocking overlay: no page access without a choice.
   ========================================================================== */

.wd-cc,
.wd-cc *,
.wd-cc *::before,
.wd-cc *::after {
  box-sizing: border-box;
}

/* --- Page lock: nothing behind the wall is reachable ---------------------- */
html.wd-cc-lock,
body.wd-cc-lock {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
  overscroll-behavior: none;
}

/* --- Overlay -------------------------------------------------------------- */
.wd-cc {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
  background-image:
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  color: #000;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: wd-cc-fade 0.35s ease both;
}

/* crumb texture stays subtle */
.wd-cc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  pointer-events: none;
}

@keyframes wd-cc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Card ----------------------------------------------------------------- */
.wd-cc__card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 48px 48px 40px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 14px 14px 0 0 #fff, 14px 14px 0 2px #000;
  animation: wd-cc-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wd-cc-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* --- Logo ----------------------------------------------------------------- */
.wd-cc__logo {
  display: block;
  height: 44px;
  width: auto;
  margin: 0 0 32px;
  filter: grayscale(1) contrast(1.4);
}

/* --- Type ----------------------------------------------------------------- */
.wd-cc__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.wd-cc__text {
  margin: 0 0 32px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
}

.wd-cc__text strong { font-weight: 600; }

/* --- Actions -------------------------------------------------------------- */
.wd-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.wd-cc__btn {
  flex: 1 1 auto;
  min-width: 150px;
  padding: 15px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wd-cc__btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

.wd-cc__btn:active { transform: translateY(0); }

.wd-cc__btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* Accept — same weight of choice, inverted fill */
.wd-cc__btn--solid {
  background: #000;
  color: #fff;
}

.wd-cc__btn--solid:hover {
  background: #fff;
  color: #000;
}

/* Settings — tertiary, still black & white */
.wd-cc__btn--quiet {
  flex: 0 1 auto;
  min-width: 0;
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wd-cc__btn--quiet:hover {
  background: transparent;
  color: #000;
  border-color: #000;
  text-decoration: none;
  transform: none;
}

/* --- Footer links --------------------------------------------------------- */
.wd-cc__links {
  display: flex;
  gap: 20px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #000;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wd-cc__links a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 1px;
}

.wd-cc__links a:hover { border-bottom-color: transparent; }

/* --- Settings panel ------------------------------------------------------- */
.wd-cc__panel {
  margin: 0 0 28px;
  border-top: 1px solid #000;
}

.wd-cc__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #000;
}

.wd-cc__row h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.wd-cc__row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

/* B/W switch */
.wd-cc__switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 28px;
  border: 2px solid #000;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wd-cc__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #000;
  transition: transform 0.2s ease, background 0.2s ease;
}

.wd-cc__switch[aria-checked="true"] { background: #000; }
.wd-cc__switch[aria-checked="true"]::after {
  background: #fff;
  transform: translateX(24px);
}

.wd-cc__switch[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

/* --- Mobile --------------------------------------------------------------- */
@media (max-width: 600px) {
  .wd-cc { padding: 16px; }

  .wd-cc__card {
    padding: 32px 24px 28px;
    box-shadow: 8px 8px 0 0 #fff, 8px 8px 0 2px #000;
  }

  .wd-cc__logo { height: 34px; margin-bottom: 24px; }

  .wd-cc__actions { flex-direction: column; }

  .wd-cc__btn { width: 100%; min-width: 0; }
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wd-cc,
  .wd-cc__card { animation: none; }

  .wd-cc__btn { transition: none; }
  .wd-cc__btn:hover { transform: none; }
}
