/* =============================================
   COOKIE BANNER
   ============================================= */

.cookie-banner {
  position: fixed;

  bottom: 24px;
  left: 24px;
  right: 24px;

  z-index: 9999;

  display: flex;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transform: translateY(30px);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s ease;
}

/* visible state */

.cookie-banner--show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

/* hidden state */

.cookie-banner--hidden {
  opacity: 0;
  visibility: hidden;

  transform: translateY(30px);

  pointer-events: none;
}

.cookie-banner__content {
  width: 100%;
  max-width: 1200px;

  background: #161616;

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner__text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-banner__title {
  font-size: 16px;
  font-weight: 600;

  color: #ffffff;
}

.cookie-banner__text {
  font-size: 14px;
  line-height: 1.7;

  color: rgba(255, 255, 255, 0.72);

  max-width: 760px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 16px;

  flex-shrink: 0;
}

.cookie-banner__link {
  font-size: 14px;

  color: rgba(255, 255, 255, 0.7);

  text-decoration: none;

  transition: color 0.2s ease;
}

.cookie-banner__link:hover {
  color: #ffffff;
}

.cookie-banner__button {
  height: 46px;

  padding: 0 22px;

  border: none;

  background: #ffffff;

  color: #000000;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.cookie-banner__button:hover {
  opacity: 0.9;

  transform: translateY(-1px);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;

    gap: 24px;

    padding: 20px;
  }

  .cookie-banner__actions {
    width: 100%;

    justify-content: space-between;
  }

  .cookie-banner__button {
    height: 44px;

    padding: 0 20px;
  }
}
