.vdw-cookie {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10010;
  width: min(420px, calc(100vw - 32px));
  color: var(--ink);
  font-family: var(--sans);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}

/* Cursor inheritance: let global html.custom-cursor-ready { cursor: none } cascade down.
   Only declare explicit cursors for truly interactive elements. */
.vdw-cookie button,
.vdw-cookie a,
.vdw-cookie label,
.vdw-cookie .vdw-cookie__switch,
.vdw-cookie .vdw-cookie__btn { cursor: pointer; }
.vdw-cookie input[type="text"],
.vdw-cookie input[type="email"],
.vdw-cookie input[type="tel"],
.vdw-cookie textarea { cursor: text; }
.vdw-cookie input[type="checkbox"] { cursor: pointer; }

.vdw-cookie.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vdw-cookie__panel {
  border: 1px solid rgba(184, 150, 12, 0.28);
  border-radius: 10px;
  background: rgba(249, 248, 246, 0.96);
  box-shadow: 0 24px 70px rgba(15, 28, 22, 0.22);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.vdw-cookie__top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 18px 14px;
}

.vdw-cookie__mark {
  position: relative;
  isolation: isolate;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 150, 0.7);
  background:
    radial-gradient(circle at 36% 32%, #fff2b8 0%, var(--gold-light) 26%, var(--gold) 56%, #8d6506 100%);
  box-shadow:
    0 0 0 5px rgba(212, 174, 48, 0.08),
    0 0 22px rgba(212, 174, 48, 0.42),
    0 10px 24px rgba(107, 75, 5, 0.22);
  animation: cookieOrbPulse 4.8s ease-in-out infinite;
  overflow: hidden;
}

.vdw-cookie__mark::before,
.vdw-cookie__mark::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.vdw-cookie__mark::before {
  inset: -45%;
  z-index: -1;
  background: conic-gradient(from 110deg, transparent 0 32%, rgba(255, 245, 190, 0.75) 43%, transparent 55% 100%);
  animation: cookieOrbSheen 5.6s linear infinite;
}

.vdw-cookie__mark::after {
  display: none;
}

@keyframes cookieOrbPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 5px rgba(212, 174, 48, 0.08),
      0 0 22px rgba(212, 174, 48, 0.42),
      0 10px 24px rgba(107, 75, 5, 0.22);
  }
  50% {
    transform: translateY(-2px) scale(1.035);
    box-shadow:
      0 0 0 8px rgba(212, 174, 48, 0.10),
      0 0 34px rgba(255, 219, 102, 0.58),
      0 14px 30px rgba(107, 75, 5, 0.26);
  }
}

@keyframes cookieOrbSheen {
  to { transform: rotate(360deg); }
}

.vdw-cookie__eyebrow {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.vdw-cookie h2 {
  margin: 0 0 8px;
  color: var(--jungle);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.05;
}

.vdw-cookie p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.vdw-cookie a {
  color: var(--gold);
  border-bottom: 1px solid rgba(184, 150, 12, 0.38);
}

.vdw-cookie__prefs {
  display: none;
  padding: 0 18px 4px 65px;
}

.vdw-cookie.is-customizing .vdw-cookie__prefs {
  display: grid;
  gap: 10px;
}

.vdw-cookie__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(184, 150, 12, 0.14);
  padding-top: 10px;
}

.vdw-cookie__option strong {
  display: block;
  color: var(--jungle);
  font-size: 14px;
  line-height: 1.4;
}

.vdw-cookie__option span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.vdw-cookie__switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}

.vdw-cookie__switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.vdw-cookie__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(26, 46, 37, 0.18);
  transition: background 220ms var(--ease);
}

.vdw-cookie__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 28, 22, 0.2);
  transition: transform 220ms var(--ease);
}

.vdw-cookie__switch input:checked + .vdw-cookie__slider {
  background: var(--gold);
}

.vdw-cookie__switch input:checked + .vdw-cookie__slider::after {
  transform: translateX(20px);
}

.vdw-cookie__switch input:disabled + .vdw-cookie__slider {
  background: rgba(26, 46, 37, 0.3);
}

.vdw-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  padding: 14px 18px 18px;
}

.vdw-cookie__btn {
  min-height: 38px;
  border: 1px solid rgba(26, 46, 37, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--jungle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color 220ms var(--ease), color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.vdw-cookie__btn:hover,
.vdw-cookie__btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.vdw-cookie__btn--primary {
  border-color: var(--jungle);
  background: var(--jungle);
  color: var(--oyster);
}

.vdw-cookie__btn--primary:hover,
.vdw-cookie__btn--primary:focus-visible {
  border-color: var(--gold);
  background: var(--jungle-deep);
  color: var(--gold-light);
}

.vdw-cookie__btn:focus-visible,
.vdw-cookie__switch input:focus-visible + .vdw-cookie__slider {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .vdw-cookie {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .vdw-cookie__top {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .vdw-cookie__mark {
    width: 32px;
    height: 32px;
  }

  .vdw-cookie__prefs {
    padding-left: 18px;
  }

  .vdw-cookie__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vdw-cookie__mark,
  .vdw-cookie__mark::before {
    animation: none !important;
  }
}
