.elf-cookie-consent {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 10050;
  box-sizing: border-box;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}

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

.elf-cookie-consent__inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .14);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.elf-cookie-consent__content {
  min-width: 0;
}

.elf-cookie-consent__title {
  display: block;
  color: #1d2a3d;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.elf-cookie-consent__text {
  margin: 0;
  color: #415069;
  font-size: 13px;
  line-height: 1.45;
}

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

.elf-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.elf-cookie-consent__btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.elf-cookie-consent__btn--secondary {
  border-color: #cbd6e6;
  background: #f6f8fc;
  color: #2b3a52;
}

.elf-cookie-consent__btn--primary {
  border-color: var(--brand, #0f6cbf);
  background: var(--brand, #0f6cbf);
  color: #ffffff;
}

@media (max-width: 767px) {
  .elf-cookie-consent {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .elf-cookie-consent__inner {
    padding: 14px;
    border-radius: 14px;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    max-height: calc(100vh - 16px - env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .elf-cookie-consent__title {
    font-size: 14px;
    margin-bottom: 6px;
  }

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

  .elf-cookie-consent__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    justify-content: stretch;
  }

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

@media (max-width: 420px) {
  .elf-cookie-consent {
    left: 6px;
    right: 6px;
  }
}
