.cookie-banner {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: calc(var(--z-toast) + 1);
  border-block-start: 1px solid var(--border-color);
  border-radius: 0;
  background: var(--glass-bg);
  color: var(--text-secondary);
  box-shadow: 0 -18px 64px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
  will-change: transform, opacity;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.cookie-banner.is-leaving {
  transform: translate3d(0, 110%, 0);
  opacity: 0;
}

.cookie-banner__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  padding-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  max-width: 720px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  text-align: left;
}

.cookie-banner__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

body.cookie-consent-visible {
  padding-bottom: var(--cookie-consent-padding-bottom, 0px);
}

body.cookie-consent-ready {
  transition: padding-bottom 0.32s ease;
}

.cookie-banner {
  box-shadow: 0 -18px 64px rgba(0, 0, 0, 0.38);
}

.light .cookie-banner {
  box-shadow: 0 -18px 64px rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    width: min(100% - 28px, 1120px);
    min-height: auto;
    padding-block: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner__actions {
    justify-content: stretch;
  }
  .cookie-banner__actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cookie-consent-ready,
  .cookie-banner {
    transition: none;
  }
}
