:root {
  --toast-width: 270px;
  --toast-border-radius: 0.25em;
  --toast-theme-default: #fff;
  --toast-theme-primary: #0085FF;
  --toast-theme-secondary: #6c757d;
  --toast-theme-success: #80D898;
  --toast-theme-danger: #DC7F7F;
  --toast-theme-warning: #ffc107;
  --toast-theme-info: #0dcaf0;
  --toast-theme-light: #f8f9fa;
  --toast-theme-dark: #212529;
}

.toast-container {
  position: fixed;
  top: 1em;
  right: 1.875em;
  z-index: 50;
  font-size: 0.5em;
  width: 26em;
  font-family: "Mulish";
}

@media (min-width: 768px) {
  .toast-container {
    right: 2.5em;
    font-size: 1em;
    width: 24.375em;
  }
}

.toast {
  /* font-size: 0.875em; */
  background-clip: padding-box;
  /* border: 1px solid rgba(0, 0, 0, 0.05); */
  /* border-radius: var(--toast-border-radius); */
  /* box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075); */
  position: relative;
  overflow: hidden;
  transition: 0.3s opacity;
  padding: 1.5625em;
  border-radius: 1.5625em;
  /* border-radius: 0em 0em 1.5625em 1.5625em; */
}

.toast_default {
  color: #212529;
  background-color: var(--toast-theme-default);
}

.toast_primary {
  color: #fff;
  background-color: var(--toast-theme-primary);
}

.toast_secondary {
  color: #fff;
  background-color: var(--toast-theme-secondary);
}

.toast_success {
  color: #fff;
  background-color: var(--toast-theme-success);
}

.toast_danger {
  color: #fff;
  background-color: var(--toast-theme-danger);
}

.toast_warning {
  color: #212529;
  background-color: var(--toast-theme-warning);
}

.toast_info {
  color: #212529;
  background-color: var(--toast-theme-info);
}

.toast_light {
  color: #212529;
  background-color: var(--toast-theme-light);
}

.toast_dark {
  color: #fff;
  background-color: var(--toast-theme-dark);
}

.toast_primary .toast__close,
.toast_secondary .toast__close,
.toast_success .toast__close,
.toast_danger .toast__close,
.toast_dark .toast__close {
  filter: invert(1);
}

.toast:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* .toast:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
} */

.toast:not(.toast_show) {
  display: none;
}

.toast_showing {
  opacity: 0;
}

.toast__header {
  position: relative;
  padding: 0.5em 2.25em 0.5em 1em;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast__close {
  content: "";
  position: absolute;
  top: 1.25em;
  right: 1.25em;
  width: 0.875em;
  height: 0.875em;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.875em auto no-repeat;
  border: 0;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  font-size: 1.25em;
}

@media (min-width: 768px) {
  .toast__close {
    font-size: 1em;
  }
}

.toast__close:hover {
  opacity: 1;
}

.toast__body {
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 0.625em;
  padding-right: 1.25em;
}

@media (min-width: 768px) {
  .toast__body {
    font-size: 1.125em;
  }
}

.toast_success .toast__body:before {
  font-family: "icon";
  font-size: 1.5em;
  content: "";
}

/* .toast_danger .toast__body:before {
  font-family: "icon";
  font-size: 1.5em;
  content: "";
} */

.toast_message .toast__body {
  padding-right: 2.25em;
}
