/* Cookie notice: a toast floating at the bottom of the screen, shown by
 * shared/cookies/ (icon, text, button). */
.cookies {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(680px, calc(100% - 32px));
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}

.cookies[hidden] {
  display: none;
}

.cookies.is-shown {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cookies-icon {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--highlight);
  fill: currentColor;
}

.cookies-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--muted);
}

.cookies-btn {
  flex: none;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

.cookies-btn:hover {
  filter: brightness(1.1);
}

.cookies-btn:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .cookies {
    gap: 10px;
    padding: 10px 10px 10px 12px;
  }

  .cookies-icon {
    width: 26px;
    height: 26px;
  }

  .cookies-text {
    font-size: .85rem;
  }

  .cookies-btn {
    padding: 9px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookies {
    transition: none;
  }
}
