.dyr-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  width: min(430px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  border-radius: 16px;
  color: var(--text-1, #f6f4ef);
  background: color-mix(
    in srgb,
    var(--surface-2, #201f1d) 94%,
    transparent
  );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  font-family: var(--font-sans, system-ui, sans-serif);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.dyr-consent[hidden] {
  display: none;
}

.dyr-consent__title {
  padding-right: 38px;
  margin: 0 0 7px;
  color: var(--text-1, #f6f4ef);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.dyr-consent__dismiss {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text-2, #b8b4aa);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.dyr-consent__dismiss svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.dyr-consent__dismiss:hover {
  color: var(--text-1, #f6f4ef);
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.dyr-consent__dismiss:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.dyr-consent__dismiss[hidden] {
  display: none;
}

.dyr-consent__copy {
  padding-right: 38px;
  margin: 0;
  color: var(--text-2, #b8b4aa);
  font-size: 0.79rem;
  line-height: 1.55;
}

.dyr-consent__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dyr-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 170px));
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.dyr-consent__button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--text-1, #f6f4ef);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}

.dyr-consent__button--accept {
  color: #fff;
  background: var(--accent, #e64a32);
}

.dyr-consent__button:focus-visible {
  outline: none;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.dyr-privacy-choice:focus-visible {
  outline: 2px solid var(--accent, #e64a32);
  outline-offset: 3px;
}

.dyr-consent__button[data-consent="denied"] {
  color: #fff;
  background: #111;
}

.dyr-consent__button[data-consent="denied"]:hover {
  background: #2a2a2a;
}

html.dyr-dark .dyr-consent__button[data-consent="denied"] {
  color: #111;
  background: #fff;
}

html.dyr-dark .dyr-consent__button[data-consent="denied"]:hover {
  background: #e7e7e7;
}

.dyr-privacy-choice {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dyr-privacy-choice:hover {
  color: var(--text-1, #f6f4ef);
}

@media (max-width: 520px) {
  .dyr-consent {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 16px;
  }

  .dyr-consent__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dyr-consent,
  .dyr-consent * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
