.elf-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10050;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(49, 64, 205, .18), transparent 32%),
    rgba(15, 17, 21, .46);
  backdrop-filter: blur(6px);
  transform: scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, backdrop-filter .22s ease;
}

.elf-cookie-consent.is-visible {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.elf-cookie-consent__inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius-lg, 18px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 248, 255, .98));
  box-shadow: 0 24px 70px rgba(15, 17, 21, .28);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.elf-cookie-consent__content {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.elf-cookie-consent__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(49, 64, 205, .10);
  color: var(--brand, #3140cd);
}

.elf-cookie-consent__icon svg {
  width: 24px;
  height: 24px;
}

.elf-cookie-consent__title {
  display: block;
  color: var(--ink, #141821);
  font-size: 20px;
  line-height: 1.35;
  margin: 0;
}

.elf-cookie-consent__text {
  margin: 0;
  color: var(--muted, #5d6575);
  font-size: 14px;
  line-height: 1.6;
}

.elf-cookie-consent__text a {
  color: var(--brand, #3140cd);
  font-weight: 700;
  text-decoration: none;
}

.elf-cookie-consent__text a:hover {
  text-decoration: underline;
}

.elf-cookie-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.elf-cookie-consent__btn {
  min-height: 46px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid transparent;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.elf-cookie-consent__btn--secondary {
  border-color: rgba(49, 64, 205, .16);
  background: #ffffff;
  color: var(--ink, #141821);
}

.elf-cookie-consent__btn--primary {
  border-color: var(--brand, #3140cd);
  background: var(--brand, #3140cd);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(49, 64, 205, .24);
}

.elf-cookie-consent__btn:hover {
  transform: translateY(-1px);
}

.elf-cookie-consent__btn:focus-visible {
  outline: 3px solid rgba(49, 64, 205, .24);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .elf-cookie-consent {
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
    place-items: center;
  }

  .elf-cookie-consent__inner {
    padding: 18px;
    border-radius: 16px;
    gap: 16px;
    max-height: calc(100vh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .elf-cookie-consent__title {
    font-size: 18px;
  }

  .elf-cookie-consent__text {
    font-size: 13px;
  }

  .elf-cookie-consent__actions {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .elf-cookie-consent__btn {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
  }
}
