.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 0.85rem 1rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  background: rgba(21, 32, 51, 0.96);
  color: #e8eef5;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.18);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
}

.cookie-consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #d5dde8;
}

.cookie-consent-text a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-text a:hover {
  color: #bfdbfe;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.cookie-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent-btn--accept {
  background: #1d4ed8;
  color: #fff;
}

.cookie-consent-btn--accept:hover {
  background: #1e40af;
}

.cookie-consent-btn--reject {
  background: transparent;
  color: #e8eef5;
  border-color: rgba(229, 231, 235, 0.35);
}

.cookie-consent-btn--reject:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
