/* Order acknowledgement presentation only; payment/submission guards live in app.js. */
body.storefront #thankYouModal {
  padding: 20px;
  background: rgba(19, 39, 65, .34);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-y: auto;
}

body.storefront #thankYouModal .thank-you-card {
  display: grid;
  justify-items: stretch;
  gap: 12px;
  width: min(360px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(19, 39, 65, .17);
  color: #172b46;
  text-align: center;
  transform: translateY(6px);
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}

body.storefront #thankYouModal.is-open .thank-you-card { transform: translateY(0); }
body.storefront #thankYouModal .thank-you-heading { display: flex; flex-direction: column; align-items: center; gap: 14px; }
body.storefront #thankYouModal .thank-you-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0bac70;
  color: #fff;
}
body.storefront #thankYouModal .thank-you-icon svg { width: 24px; height: 24px; }
body.storefront #thankYouModal h2 {
  margin: 0;
  color: #06563e;
  font-family: YSTBody, "Be Vietnam Pro", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.015em;
}

body.storefront #thankYouModal .thank-you-order {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 5px;
  min-width: 0;
}
body.storefront #thankYouModal .thank-you-order-label {
  font-family: YSTBody, "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #526581;
}
body.storefront #thankYouModal #thankYouOrderCode {
  color: #172b46;
  font-family: YSTBody, "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body.storefront #thankYouModal #thankYouMessage {
  margin: 0;
  color: #4e6078;
  font-family: YSTBody, "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.storefront #thankYouModal .thank-you-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-top: 4px;
}
body.storefront #thankYouModal .thank-you-actions :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-family: YSTBody, "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease;
}
body.storefront #thankYouModal #thankYouTrackLink { background: transparent; color: #005bea; }
body.storefront #thankYouModal #thankYouTrackLink:hover { color: #004bcc; text-decoration: underline; text-underline-offset: 3px; }
body.storefront #thankYouModal #thankYouCloseButton { background: #ffdf24; color: #12243d; font-size: 16px; box-shadow: 0 3px 8px rgba(19, 39, 65, .10); }
body.storefront #thankYouModal #thankYouCloseButton:hover { background: #f7d21b; }
body.storefront #thankYouModal .thank-you-actions :focus-visible {
  outline: 2px solid #005bea;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  body.storefront #thankYouModal { padding: 16px; }
  body.storefront #thankYouModal .thank-you-card { padding: 20px; max-height: calc(100dvh - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  body.storefront #thankYouModal,
  body.storefront #thankYouModal .thank-you-card,
  body.storefront #thankYouModal .thank-you-actions :is(a, button) { transition: none; transform: none; }
}
