.enotia-consent {
  position: fixed;
  z-index: 10000;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  width: min(34rem, calc(100vw - 1.5rem));
  padding: 0.8rem 0.9rem;
  color: #f8fafc;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.55rem;
  box-shadow: 0 0.55rem 1.5rem rgba(15, 23, 42, 0.24);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.enotia-consent__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.enotia-consent__title {
  margin: 0;
  color: #ffffff;
  font-family: "Instrument Sans", "DM Sans", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
}

.enotia-consent__copy {
  margin: 0.28rem 0 0;
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.4;
}

.enotia-consent__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.enotia-consent__button,
.enotia-consent__close {
  min-height: 2.15rem;
  border-radius: 0.4rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
}

.enotia-consent__button {
  min-width: 7.2rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: transparent;
}

.enotia-consent__button--allow {
  border-color: #d4991d;
  color: #0f172a;
  background: #e6b23e;
}

.enotia-consent__button:hover {
  border-color: #ffffff;
}

.enotia-consent__button--allow:hover {
  border-color: #f5c762;
  background: #f5c762;
}

.enotia-consent__link {
  padding: 0.35rem 0.25rem;
  color: #f5c762;
  font-size: 0.76rem;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.enotia-consent__close {
  flex: 0 0 auto;
  width: 2.15rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
}

.enotia-consent__button:focus-visible,
.enotia-consent__link:focus-visible,
.enotia-consent__close:focus-visible,
.enotia-privacy-choice:focus-visible {
  outline: 3px solid #f5c762;
  outline-offset: 3px;
}

.enotia-privacy-choice {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.enotia-privacy-choice:hover {
  color: var(--accent, #d4991d);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 40rem) {
  .enotia-consent {
    right: max(0.5rem, env(safe-area-inset-right));
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1rem);
    padding: 0.72rem 0.78rem;
  }

  .enotia-consent__actions {
    align-items: stretch;
  }

  .enotia-consent__button {
    flex: 1 1 7.2rem;
  }

  .enotia-consent__link {
    flex: 1 0 100%;
    text-align: center;
  }
}

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