/* お気に入りの追加・解除を知らせるトースト（サイト全体） */

.fav-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 12px 16px;
  color: #fff;
  background: rgba(39, 39, 39, .92);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
  transform: translate(-50%, -12px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.fav-toast.is-shown {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.fav-toast-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fav-toast-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: #fff;
}

.fav-toast-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

.fav-toast-link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-radius: 10px;
  text-decoration: none;
}

.fav-toast-link:hover,
.fav-toast-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, .26);
  text-decoration: none;
}

@media (max-width: 767px) {
  .fav-toast {
    /* 幅は中身なり。画面幅いっぱいには広げない */
    padding: 12px 14px;
  }
}

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