/**
 * @file
 * Toast styles for IHRA Bootstrap theme.
 */

/* Toast wrapper positioning - Mobile first */
.toast-wrapper {
  position: fixed;
  top: 10px;
  right: 10px;
  left: 10px;
  z-index: 9999;
  max-width: none;
}

/* Toast close button styling */
.toast .close {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease-in-out;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  margin-left: auto;
}

.toast .close:hover {
  opacity: 1;
}

.toast .close:focus {
  outline: none;
  box-shadow: none;
}

/* Toast header styling */
.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

/* Toast body styling */
.toast-body {
  padding: 0.75rem;
}

/* Toast animation */
.toast.fade {
  transition: opacity 0.8s linear;
  opacity: 1;
}

/* Desktop styles - Media query for larger screens */
@media (min-width: 769px) {
  .toast-wrapper {
    top: 20px;
    right: 20px;
    left: auto;
    /*max-width: 350px;*/
  }
}

/* Large desktop styles - 1024px and up */
@media (min-width: 1024px) {
  .toast-wrapper {
    position: unset;
    z-index: 9999;
    max-width: 1280px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
  }

  .toast {
    max-width: unset;
  }
}
