.toast {
  padding: 18px;
  background: white;
  z-index: 10;
  position: fixed;
  top: -38px;
  left: 50%;
  border-radius: 12px;
  border: 1px solid var(--color-gray-300);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%) translateY(30%);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  opacity: 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  line-height: 20px;
}

.toast .content {
  gap: 20px;
  display: flex;
  flex-direction: row;
  width: -moz-available;
}

.toast .content .text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast h6 {
  font-size: 0.875em;
  color: var(--color-gray-900);
  margin: 0;
}

.toast span {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--color-gray-500);
}

.toast.visible {
  transform: translateX(-50%) translateY(58px);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  opacity: 1;
}

.toast .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  background: var(--color-teal-500);
  display: flex;
  justify-content: center;
  align-items: center;
}

.toast .icon svg {
  width: 20px;
  height: 20px;
}

.toast.error .icon svg path {
  stroke: white;
}

.toast.success .icon svg path {
  stroke: var(--color-gray-900);
}

.toast.info .icon {
  background: transparent;
}

.toast.error .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-red-500);
}

.toast button.secondary {
  width: 137px;
  height: initial;
}

.toast button.secondary span {
  font-weight: 600;
  color: var(--color-gray-900);
  font-size: 14px;
}

@media (max-width: 623px) {
  .toast {
    width: 90%;
    top: -102px;
  }

  .toast span {
    word-wrap: anywhere;
  }

  .toast .content {
    flex-direction: column;
  }

  .toast.visible {
    transform: translateX(-50%) translateY(117px);
  }
}
