/* ---------- Cookie overlay ---------- */
.cookie-overlay {
  position: fixed;
  bottom: 8px;
  z-index: 250;

  width: 100%;
  pointer-events: none;
}

.cookie-overlay:not(.is-shown) {
  display: none;
}

.cookie-overlay .content-wrapper {
  display: flex;
}

.cookie-overlay__block {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  box-sizing: border-box;
  min-width: var(--space-column-4);
  max-width: var(--space-column-8);
  margin-left: auto;
  padding: 12px;

  border-radius: var(--border-radius-s);
  background: var(--color-bg-primary);
  box-shadow: var(--shadow-card-s);
  border: 1px solid var(--color-bg-secondary);
  pointer-events: all;
  animation: cookieIn 400ms ease-in-out;
}

.cookie-overlay__text {
  color: var(--color-bg-primary);
  font-size: var(--font-size-content-s);
}

@keyframes cookieIn {
  from {
    opacity: 0;
    transform: translateX(64px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- Adaptation ---------- */
@media only screen and (max-width: 540px) {
  .cookie-overlay__block {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .cookie-overlay__text {
    text-align: center;
  }

  .cookie-overlay__btn {
    width: 100%;
    justify-content: center;
  }

  @keyframes cookieIn {
    from {
      opacity: 0;
      transform: translateY(64px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
