:root {
  --duv-bg: rgba(18, 19, 14, 0.86);
  --duv-bg-strong: #161810;
  --duv-panel: rgba(255, 248, 236, 0.08);
  --duv-panel-2: rgba(255, 248, 236, 0.12);
  --duv-border: rgba(237, 223, 196, 0.22);
  --duv-text: #fffaf1;
  --duv-muted: rgba(255, 248, 236, 0.78);
  --duv-gold: #e5c88e;
  --duv-gold-2: #d7b778;
  --duv-dark-text: #2d2415;
}

.duv-cookie,
.duv-cookie * {
  box-sizing: border-box;
}

.duv-cookie[hidden],
.duv-cookie-modal[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.duv-cookie button,
.duv-cookie-modal button,
.duv-cookie input,
.duv-cookie-modal input {
  font-family: inherit;
}

.duv-cookie-modal__panel,
.duv-cookie-modal__panel * {
  color-scheme: dark;
}


.duv-cookie {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99998;
  padding: 18px;
  pointer-events: none;
}

.duv-cookie[data-position="bottom"] { bottom: 0; }
.duv-cookie[data-position="top"] { top: 0; }

.duv-cookie__inner {
  width: min(100%, 2048px);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 30px;
  color: var(--duv-text);
  background:
    linear-gradient(90deg, rgba(9, 13, 8, 0.92) 0%, rgba(17, 20, 13, 0.9) 54%, rgba(93, 67, 36, 0.72) 100%),
    radial-gradient(circle at right center, rgba(229, 200, 142, 0.14), transparent 28%);
  border: 1px solid var(--duv-border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.duv-cookie__content {
  max-width: 950px;
}

.duv-cookie__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: rgba(229, 200, 142, 0.96);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.duv-cookie__eyebrow span {
  display: inline-block;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: rgba(229, 200, 142, 0.85);
}

.duv-cookie__title {
  margin: 0 0 10px;
  color: var(--duv-text);
  font-size: clamp(24px, 2.2vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.duv-cookie__text {
  margin: 0;
  color: var(--duv-muted);
  font-size: 16px;
  line-height: 1.6;
}

.duv-cookie__link {
  color: var(--duv-gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.duv-cookie__actions,
.duv-cookie-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.duv-cookie__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 18px 28px;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}

.duv-cookie__btn:hover {
  transform: translateY(-1px);
}

.duv-cookie__btn--ghost,
.duv-cookie__btn--soft {
  color: var(--duv-text);
  background: rgba(255, 248, 236, 0.1);
  border-color: rgba(255, 248, 236, 0.08);
}

.duv-cookie__btn--ghost:hover,
.duv-cookie__btn--soft:hover {
  background: rgba(255, 248, 236, 0.16);
  border-color: rgba(255, 248, 236, 0.16);
}

.duv-cookie__btn--primary {
  color: var(--duv-dark-text);
  background: linear-gradient(135deg, var(--duv-gold), var(--duv-gold-2));
  box-shadow: 0 14px 30px rgba(229, 200, 142, 0.2);
}

.duv-cookie__btn--primary:hover {
  box-shadow: 0 16px 36px rgba(229, 200, 142, 0.28);
}

.duv-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.duv-cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 7, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.duv-cookie-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 32px;
  color: var(--duv-text);
  background:
    linear-gradient(135deg, rgba(18, 19, 14, 0.98), rgba(52, 40, 27, 0.94)),
    radial-gradient(circle at top right, rgba(229, 200, 142, 0.12), transparent 26%);
  border: 1px solid var(--duv-border);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.duv-cookie-modal__close {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 248, 236, 0.1);
  border-radius: 50%;
  color: var(--duv-text) !important;
  background: rgba(255, 248, 236, 0.08) !important;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.duv-cookie-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--duv-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.duv-cookie-modal__title {
  margin: 0 50px 12px 0;
  color: var(--duv-text) !important;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.duv-cookie-modal__lead {
  margin: 0 0 22px;
  color: var(--duv-muted);
  font-size: 16px;
  line-height: 1.65;
}

.duv-cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid rgba(255, 248, 236, 0.1);
  border-radius: 22px;
}

.duv-cookie-option strong {
  display: block;
  color: var(--duv-text) !important;
  margin-bottom: 6px;
  font-size: 17px;
}

.duv-cookie-option p {
  margin: 0;
  color: var(--duv-muted);
  font-size: 14px;
  line-height: 1.5;
}

.duv-cookie-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.duv-cookie-switch {
  position: relative;
  width: 60px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.18);
  flex: 0 0 auto;
  transition: background .18s ease;
}

.duv-cookie-switch span {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--duv-text);
  transition: transform .18s ease;
}

.duv-cookie-option input:checked + .duv-cookie-switch,
.duv-cookie-switch--on {
  background: linear-gradient(135deg, var(--duv-gold), var(--duv-gold-2));
}

.duv-cookie-option input:checked + .duv-cookie-switch span,
.duv-cookie-switch--on span {
  transform: translateX(26px);
}

.duv-cookie-modal__actions {
  margin-top: 22px;
}

@media (max-width: 1180px) {
  .duv-cookie__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .duv-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .duv-cookie {
    padding: 12px;
  }

  .duv-cookie__inner {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .duv-cookie__eyebrow {
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .duv-cookie__eyebrow span {
    width: 44px;
  }

  .duv-cookie__title {
    font-size: 22px;
    line-height: 1.05;
  }

  .duv-cookie__text {
    font-size: 15px;
  }

  .duv-cookie__actions,
  .duv-cookie-modal__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .duv-cookie__btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .duv-cookie-modal__panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .duv-cookie-modal__title {
    margin-right: 48px;
    font-size: 26px;
  }

  .duv-cookie-option {
    grid-template-columns: 1fr;
  }
}
