.recent-orders {
  position: fixed;
  z-index: 1050;
  bottom: var(--recent-orders-offset-bottom, 5.5rem);
  max-width: min(22rem, calc(100vw - 2rem));
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.recent-orders--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.recent-orders--bottom-left {
  left: 1rem;
}

.recent-orders--bottom-right {
  right: 1rem;
}

.recent-orders__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.5rem;
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.12);
}

.recent-orders__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--bs-success, #198754);
}

.recent-orders__icon svg {
  width: 100%;
  height: 100%;
}

.recent-orders__content {
  flex: 1 1 auto;
  min-width: 0;
}

.recent-orders__message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
}

.recent-orders__time {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--bs-secondary-color, #6c757d);
}

.recent-orders__close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.recent-orders__close:hover,
.recent-orders__close:focus-visible {
  color: var(--bs-body-color, #212529);
}

@media (max-width: 575.98px) {
  .recent-orders {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }

  .recent-orders--bottom-right {
    left: 0.75rem;
    right: 0.75rem;
  }
}
