#orca-consent-modal,
.orca-consent-modal {
  display: none !important;
}

/* ----------------------------------------------------------------------------
   EKSIT-IS consent — bottom-left corner card, sky brand (#0ea5e9 / #0369a1)
   Non-blocking by default; only .is-mandatory dims the page behind it.
---------------------------------------------------------------------------- */

.eksneks-consent-modal {
  position: fixed;
  inset: auto auto clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.75rem);
  z-index: 100000;
  display: block;
  width: min(100% - 2rem, 24rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Page lock only applies while a decision is mandatory. */
.orca-consent-decision-required,
.eksneks-consent-gate-active {
  overflow: hidden;
}

body.orca-consent-decision-required > :not(#eksneks-consent-modal):not(script):not(style),
body.eksneks-consent-gate-active > :not(#eksneks-consent-modal):not(script):not(style) {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.eksneks-consent-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Dim backdrop ONLY when a decision is mandatory. */
.eksneks-consent-modal.is-mandatory::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(8, 47, 73, 0.62);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.eksneks-consent-modal.is-mandatory.is-visible::before {
  opacity: 1;
}

.eksneks-consent-modal__dialog {
  position: relative;
  width: 100%;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border: 1px solid rgba(3, 105, 161, 0.14);
  border-top: 3px solid #0ea5e9;
  border-radius: 1rem;
  background: #ffffff;
  color: #0f2436;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 44px -12px rgba(3, 105, 161, 0.4),
    0 4px 14px rgba(8, 47, 73, 0.12);
  font-family: Manrope, Arial, sans-serif;

  /* Exit (default state): faster collapse toward the bottom-left corner. */
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom left;
  opacity: 0;
  transition:
    transform 0.15s ease-in,
    opacity 0.15s ease-in;
  will-change: transform, opacity;
}

/* Enter: smooth ease-out spring. */
.eksneks-consent-modal.is-visible .eksneks-consent-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition:
    transform 0.22s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.eksneks-consent-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(3, 105, 161, 0.16);
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

@media (hover: hover) {
  .eksneks-consent-modal__close:hover {
    background: #e0f2fe;
    color: #075985;
  }
}

.eksneks-consent-modal__close:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.4);
  outline-offset: 2px;
}

.eksneks-consent-modal__eyebrow {
  margin: 0 0 0.5rem;
  padding-right: 2rem;
  color: #0ea5e9;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eksneks-consent-modal__title {
  margin: 0;
  color: #082f49;
  font-family: Syne, Arial, sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.15;
}

.eksneks-consent-modal__description {
  margin: 0.6rem 0 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.6;
}

.eksneks-consent-modal__link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

@media (hover: hover) {
  .eksneks-consent-modal__link:hover {
    color: #075985;
  }
}

.eksneks-consent-modal__link:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

.eksneks-consent-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.eksneks-consent-modal__button {
  width: 100%;
  padding: 0.78rem 1.1rem;
  border-radius: 0.7rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.eksneks-consent-modal__button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.eksneks-consent-modal__button:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.4);
  outline-offset: 2px;
}

.eksneks-consent-modal__button:active {
  transform: scale(0.97);
}

.eksneks-consent-modal__button--primary {
  border: 2px solid #0ea5e9;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(3, 105, 161, 0.6);
}

@media (hover: hover) {
  .eksneks-consent-modal__button--primary:hover {
    opacity: 0.92;
  }
}

.eksneks-consent-modal__button--secondary {
  border: 2px solid rgba(3, 105, 161, 0.2);
  background: #f8fafc;
  color: #0369a1;
}

@media (hover: hover) {
  .eksneks-consent-modal__button--secondary:hover {
    background: #f0f9ff;
  }
}

/* Floating launcher — bottom-left to match the card corner. */
.eksneks-privacy-settings {
  position: fixed;
  left: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(3, 105, 161, 0.55);
  font: 800 0.78rem/1.2 Manrope, Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.eksneks-privacy-settings::before {
  content: "🍪";
  font-size: 1rem;
  line-height: 1;
}

@media (hover: hover) {
  .eksneks-privacy-settings:hover {
    transform: translateY(-2px);
    opacity: 0.94;
  }
}

.eksneks-privacy-settings:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.45);
  outline-offset: 3px;
}

.eksneks-privacy-settings:active {
  transform: scale(0.97);
}

.eksneks-consent-required {
  margin: 1rem 0;
  padding: 1rem;
  border: 2px solid #0ea5e9;
  border-radius: 0.75rem;
  background: #f0f9ff;
  color: #082f49;
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.5;
}

.eksneks-consent-required p {
  margin: 0.4rem 0 0.8rem;
  color: #0c4a6e;
}

.eksneks-consent-required button {
  padding: 0.7rem 1rem;
  border: 2px solid #0369a1;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) {
  .eksneks-consent-required button:hover {
    opacity: 0.92;
  }
}

.eksneks-consent-required button:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.4);
  outline-offset: 2px;
}

.eksneks-consent-required button:active {
  transform: scale(0.97);
}

/* Small screens: card spans the width above the launcher, still corner-anchored. */
@media (max-width: 480px) {
  .eksneks-consent-modal {
    inset: auto 0.75rem 0.75rem 0.75rem;
    width: auto;
  }

  .eksneks-consent-modal__dialog {
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .eksneks-privacy-settings {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

/* Respect reduced-motion: fade only, no transform/scale travel. */
@media (prefers-reduced-motion: reduce) {
  .eksneks-consent-modal,
  .eksneks-consent-modal__dialog,
  .eksneks-consent-modal.is-visible .eksneks-consent-modal__dialog {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none;
  }

  .eksneks-consent-modal__button:active,
  .eksneks-privacy-settings:active,
  .eksneks-privacy-settings:hover,
  .eksneks-consent-required button:active {
    transform: none;
  }
}
