.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  display: none;
}

.cookie-consent.is-open {
  display: block;
}

.cookie-consent__panel {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
}

@media (min-width: 640px) {
  .cookie-consent__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
  }
}

.cookie-consent__content {
  flex: 1;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 2px;
  font-family: Geist, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

.cookie-consent__text a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.cookie-consent__text a:hover {
  color: #c7d2fe;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__btn--primary {
  background: #7b68ee;
  color: #fff;
}

.cookie-consent__btn--primary:hover {
  background: #6a58df;
}

.cookie-consent__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-consent__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.cookie-consent-visible .home-footer__top {
  bottom: calc(24px + var(--cookie-consent-offset, 0px));
}

@media (max-width: 767px) {
  body.cookie-consent-visible .home-footer__top {
    bottom: calc(16px + var(--cookie-consent-offset, 0px));
  }
}
