/* Cookie banner - matches site via CSS variables from styles.css */
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
}

.cookie-banner__inner {
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 14px 14px;

  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.cookie-banner__link {
  color: var(--light-blue);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.05s ease, opacity 0.15s ease, background 0.15s ease;
}

.cookie-btn:active {
  transform: translateY(1px);
}

.cookie-btn--primary {
  background: var(--light-blue);
  color: var(--white);
  border-color: var(--light-blue);
}

.cookie-btn--primary:hover {
  opacity: 0.92;
}

.cookie-btn--secondary {
  background: var(--gray);
  color: var(--text-muted);
}

.cookie-btn--secondary:hover {
  background: #eeeeee;
}

/* Mobile адаптация */
@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-btn {
    transition: none;
  }
}

.cookie-banner__link {
  color: #1e88e5;            /* или: var(--light-blue) */
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 550;
  transition: opacity 0.15s ease, text-decoration-color 0.15s ease;
}

.cookie-banner__link:hover {
  opacity: 0.85;
}

/* Чтобы общий стиль ссылок сайта (color: inherit) не перебивал */
.cookie-banner__text a {
  color: #1e88e5;
}
