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

/* ISE consent card — bottom-right corner, violet brand, non-blocking. */
.eksneks-consent-modal {
  position: fixed;
  inset: auto 0 0 auto;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(0.85rem, 2vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Corner card is non-blocking: the page stays usable. */
.orca-consent-decision-required,
.eksneks-consent-gate-active {
  overflow: visible;
}

/* Only a mandatory gate locks scroll and hides the page behind the dim. */
body.orca-consent-decision-required:has(.eksneks-consent-modal.is-mandatory),
body.eksneks-consent-gate-active:has(.eksneks-consent-modal.is-mandatory) {
  overflow: hidden;
}

body.orca-consent-decision-required:has(.eksneks-consent-modal.is-mandatory) > :not(#eksneks-consent-modal):not(script):not(style),
body.eksneks-consent-gate-active:has(.eksneks-consent-modal.is-mandatory) > :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: none; /* let the page breathe; only the card catches clicks */
}

/* Mandatory state covers the whole viewport with a dim backdrop. */
.eksneks-consent-modal.is-mandatory {
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(33, 16, 71, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.22s ease, visibility 0.22s ease, background-color 0.22s ease;
}

.eksneks-consent-modal.is-mandatory.is-visible {
  pointer-events: auto;
}

/* The card itself always catches pointer events. */
.eksneks-consent-modal__backdrop {
  display: none;
}

.eksneks-consent-modal__dialog {
  position: relative;
  pointer-events: auto;
  width: min(100%, 24rem);
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border: 1px solid rgba(108, 59, 255, 0.18);
  border-radius: 1.25rem;
  background: #ffffff;
  color: #2a1958;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 48px rgba(91, 33, 182, 0.28),
    0 4px 14px rgba(33, 16, 71, 0.12);
  font-family: Manrope, Arial, sans-serif;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  opacity: 0;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.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);
}

/* Violet top accent bar on the card. */
.eksneks-consent-modal__dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6C3BFF, #5B21B6);
}

.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(108, 59, 255, 0.18);
  border-radius: 999px;
  background: #f4f0ff;
  color: #5B21B6;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

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

@media (hover: hover) {
  .eksneks-consent-modal__close:hover {
    background: #ebe3ff;
    color: #4c1d95;
  }
}

.eksneks-consent-modal__close:focus-visible {
  outline: 3px solid rgba(108, 59, 255, 0.32);
  outline-offset: 2px;
}

.eksneks-consent-modal__eyebrow {
  margin: 0 0 0.5rem;
  color: #6C3BFF;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eksneks-consent-modal__title {
  margin: 0;
  color: #2a1958;
  font-family: Syne, Arial, sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.15;
}

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

.eksneks-consent-modal__link {
  display: inline-flex;
  margin-top: 0.7rem;
  color: #5B21B6;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}

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

.eksneks-consent-modal__link:focus-visible {
  outline: 3px solid rgba(108, 59, 255, 0.32);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.eksneks-consent-modal__button {
  width: 100%;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

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

.eksneks-consent-modal__button:focus-visible {
  outline: 3px solid rgba(108, 59, 255, 0.32);
  outline-offset: 2px;
}

.eksneks-consent-modal__button--primary {
  border: 2px solid transparent;
  background: linear-gradient(135deg, #6C3BFF, #5B21B6);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(91, 33, 182, 0.32);
}

@media (hover: hover) {
  .eksneks-consent-modal__button--primary:hover {
    background: linear-gradient(135deg, #5B21B6, #4c1d95);
  }
}

.eksneks-consent-modal__button--secondary {
  border: 1.5px solid rgba(108, 59, 255, 0.32);
  background: #ffffff;
  color: #5B21B6;
}

@media (hover: hover) {
  .eksneks-consent-modal__button--secondary:hover {
    background: #f4f0ff;
    border-color: rgba(108, 59, 255, 0.5);
  }
}

.eksneks-privacy-settings {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 99990;
  width: 3.5rem; height: 3.5rem; padding: 0; border: 0; border-radius: 1.25rem;
  background: linear-gradient(135deg, #6C3BFF, #5B21B6); color: #fff;
  box-shadow: 0 10px 26px rgba(91, 33, 182, 0.45);
  font-size: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.eksneks-privacy-settings::before { content: "🛡"; font-size: 1.5rem; line-height: 1; }
.eksneks-privacy-settings:active { transform: scale(0.97); }
@media (hover: hover) {
  .eksneks-privacy-settings:hover {
    transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(91, 33, 182, 0.55);
  }
}
.eksneks-privacy-settings:focus-visible {
  outline: 3px solid rgba(108, 59, 255, 0.4); outline-offset: 3px;
}

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

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

.eksneks-consent-required button {
  padding: 0.7rem 1rem;
  border: 2px solid #5B21B6;
  border-radius: 999px;
  background: linear-gradient(135deg, #6C3BFF, #5B21B6);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

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

@media (hover: hover) {
  .eksneks-consent-required button:hover {
    background: #4c1d95;
  }
}

.eksneks-consent-required button:focus-visible {
  outline: 3px solid rgba(108, 59, 255, 0.32);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .eksneks-consent-modal {
    inset: auto 0 0 0;
    justify-content: center;
    padding: 0.6rem;
  }

  .eksneks-consent-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 1.2rem);
    overflow-y: auto;
    border-radius: 1.1rem;
    transform-origin: bottom center;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

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

@media (prefers-reduced-motion: reduce) {
  .eksneks-consent-modal,
  .eksneks-consent-modal__dialog,
  .eksneks-consent-modal.is-visible .eksneks-consent-modal__dialog {
    transition-property: opacity;
    transition-duration: 0.15s;
    transition-timing-function: ease;
    transform: none;
  }

  .eksneks-consent-modal__dialog {
    opacity: 0;
  }

  .eksneks-consent-modal.is-visible .eksneks-consent-modal__dialog {
    transform: none;
    opacity: 1;
  }

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