/* Non-blocking service receipts, matching the approved submission preview. */
.service-request-toast {
  position: fixed;
  z-index: 1000;
  top: calc(var(--service-toast-top, 0px) + 16px + env(safe-area-inset-top));
  right: 16px;
  left: 16px;
  display: flex;
  box-sizing: border-box;
  width: min(calc(100% - 32px), 460px);
  max-width: 460px;
  max-height: calc(var(--service-toast-height, 100dvh) - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
  margin-inline: auto;
  padding: 14px 16px;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #132746;
  box-shadow: 0 8px 28px #213b5c24;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: transform 220ms cubic-bezier(.4, 0, 1, 1), opacity 220ms ease;
}

.service-request-toast[hidden] { display: none; }

.service-request-toast:is([data-state="opening"], [data-state="open"]) {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 320ms;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.service-request-toast[data-state="closing"] {
  opacity: 0;
  transform: translateY(-6px);
}

.service-request-toast__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  place-items: center;
  background: #eaf7ef;
  color: #178851;
}

.service-request-toast__icon svg { display: block; width: 22px; height: 22px; }
.service-request-toast__copy { min-width: 0; }
.service-request-toast__title { display: block; color: #132746; font-size: 16px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.service-request-toast__message { margin: 3px 0 0; color: #5f6f86; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .service-request-toast,
  .service-request-toast[data-state] {
    transform: none;
    transition-property: opacity;
    transition-duration: 80ms;
  }
  .service-request-toast:is([data-state="opening"], [data-state="open"]) { transition-duration: 100ms; }
}
