.order-wa-success {
  --order-wa-green: #136f63;
  --order-wa-ink: #183d38;
  --order-wa-muted: #526b63;
  color: var(--order-wa-ink);
}
.order-wa-success > h2 { margin: 0; line-height: 1.3; }
.order-wa-success > p { margin: 0; max-width: 40ch; color: var(--order-wa-muted); line-height: 1.7; }
.order-wa-success-contact { display: grid; gap: 14px; width: min(440px, 100%); }
.order-wa-dialog {
  --order-wa-green: #136f63;
  --order-wa-ink: #183d38;
  --order-wa-muted: #526b63;
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: auto;
  padding: 32px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce6df;
  border-radius: 20px;
  color: var(--order-wa-ink);
  background: #fff;
  box-shadow: 0 24px 80px #123b4340;
  font-family: inherit;
  text-align: start;
}
.order-wa-dialog::backdrop { background: #102f2b8c; }
.order-wa-dialog .order-wa-close {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--order-wa-muted);
  cursor: pointer;
}
.order-wa-dialog .order-wa-close:hover { background: #edf5ef; }
.order-wa-confirmed { display: flex; align-items: center; gap: 8px; margin-inline-end: 26px; color: var(--order-wa-green); font-size: 13px; font-weight: 650; line-height: 1.5; }
.order-wa-confirmed > svg { flex: 0 0 auto; }
.order-wa-dialog h2 { margin: 22px 0 12px; font-size: 28px; font-weight: 650; line-height: 1.23; letter-spacing: -.035em; text-wrap: balance; }
.order-wa-dialog > p { margin: 0; color: var(--order-wa-muted); font-size: 14px; line-height: 1.7; }
.order-wa-details { display: grid; gap: 16px; padding: 19px 20px; border: 1px solid #dce8df; border-radius: 12px; background: #f2f7f2; text-align: start; }
.order-wa-dialog .order-wa-details { margin: 24px 0 18px; }
.order-wa-details > div { display: grid; gap: 5px; min-width: 0; }
.order-wa-details span { color: var(--order-wa-muted); font-size: 12px; line-height: 1.5; }
.order-wa-details strong { color: var(--order-wa-ink); font-size: 18px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.order-wa-details strong[dir="ltr"] { direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.order-wa-success .order-wa-primary,
.order-wa-dialog .order-wa-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid var(--order-wa-green);
  border-radius: 10px;
  background: var(--order-wa-green);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.order-wa-primary > svg { flex: 0 0 auto; }
.order-wa-success .order-wa-primary:hover,
.order-wa-dialog .order-wa-primary:hover { color: #fff; background: #0b594f; text-decoration: none; }
.order-wa-dialog > p.order-wa-note { margin-top: 14px; font-size: 12px; line-height: 1.65; }
.order-wa-success .order-wa-text-button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--order-wa-green); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.order-wa-success :is(a, button):focus-visible,
.order-wa-dialog :is(a, button):focus-visible { outline: 3px solid #168478; outline-offset: 4px; }
@media (max-width: 480px) {
  .success.order-wa-success { width: calc(100% - 28px); margin: 32px auto; padding: 24px 14px; }
  .order-wa-dialog { width: calc(100vw - 24px); padding: 28px 22px 24px; border-radius: 16px; }
  .order-wa-dialog h2 { font-size: 25px; }
  .order-wa-details { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .order-wa-success .order-wa-primary, .order-wa-dialog .order-wa-primary { transition: none; }
}
