:root {
    --toast-light-bg: #ffffff;
    --toast-light-clr: #000000;
    --toast-dark-bg: #212121;
    --toast-dark-clr: #ffffff;
  }

  .custom-toast__container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: absolute;
    z-index: 9999;
  }

  .custom-toast {
    background-color: #04b000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 8px 16px;
    width: fit-content;
    font-size: 14px;
    font-weight: 600;
    text-wrap: nowrap;
    border-radius: 4px;
    box-shadow: 0px 1px 2px 0px #0000000f;
    box-shadow: 0px 1px 3px 0px #0000001a;
    color: white;
    line-height: 100%;
  }
  .custom-toast svg {
    margin-bottom: 2px;
  }

  .custom-toast--dark {
    background-color: var(--toast-dark-bg);
    color: var(--toast-dark-clr);
  }

  .custom-toast--success {
    background-color: #04b000;
    color: white;
  }

  .custom-toast--error {
    background-color: #e31010;
    color: white;
  }

  .custom-toast--warn {
    background-color: #b3a400;
    color: white;
  }

  .custom-toast--info {
    background-color: #00a3d9;
    color: white;
  }

  .custom-toast__container--top-right {
    top: 1rem;
    right: 1rem;
  }

  .custom-toast__container--bottom-center {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    z-index: 9999;
  }

  .custom-toast__container--bottom-right {
    bottom: 1rem;
    right: 1rem;
    position: fixed;
    z-index: 9999;
  }

  .custom-toast__container--bottom-left {
    bottom: 1rem;
    left: 1rem;
  }

  .custom-toast__container--top-center {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    z-index: 9999;
  }
  
  .custom-toast__container--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    z-index: 9999;
  }

  /* Mobile-specific styles: shrink font and padding, but keep text on one line */
@media (max-width: 600px) {
  .custom-toast {
    font-size: 12px;         
    padding: 6px 10px;       
    white-space: nowrap;      /* ✅ Prevent text wrapping */
    overflow: hidden;         /* ✅ Hide overflow */
    text-overflow: ellipsis;  /* ✅ Add ... to trimmed text */
    max-width: 90vw;          /* ✅ Keep within safe screen limits */
  }

  .custom-toast svg {
    width: 16px;
    height: 16px;
  }

  /* Optional: adjust container padding */
  .custom-toast__container--top-right,
  .custom-toast__container--bottom-right,
  .custom-toast__container--bottom-left,
  .custom-toast__container--top-left {
    right: 0.5rem;
    left: 0.5rem;
  }

  .custom-toast__container--top-center,
  .custom-toast__container--bottom-center,
  .custom-toast__container--center {
    left: 50%;
    transform: translateX(-50%);
    max-width: 100vw;
  }
}