.dmb-cookie-consent {
  --cookie-navy: #061a3d;
  --cookie-blue: #0a2b59;
  --cookie-gold: #c58a24;
  --cookie-cream: #fffaf0;
  position: fixed;
  z-index: 9999;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  left: clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  width: min(1160px, calc(100% - clamp(2rem, 6vw, 5rem)));
  margin-inline: auto;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  color: #fff;
  background:
    radial-gradient(circle at 8% 15%, rgba(197, 138, 36, .18), transparent 28%),
    linear-gradient(135deg, var(--cookie-blue), var(--cookie-navy) 66%);
  border: 1px solid rgba(226, 181, 91, .62);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(2, 13, 35, .38);
}

.dmb-cookie-consent::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}

.dmb-cookie-copy,
.dmb-cookie-actions {
  position: relative;
  z-index: 1;
}

.dmb-cookie-eyebrow {
  display: block;
  margin-bottom: .4rem;
  color: #e4b75d;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.dmb-cookie-consent h2 {
  margin: 0 0 .45rem;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.dmb-cookie-consent p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1rem;
  line-height: 1.6;
}

.dmb-cookie-consent a {
  color: #f0c876;
  font-weight: 700;
  text-underline-offset: .2em;
}

.dmb-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: .75rem;
}

.dmb-cookie-button {
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.dmb-cookie-button:hover {
  transform: translateY(-2px);
}

.dmb-cookie-button:focus-visible,
.dmb-cookie-preferences:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.dmb-cookie-reject {
  color: #fff;
  background: transparent;
}

.dmb-cookie-reject:hover {
  border-color: #f0c876;
  background: rgba(255, 255, 255, .07);
}

.dmb-cookie-accept {
  color: var(--cookie-navy);
  background: linear-gradient(135deg, #e6bb63, var(--cookie-gold));
  border-color: var(--cookie-gold);
  box-shadow: 0 8px 22px rgba(197, 138, 36, .26);
}

.dmb-cookie-preferences {
  position: fixed;
  z-index: 9998;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .55rem .8rem;
  color: #fff;
  background: #061a3d;
  border: 1px solid rgba(197, 138, 36, .78);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(2, 13, 35, .24);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

body:has(.dmb-cookie-consent) .back-to-top {
  bottom: clamp(12rem, 24vw, 15rem);
}

@media (max-width: 780px) {
  .dmb-cookie-consent {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 17px;
  }

  .dmb-cookie-actions {
    width: 100%;
  }

  .dmb-cookie-button {
    min-width: 0;
  }

  body:has(.dmb-cookie-consent) .back-to-top {
    bottom: 19rem;
  }
}

@media (max-width: 430px) {
  .dmb-cookie-consent {
    right: .65rem;
    bottom: .65rem;
    left: .65rem;
    width: calc(100% - 1.3rem);
  }

  .dmb-cookie-consent p {
    font-size: .94rem;
    line-height: 1.5;
  }

  .dmb-cookie-actions {
    grid-template-columns: 1fr;
  }

  body:has(.dmb-cookie-consent) .back-to-top {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dmb-cookie-button {
    transition: none;
  }
}
