#zacoder-toast {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffde59;
  color: #333;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.zacoder-toast-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
 
}

.zacoder-toast-content {
  margin-right: 20px;
}

.zacoder-toast-content p {
  margin: 0;
}

.zacoder-toast-actions {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: 20%;
}

.zacoder-toast-button {
  display: inline-block;
  background-color: #0073aa;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  margin-right: 15px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.zacoder-toast-button:hover {
  background-color: #005a87;
  color: white;
  text-decoration: none;
}

.zacoder-toast-close {
  background: transparent;
  border: none;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
button.zacoder-toast-close {
  position: absolute;
  right: 150px;
}

@media (max-width: 768px) {
  .zacoder-toast-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    padding: 12px 10px;
    gap: 10px;
    align-items: center;
  }
  
  .zacoder-toast-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    flex-shrink: 0;
  }

  button.zacoder-toast-close {
    position: relative;
    right: unset;
    top: -2px;
  }

  .zacoder-toast-content {
    margin-right: 0;
    margin-bottom: 0;
    text-align: left;
    flex: 1;
    max-width: calc(100% - 160px);
    overflow: hidden;
  }

  .zacoder-toast-content p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    max-height: 2.8em;
    animation: none;
  }

  .zacoder-toast-button {
    font-size: 0.85em;
    padding: 5px 10px;
    margin-right: 8px;
  }
}

@media (min-width: 769px) {
  .zacoder-toast-content {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 20px;
  }
}
