/**
 * Баннер согласия на cookies
 */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10150;
  padding: 0.85rem clamp(0.85rem, 2.5vw, 1.25rem);
  pointer-events: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.cookie-consent__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(5, 184, 125, 0.28);
  background: linear-gradient(
    165deg,
    rgba(32, 38, 44, 0.97) 0%,
    rgba(20, 24, 29, 0.98) 100%
  );
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

[data-theme="light"] .cookie-consent__panel {
  border-color: rgba(5, 184, 125, 0.22);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.96) 100%
  );
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.cookie-consent__text {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-consent__text a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cookie-consent__btn--primary {
  background: var(--green);
  color: #fff;
  border-color: rgba(5, 184, 125, 0.5);
}

.cookie-consent__btn--primary:hover {
  filter: brightness(1.06);
}

.cookie-consent__btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(148, 163, 184, 0.35);
}

[data-theme="light"] .cookie-consent__btn--secondary {
  background: rgba(241, 245, 249, 0.9);
  color: var(--white);
}

.cookie-consent__btn--secondary:hover {
  border-color: rgba(5, 184, 125, 0.35);
}

@media (max-width: 520px) {
  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1 1 auto;
  }
}
