:root {
  --rails-toastify-color-light: #fff;
  --rails-toastify-color-dark: #121212;
  --rails-toastify-color-info: #3498db;
  --rails-toastify-color-success: #07bc0c;
  --rails-toastify-color-warning: #f1c40f;
  --rails-toastify-color-error: #e74c3c;
  --rails-toastify-toast-width: 320px;
  --rails-toastify-toast-offset: 16px;
  --rails-toastify-toast-min-height: 64px;
  --rails-toastify-toast-radius: 6px;
  --rails-toastify-toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --rails-toastify-font-family: sans-serif;
  --rails-toastify-z-index: 9999;
  --rails-toastify-text-color-light: #757575;
  --rails-toastify-text-color-dark: #fff;
  --rails-toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  --rails-toastify-color-progress-dark: #bb86fc;
}

.rails-toastify-container {
  position: fixed;
  z-index: var(--rails-toastify-z-index);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.rails-toastify-container-top-left {
  top: var(--rails-toastify-toast-offset);
  left: var(--rails-toastify-toast-offset);
}

.rails-toastify-container-top-right {
  top: var(--rails-toastify-toast-offset);
  right: var(--rails-toastify-toast-offset);
}

.rails-toastify-container-top-center {
  top: var(--rails-toastify-toast-offset);
  left: 50%;
  transform: translateX(-50%);
}

.rails-toastify-container-bottom-left {
  bottom: var(--rails-toastify-toast-offset);
  left: var(--rails-toastify-toast-offset);
}

.rails-toastify-container-bottom-right {
  right: var(--rails-toastify-toast-offset);
  bottom: var(--rails-toastify-toast-offset);
}

.rails-toastify-container-bottom-center {
  bottom: var(--rails-toastify-toast-offset);
  left: 50%;
  transform: translateX(-50%);
}

.rails-toastify-toast {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: var(--rails-toastify-toast-width);
  min-height: var(--rails-toastify-toast-min-height);
  padding: 8px;
  overflow: hidden;
  font-family: var(--rails-toastify-font-family);
  color: var(--rails-toastify-text-color-light);
  cursor: default;
  pointer-events: auto;
  background-color: var(--rails-toastify-color-light);
  border-radius: var(--rails-toastify-toast-radius);
  box-shadow: var(--rails-toastify-toast-shadow);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.2s ease-out;
  touch-action: pan-y;
}

.rails-toastify-show {
  opacity: 1;
}

.rails-toastify-body {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 6px;
}

.rails-toastify-message {
  overflow-wrap: anywhere;
}

.rails-toastify-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: 20px;
  height: 20px;
}

.rails-toastify-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.rails-toastify-close {
  display: flex;
  flex-shrink: 0;
  align-self: flex-start;
  align-items: center;
  padding: 4px;
  color: #000;
  cursor: pointer;
  background: transparent;
  border: 0;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.rails-toastify-close:hover,
.rails-toastify-close:focus {
  opacity: 0.6;
}

.rails-toastify-close svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rails-toastify-toast-dark .rails-toastify-close,
.rails-toastify-toast-colored .rails-toastify-close {
  color: #fff;
  opacity: 0.7;
}

.rails-toastify-toast-dark .rails-toastify-close:hover,
.rails-toastify-toast-dark .rails-toastify-close:focus,
.rails-toastify-toast-colored .rails-toastify-close:hover,
.rails-toastify-toast-colored .rails-toastify-close:focus {
  opacity: 1;
}

.rails-toastify-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  transition: width 0.1s linear;
}

.rails-toastify-toast-light {
  color: var(--rails-toastify-text-color-light);
  background-color: var(--rails-toastify-color-light);
}

.rails-toastify-toast-dark {
  color: var(--rails-toastify-text-color-dark);
  background-color: var(--rails-toastify-color-dark);
}

.rails-toastify-toast-colored.rails-toastify-type-info {
  color: #fff;
  background-color: var(--rails-toastify-color-info);
}

.rails-toastify-toast-colored.rails-toastify-type-success {
  color: #fff;
  background-color: var(--rails-toastify-color-success);
}

.rails-toastify-toast-colored.rails-toastify-type-warning {
  color: #fff;
  background-color: var(--rails-toastify-color-warning);
}

.rails-toastify-toast-colored.rails-toastify-type-error {
  color: #fff;
  background-color: var(--rails-toastify-color-error);
}

.rails-toastify-icon-info {
  color: var(--rails-toastify-color-info);
}

.rails-toastify-icon-success {
  color: var(--rails-toastify-color-success);
}

.rails-toastify-icon-warning {
  color: var(--rails-toastify-color-warning);
}

.rails-toastify-icon-error {
  color: var(--rails-toastify-color-error);
}

.rails-toastify-toast-colored .rails-toastify-icon {
  color: #fff;
}

.rails-toastify-progress-default {
  background: var(--rails-toastify-color-progress-light);
}

.rails-toastify-progress-success {
  background-color: var(--rails-toastify-color-success);
}

.rails-toastify-progress-info {
  background-color: var(--rails-toastify-color-info);
}

.rails-toastify-progress-error {
  background-color: var(--rails-toastify-color-error);
}

.rails-toastify-progress-warning {
  background-color: var(--rails-toastify-color-warning);
}

.rails-toastify-toast-dark .rails-toastify-progress-default {
  background: var(--rails-toastify-color-progress-dark);
}

.rails-toastify-toast-colored .rails-toastify-progress {
  background: rgba(255, 255, 255, 0.7);
}

.rails-toastify-dragging {
  transition: none;
  user-select: none;
}

.rails-toastify-snap-back {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

@keyframes rails-toastify-bounce-all {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}

.rails-toastify-bounce {
  animation: rails-toastify-bounce-all 0.7s both;
}

@keyframes rails-toastify-slide-in {
  from {
    visibility: visible;
    transform: translate3d(110%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.rails-toastify-slide {
  animation: rails-toastify-slide-in 0.3s ease-out both;
}

@keyframes rails-toastify-zoom-in {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

.rails-toastify-zoom {
  animation: rails-toastify-zoom-in 0.3s both;
}

@keyframes rails-toastify-flip-in {
  from {
    opacity: 0;
    animation-timing-function: ease-in;
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
  }
  40% {
    animation-timing-function: ease-in;
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
  }
  60% {
    opacity: 1;
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}

.rails-toastify-flip {
  animation: rails-toastify-flip-in 0.5s ease-in-out both;
}

@keyframes rails-toastify-bounce-out-right {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  20% {
    opacity: 1;
    transform: translate3d(-20px, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, 0, 0);
  }
}

@keyframes rails-toastify-slide-out-right {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(110%, 0, 0);
  }
}

@keyframes rails-toastify-zoom-out {
  from {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
  50% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}

@keyframes rails-toastify-flip-out {
  from {
    opacity: 1;
    transform: perspective(400px);
  }
  30% {
    opacity: 1;
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
  }
  to {
    opacity: 0;
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
  }
}

.rails-toastify-bounce-exit {
  animation: rails-toastify-bounce-out-right 0.7s both;
}

.rails-toastify-slide-exit {
  animation: rails-toastify-slide-out-right 0.3s ease-in both;
}

.rails-toastify-zoom-exit {
  animation: rails-toastify-zoom-out 0.3s both;
}

.rails-toastify-flip-exit {
  animation: rails-toastify-flip-out 0.5s ease-in-out both;
}

@media only screen and (max-width: 480px) {
  .rails-toastify-container {
    width: 100vw;
    padding: 0;
    margin: 0;
  }

  .rails-toastify-container-top-left,
  .rails-toastify-container-top-right,
  .rails-toastify-container-top-center {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    transform: none;
  }

  .rails-toastify-container-bottom-left,
  .rails-toastify-container-bottom-right,
  .rails-toastify-container-bottom-center {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
  }

  .rails-toastify-toast {
    width: 100%;
    border-radius: 0;
  }
}
