/* Purchase-intent feedback stays inside this dialog; no market-wide overrides. */
#intent-modal .intent-service {
  border-radius: 8px;
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}
#intent-modal .intent-service.has-intent-error {
  background: #fff3e8;
  box-shadow: 0 0 0 2px #c5652f;
}
#intent-modal .intent-service.is-intent-confirmed {
  background: #fffaf5;
  box-shadow: inset 0 0 0 1px #e9ceb8;
}
#intent-modal .intent-field-feedback {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.7;
  color: #35644a;
  overflow-wrap: anywhere;
}
#intent-modal .intent-field-feedback.is-error { color: #a63e18; }
#intent-modal #buyer-service-added,
#intent-modal #buyer-wechat { scroll-margin-block: 28px; }
#intent-modal #buyer-service-added[aria-invalid="true"] {
  outline: 2px solid #b55521;
  outline-offset: 3px;
}
#intent-modal #buyer-wechat[aria-invalid="true"] {
  border-color: #b55521;
  box-shadow: 0 0 0 1px #b55521;
}
#intent-modal #intent-submit {
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}
#intent-modal #intent-submit.is-intent-ready {
  box-shadow: 0 3px 10px rgba(155, 69, 18, .18);
}

/* Match the seller completion cue only after an acknowledged purchase intent.
   Quantities and amounts remain the real response values throughout the reveal. */
#intent-modal #intent-success {
  padding: 4px 0 2px;
  color: #222630;
}
#intent-modal #intent-success[hidden],
#intent-modal[hidden] #intent-success,
#intent-modal #intent-success [hidden] {
  display: none !important;
}
#intent-modal #intent-success .intent-success-heading {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin: 0 0 23px;
}
#intent-modal #intent-success .intent-success-heading > :last-child {
  min-width: 0;
}
#intent-modal #intent-success .intent-success-mark {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff1e7;
  color: #a4420f;
}
#intent-modal #intent-success .intent-success-mark svg {
  display: block;
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
#intent-modal #intent-success .intent-success-ring,
#intent-modal #intent-success .intent-success-tick {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
#intent-modal #intent-success .intent-success-heading h2,
#intent-modal #intent-success .intent-success-heading h3 {
  margin: 1px 0 0;
  color: #222630;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -.025em;
}
#intent-modal #intent-success-message {
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5c6370;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
#intent-modal #intent-success .intent-success-total {
  margin: 0 0 19px;
  padding: 0 0 19px;
  border-bottom: 1px dashed #d9dfe7;
  color: #222630;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#intent-modal #intent-success .intent-success-total:empty {
  display: none;
}
#intent-modal #intent-success .intent-success-help {
  margin: 0;
  color: #5c6370;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
#intent-modal #intent-success .intent-success-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
#intent-modal #intent-success .intent-success-actions .btn {
  min-width: 0;
  min-height: 44px;
  justify-content: center;
}

html[data-motion="full"] #intent-success.is-complete:not([hidden]) {
  animation: intent-success-arrive 300ms cubic-bezier(.16, 1, .3, 1) both;
}
html[data-motion="full"] #intent-success.is-complete:not([hidden]) .intent-success-ring {
  animation: intent-success-draw 480ms cubic-bezier(.16, 1, .3, 1) both;
}
html[data-motion="full"] #intent-success.is-complete:not([hidden]) .intent-success-tick {
  animation: intent-success-draw 260ms 150ms cubic-bezier(.16, 1, .3, 1) both;
}
html[data-motion="full"] #intent-success.is-complete:not([hidden]) .intent-success-total {
  animation: intent-success-detail 260ms 90ms cubic-bezier(.16, 1, .3, 1) both;
}
html[data-motion="full"] #intent-success.is-complete:not([hidden]) .intent-success-help {
  animation: intent-success-detail 260ms 140ms cubic-bezier(.16, 1, .3, 1) both;
}
html[data-motion="full"] #intent-success.is-complete:not([hidden]) .intent-success-actions {
  animation: intent-success-detail 260ms 190ms cubic-bezier(.16, 1, .3, 1) both;
}
html[data-motion="reduce"] #intent-success.is-complete:not([hidden]),
html[data-motion="reduce"] #intent-success.is-complete:not([hidden]) .intent-success-ring,
html[data-motion="reduce"] #intent-success.is-complete:not([hidden]) .intent-success-tick,
html[data-motion="reduce"] #intent-success.is-complete:not([hidden]) .intent-success-total,
html[data-motion="reduce"] #intent-success.is-complete:not([hidden]) .intent-success-help,
html[data-motion="reduce"] #intent-success.is-complete:not([hidden]) .intent-success-actions {
  animation: none;
  opacity: 1;
  transform: none;
  stroke-dashoffset: 0;
}
#intent-modal[hidden] #intent-success,
#intent-modal[hidden] #intent-success *,
#intent-success[hidden],
#intent-success[hidden] * {
  animation: none !important;
}
@keyframes intent-success-arrive {
  from { opacity: .55; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
@keyframes intent-success-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes intent-success-detail {
  from { opacity: .4; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  #intent-modal #intent-success .intent-success-heading { gap: 13px; margin-bottom: 20px; }
  #intent-modal #intent-success .intent-success-mark { flex-basis: 52px; width: 52px; height: 52px; }
  #intent-modal #intent-success .intent-success-mark svg { width: 44px; height: 44px; }
  #intent-modal #intent-success .intent-success-heading h2,
  #intent-modal #intent-success .intent-success-heading h3 { font-size: 20px; }
  #intent-modal #intent-success-message { margin-top: 5px; font-size: 12px; }
  #intent-modal #intent-success .intent-success-total { font-size: 16px; padding-bottom: 17px; margin-bottom: 17px; }
  #intent-modal #intent-success .intent-success-help { font-size: 12px; }
  #intent-modal #intent-success .intent-success-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 22px; }
  #intent-modal #intent-success .intent-success-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #intent-modal .intent-service,
  #intent-modal #intent-submit { transition: none; }
  #intent-modal #buyer-service-added,
  #intent-modal #buyer-wechat { scroll-behavior: auto; }
}
