/* Toast stack container adjustments */
#copy-toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
}
.copy-toast-inner {
  display: flex;
  align-items: stretch;
}

#copy-toast-container.copy-toast-container-collapsed {
  width: 0;
  height: 0;
  pointer-events: none;    /* underlying elements become clickable */
  overflow: visible;       /* allow fixed button to render */
}

/* Collapse bar */
.copy-toast-bar {
  position: relative;
  height: auto;
  min-height: 70px;
  width: 18px;
  padding: 0 4px;
  z-index: 1090;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.copy-toast-bar-fixed {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 1090;
}


.copy-toast-bar .copy-toast-count {
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
}

.copy-toast-bar .copy-toast-count {
  display: none;
}

.copy-toast-bar.has-count.copy-toast-bar-fixed .copy-toast-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Card completion animation */
.copy-toast-card { width: 280px; }
.copy-toast-title { max-width: 220px; }
.copy-toast-progress { height: 6px; }
.copy-toast-card.done{
  animation: toast-done-bg 0.3s ease-in forwards, toast-fade 1s ease-in 0.5s forwards;
}
@keyframes toast-done-bg{
  from {
    color: rgb(90, 97, 105);
    background-color: #ffffff;
    border-color: #ffffff;
  }
  to {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
  } /* Bootstrap success bg */
}
@keyframes toast-fade{
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

/* Hidden toast (collapsed) */
.copy-toast-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.copy-toast-stack-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

