/* Toastr reskinné aux couleurs de R6C (voir base.css pour les variables). */

.toast-title {
  font-weight: 700;
}

.toast-message {
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.4;
}

.toast-message a,
.toast-message label {
  color: var(--text-hi);
  text-decoration: underline;
}

.toast-message a:hover {
  color: var(--accent);
}

.toast-close-button {
  position: relative;
  right: -0.3em;
  top: -0.3em;
  float: right;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-low);
  text-shadow: none;
  opacity: 1;
  line-height: 1;
}

.toast-close-button:hover,
.toast-close-button:focus {
  color: var(--text-hi);
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
}

.rtl .toast-close-button {
  left: -0.3em;
  float: left;
  right: 0.3em;
}

button.toast-close-button {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
}

.toast-top-center {
  top: 0;
  right: 0;
  width: 100%;
}

.toast-bottom-center {
  bottom: 0;
  right: 0;
  width: 100%;
}

.toast-top-full-width {
  top: 0;
  right: 0;
  width: 100%;
}

.toast-bottom-full-width {
  bottom: 0;
  right: 0;
  width: 100%;
}

.toast-top-left {
  top: 12px;
  left: 12px;
}

.toast-top-right {
  top: 12px;
  right: 12px;
}

.toast-bottom-right {
  right: 12px;
  bottom: 12px;
}

.toast-bottom-left {
  bottom: 12px;
  left: 12px;
}

#toast-container {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
}

#toast-container * {
  box-sizing: border-box;
}

#toast-container > div {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  margin: 0 0 10px;
  padding: 14px 16px;
  width: 320px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--text-hi);
  opacity: 1;
}

#toast-container > div.rtl {
  direction: rtl;
}

#toast-container > div:hover {
  border-color: var(--accent);
  cursor: pointer;
}

#toast-container > .toast-info {
  border-left-color: var(--blue);
}

#toast-container > .toast-error {
  border-left-color: var(--red);
}

#toast-container > .toast-success {
  border-left-color: var(--green);
}

#toast-container > .toast-warning {
  border-left-color: var(--accent);
}

#toast-container.toast-top-center > div,
#toast-container.toast-bottom-center > div {
  width: 320px;
  margin-left: auto;
  margin-right: auto;
}

#toast-container.toast-top-full-width > div,
#toast-container.toast-bottom-full-width > div {
  width: 96%;
  margin-left: auto;
  margin-right: auto;
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background-color: var(--accent);
  opacity: 0.6;
}

.toast-success .toast-progress {
  background-color: var(--green);
}

.toast-error .toast-progress {
  background-color: var(--red);
}

.toast-info .toast-progress {
  background-color: var(--blue);
}

@media all and (max-width: 480px) {
  #toast-container > div {
    padding: 12px 12px;
    width: 90vw;
  }
}
