/* Only hide Joomla's own messages once the toast manager is running. */
html.st-toast-active #system-message-container {
  display: none !important;
}

.st-toast {
  z-index: 200000;
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100vw - 20px);
  font-family: inherit;
}

.st-toast_position_inline {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.st-toast_position_top-left {
  position: fixed;
  left: 10px;
  top: 10px;
}

.st-toast_position_top-right {
  position: fixed;
  right: 10px;
  top: 10px;
}

.st-toast_position_bottom-left {
  position: fixed;
  left: 10px;
  bottom: 10px;
}

.st-toast_position_bottom-right {
  position: fixed;
  right: 10px;
  bottom: 10px;
}

.st-toast_position_center {
  position: fixed;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
}

.st-toast__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

.st-toast__closer {
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font: inherit;
}

.st-toast__closer:hover {
  background: rgba(0, 0, 0, 0.14);
}

.st-toast__list {
  position: relative;
  min-height: 0;
}

.st-toast__item {
  position: relative;
  display: none;
  width: 100%;
  margin: 0 0 10px;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.st-toast__item.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.st-toast__item.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.st-toast_effect_slide .st-toast__item {
  transform: translateX(24px);
}

.st-toast_effect_slide .st-toast__item.is-visible {
  transform: translateX(0);
}

.st-toast__inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
}

.st-toast__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.st-toast__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.st-toast__body {
  flex: 1 1 auto;
  min-width: 0;
}

.st-toast__title {
  font-weight: 700;
  margin: 0 0 4px;
}

.st-toast__content {
  line-height: 1.45;
  word-break: break-word;
}

.st-toast__content > *:last-child {
  margin-bottom: 0;
}

/* Messages carrying buttons or forms need more room than a plain notice.
   Kept at two classes so it also wins over theme widths. */
.st-toast.st-toast_has-interactive {
  width: 520px;
}

.st-toast__item_interactive .st-toast__content {
  max-height: 60vh;
  overflow-y: auto;
}

.st-toast__item_interactive .st-toast__content p:first-child {
  margin-top: 0;
}

.st-toast__item_interactive .st-toast__content .btn,
.st-toast__item_interactive .st-toast__content button {
  margin: 4px 4px 0 0;
}

.st-toast__close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  opacity: 0.75;
}

.st-toast__close:hover {
  opacity: 1;
}

.st-toast__progress {
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.st-toast__progress-inner {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: rgba(0, 0, 0, 0.18);
}

.st-toast__group {
  margin-bottom: 10px;
}

.st-toast__group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  opacity: 0.75;
}

.st-toast.is-hidden {
  display: none;
}
