.cookie-consent {
  position: fixed;
  z-index: 130;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  color: var(--ink, #130d20);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line, rgba(19, 13, 32, 0.12));
  box-shadow: 0 -12px 40px rgba(19, 13, 32, 0.12);
  animation: cookie-consent-in 0.35s ease both;
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
}

.cookie-consent-copy {
  flex: 1 1 420px;
  min-width: 0;
}

.cookie-consent-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.cookie-consent-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--slate, #5c5470);
}

.cookie-consent-policy {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--violet, #6d28d9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-policy:hover {
  color: var(--ink, #130d20);
}

.cookie-consent-actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-consent-btn {
  min-height: 42px;
  white-space: nowrap;
}

@keyframes cookie-consent-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.cookie-consent-open .lang-suggest {
  bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .cookie-consent-btn {
    flex: 1 1 calc(50% - 5px);
  }

  html.cookie-consent-open .lang-suggest {
    bottom: calc(200px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    animation: none;
  }
}
