.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #1d1d1d;
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  font-size: 14px;
  line-height: 1.4;
}

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

.cookie-banner__text {
  margin: 0;
  flex: 1 1 240px;
}

.cookie-banner__text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  text-decoration: none;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.cookie-banner__btn--primary {
  background: #fff;
  color: #1d1d1d;
}

.cookie-banner__btn--primary:hover {
  background: #e0e0e0;
}

.cookie-banner__btn--secondary {
  background: transparent;
  color: #fff;
}

.cookie-banner__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 520px) {
  .cookie-banner {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__text {
    flex: 0 0 auto;
  }

  .cookie-banner__actions {
    justify-content: stretch;
    gap: 6px;
  }

  .cookie-banner__btn {
    flex: 1 1 0;
    padding: 7px 10px;
    font-size: 12px;
  }
}
