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

/* ============================================================
   EKSIT-IK consent modal — Orca Blue, refined centered modal
   ============================================================ */

.eksneks-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.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;
  transition: opacity 0.22s ease;
}

.eksneks-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

/* Mandatory gate keeps a full, blocking dim backdrop */
.eksneks-consent-modal.is-mandatory .eksneks-consent-modal__backdrop {
  background: rgba(8, 15, 40, 0.9);
  backdrop-filter: blur(10px);
}

.eksneks-consent-modal__dialog {
  position: relative;
  width: min(100%, 30rem);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 1.25rem;
  background:
    radial-gradient(140% 120% at 50% -20%, rgba(37, 99, 235, 0.06) 0%, rgba(255, 255, 255, 0) 60%),
    #ffffff;
  color: #0f172a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 20px 50px -12px rgba(29, 78, 216, 0.32),
    0 6px 16px -8px rgba(15, 23, 42, 0.2);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  text-align: center;
  transform-origin: center;
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.eksneks-consent-modal.is-visible .eksneks-consent-modal__dialog {
  transform: 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);
}

/* Orca accent bar at the top of the card */
.eksneks-consent-modal__dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.25rem;
  height: 0.3rem;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.eksneks-consent-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: #eff4ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.eksneks-consent-modal__close:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.eksneks-consent-modal__eyebrow {
  margin: 0.25rem 0 0.6rem;
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eksneks-consent-modal__title {
  margin: 0;
  color: #0b1b3f;
  font-family: Syne, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.eksneks-consent-modal__description {
  max-width: 28rem;
  margin: 0.85rem auto 0;
  color: #475569;
  font-size: 0.97rem;
  line-height: 1.6;
}

.eksneks-consent-modal__link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
  transition: color 0.15s ease;
}

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

.eksneks-consent-modal__button {
  width: 100%;
  padding: 0.92rem 1.35rem;
  border-radius: 0.85rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s 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(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.eksneks-consent-modal__button--primary {
  order: -1;
  border: 1px solid #1d4ed8;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 22px -10px rgba(29, 78, 216, 0.65);
}

.eksneks-consent-modal__button--secondary {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #f4f7ff;
  color: #1e3a8a;
}

.eksneks-privacy-settings {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99990;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(29, 78, 216, 0.55);
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.eksneks-privacy-settings:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 3px;
}

.eksneks-consent-required {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-left: 4px solid #1d4ed8;
  border-radius: 0.75rem;
  background: #eff4ff;
  color: #0b1b3f;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

.eksneks-consent-required button {
  padding: 0.7rem 1rem;
  border: 1px solid #1d4ed8;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

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

.eksneks-consent-required button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

/* Hover effects only for real pointers */
@media (hover: hover) and (pointer: fine) {
  .eksneks-consent-modal__close:hover {
    background: #dbe6ff;
    color: #1e40af;
  }

  .eksneks-consent-modal__link:hover {
    color: #1e40af;
  }

  .eksneks-consent-modal__button--primary:hover {
    background: linear-gradient(180deg, #1d4ed8, #1e40af);
    border-color: #1e40af;
    box-shadow: 0 14px 28px -10px rgba(29, 78, 216, 0.75);
  }

  .eksneks-consent-modal__button--secondary:hover {
    background: #e6eeff;
    border-color: rgba(37, 99, 235, 0.4);
  }

  .eksneks-privacy-settings:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 36px -8px rgba(29, 78, 216, 0.65);
  }

  .eksneks-consent-required button:hover {
    background: #1e40af;
  }
}

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

  .eksneks-consent-modal__dialog {
    transform: none;
  }

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

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

  .eksneks-privacy-settings:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .eksneks-consent-modal {
    padding: 0.85rem;
    align-items: flex-end;
  }

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

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