/* Toast-уведомления: Figma Notic Banner, node 4714:65506 */
.toast-container {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 620px;
  max-width: calc(100vw - 20px);
}

.toast {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: fit-content;
  max-width: 300px;
  min-height: 52px;
  padding: 8px 8px 8px 15px;
  background: var(--base-2);
  border: 1px solid var(--focus-blue);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast--hiding {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.toast--success {
  border-color: var(--notifi-green-light);
}

.toast--error {
  border-color: var(--notifi-red-light);
}

.toast--warning {
  border-color: var(--focus-yellow-light);
}

.toast--info {
  border-color: var(--focus-blue);
}

.toast__icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-color: var(--focus-blue);
  -webkit-mask-image: url("../images/icons/interface/toast-reply.svg");
  mask-image: url("../images/icons/interface/toast-reply.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.toast--success .toast__icon {
  background-color: var(--notifi-green-light);
}

.toast--error .toast__icon {
  background-color: var(--notifi-red-light);
}

.toast--warning .toast__icon {
  background-color: var(--focus-yellow-light);
}

.toast__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 2px;
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 18px;
  white-space: normal;
}

.toast__title {
  flex: 0 0 auto;
  color: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
}

.toast__content {
  flex: 1 1 0;
  min-width: 0;
  color: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.toast__content > * {
  display: inline;
  margin: 0;
}

.toast__close {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.toast__close-icon {
  display: block;
  width: 30px;
  height: 30px;
  background-color: var(--icon-secondary);
  -webkit-mask-image: url("../images/icons/interface/toast-close.svg");
  mask-image: url("../images/icons/interface/toast-close.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 30px 30px;
  mask-size: 30px 30px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.toast__close:hover .toast__close-icon {
  background-color: var(--notifi-red-light);
  transform: scale(1.08);
}

.toast__close:focus-visible {
  outline: 1px solid var(--focus-blue);
  outline-offset: 1px;
}

@media (max-width: 1140px) {
  .toast-container {
    bottom: 80px;
  }
}

@media (max-width: 480px) {
  .toast-container {
    right: 10px;
    width: auto;
    max-width: none;
  }

  .toast {
    width: 100%;
  }
}

/* Анимация "бум" для лайков */
@keyframes like-boom {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.boom {
  animation: like-boom 0.7s ease-in-out;
}
