/* Premium order-received and manual-payment presentation. */

body.woocommerce-order-received {
  --als-receipt-canvas: #f1f6fb;
  --als-receipt-surface: #fff;
  --als-receipt-soft: #f7f9fc;
  --als-receipt-ink: #102044;
  --als-receipt-muted: #627087;
  --als-receipt-line: rgba(16, 32, 68, 0.14);
  --als-receipt-line-soft: rgba(16, 32, 68, 0.085);
  --als-receipt-red: #cf202e;
  --als-receipt-navy: #071b3a;
  --als-receipt-radius: 12px;
  color: var(--als-receipt-ink);
  background: var(--als-receipt-canvas) !important;
}

body.woocommerce-order-received .site-main,
body.woocommerce-order-received .entry-content {
  background: var(--als-receipt-canvas) !important;
}

body.woocommerce-order-received .site-main {
  padding-block: 28px clamp(62px, 7vw, 92px) !important;
}

body.woocommerce-order-received .site-main > .als-section {
  margin-top: 0 !important;
}

body.woocommerce-order-received article.als-page-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-order-received .site-main > .woocommerce,
body.woocommerce-order-received .entry-content > .woocommerce,
body.woocommerce-order-received .woocommerce-order {
  width: min(1240px, calc(100% - 40px)) !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  color: var(--als-receipt-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-order-received article.als-page-shell > .woocommerce,
body.woocommerce-order-received article.als-page-shell > .woocommerce > .woocommerce-order {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-notice--success {
  display: none !important;
}

body.woocommerce-order-received h1,
body.woocommerce-order-received .woocommerce-order > h2:first-child {
  margin: 0 0 18px !important;
  color: var(--als-receipt-ink) !important;
  font-size: clamp(2rem, 3.1vw, 2.6rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.04em !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(100%, 670px) !important;
  margin: 0 0 22px !important;
  padding: 12px 0 !important;
  list-style: none !important;
  background: #fff !important;
  border: 1px solid var(--als-receipt-line) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(16, 32, 68, 0.035) !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview > li {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 2px 15px !important;
  color: var(--als-receipt-muted) !important;
  border-right: 1px solid var(--als-receipt-line-soft) !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview > li:last-child {
  border-right: 0 !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview > li strong {
  display: block !important;
  margin-top: 4px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview > li.email,
body.woocommerce-order-received ul.woocommerce-order-overview > li.method,
body.woocommerce-order-received .woocommerce-order-overview__email,
body.woocommerce-order-received .woocommerce-order-overview__payment-method {
  display: none !important;
}

/* Action-first manual payment card ---------------------------------- */

.als-manual-payment-section {
  --als-receipt-surface: #fff;
  --als-receipt-soft: #f7f9fc;
  --als-receipt-ink: #102044;
  --als-receipt-muted: #627087;
  --als-receipt-line: rgba(16, 32, 68, 0.14);
  --als-receipt-line-soft: rgba(16, 32, 68, 0.085);
  --als-receipt-navy: #071b3a;
  --als-receipt-radius: 12px;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.als-manual-payment-card--v2 {
  --als-method: #6d1ed4;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  color: var(--als-receipt-ink) !important;
  background: #fff !important;
  border: 1px solid color-mix(in srgb, var(--als-method) 28%, white) !important;
  border-radius: var(--als-receipt-radius) !important;
  box-shadow: 0 12px 30px rgba(16, 32, 68, 0.045) !important;
}

.als-manual-payment-card--cashapp { --als-method: #087a32; }
.als-manual-payment-card--venmo { --als-method: #1681f5; }

.als-manual-payment-card--v2.is-payment-reported {
  --als-method: #8a6116;
  --als-reported-surface: #fffaf0;
  --als-reported-surface-strong: #fff6df;
  --als-reported-line: #e4cc95;
  border-color: var(--als-reported-line) !important;
  background: var(--als-reported-surface) !important;
}

.als-manual-payment-card--v2.is-payment-reported .als-manual-payment-card__header {
  background: linear-gradient(135deg, #fff 0%, var(--als-reported-surface) 100%) !important;
  border-bottom-color: rgba(138, 97, 22, 0.13) !important;
}

.als-manual-payment-card--v2.is-payment-reported .als-manual-payment-card__footer {
  color: #675738 !important;
  background: linear-gradient(135deg, var(--als-reported-surface-strong) 0%, #fffaf0 100%) !important;
  border-top-color: rgba(138, 97, 22, 0.18) !important;
}

.als-manual-payment-card--v2.is-payment-reported .als-manual-payment-card__state.is-reported {
  color: #80580e !important;
}

.als-manual-payment-card--v2.is-payment-confirmed {
  --als-method: #126a46;
}

.als-manual-payment-card__header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 74px !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid var(--als-receipt-line-soft) !important;
}

.als-manual-payment-card__header > span:not(.als-payment-brand-badge) {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}

.als-manual-payment-card__header h2 {
  margin: 0 0 3px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 1.16rem !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
}

.als-manual-payment-card__header em {
  display: block !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.74rem !important;
  font-style: normal !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

.als-manual-payment-card__mark {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  height: 38px !important;
  margin: 0 !important;
}

.als-manual-payment-card__mark img {
  display: block !important;
  width: auto !important;
  max-width: 98px !important;
  height: auto !important;
  max-height: 34px !important;
  object-fit: contain !important;
}

.als-manual-payment-card--cashapp .als-manual-payment-card__mark img {
  width: 34px !important;
  height: 34px !important;
}

.als-manual-payment-card__task {
  display: grid !important;
  grid-template-columns: minmax(190px, 0.76fr) minmax(0, 1.24fr) !important;
  gap: 14px 18px !important;
  margin: 0 !important;
  padding: 18px !important;
  background: #fff !important;
}

.als-manual-payment-card__amount {
  grid-column: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 84px !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  background: color-mix(in srgb, var(--als-method) 4%, white) !important;
  border: 1px solid color-mix(in srgb, var(--als-method) 20%, white) !important;
  border-radius: 9px !important;
}

.als-manual-payment-card__amount > span {
  color: var(--als-receipt-muted) !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
}

.als-manual-payment-card__amount strong {
  margin-top: 4px !important;
  color: var(--als-receipt-ink) !important;
  font-size: clamp(1.65rem, 3vw, 2.05rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
}

.als-manual-payment-card__primary-action {
  grid-column: 1 !important;
  min-width: 0 !important;
}

.als-manual-payment-card__primary-action > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 9px 13px !important;
  box-sizing: border-box !important;
  color: #fff !important;
  background: var(--als-method) !important;
  border: 1px solid var(--als-method) !important;
  border-radius: 7px !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  text-align: center !important;
}

.als-manual-payment-card__primary-action > a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--als-method) 28%, transparent) !important;
  outline-offset: 3px !important;
}

.als-manual-payment-card__primary-action small {
  display: block !important;
  margin-top: 7px !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.68rem !important;
  line-height: 1.4 !important;
}

.als-manual-payment-card__copy-stack {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  min-width: 0 !important;
}

.als-manual-payment-card__copy-box {
  min-width: 0 !important;
  padding: 11px 12px !important;
  background: var(--als-receipt-soft) !important;
  border: 1px solid var(--als-receipt-line) !important;
  border-radius: 8px !important;
}

.als-manual-payment-card__copy-box > span {
  display: block !important;
  margin-bottom: 5px !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.64rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.als-manual-payment-card__copy-box > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
}

.als-manual-payment-card__copy-box strong {
  min-width: 0 !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}

.als-manual-payment-copy,
.als-payment-submission__launch,
.als-payment-submission__confirm,
.als-payment-submission__cancel {
  min-height: 44px !important;
  border-radius: 7px !important;
  font-weight: 800 !important;
}

.als-manual-payment-copy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 9px !important;
  color: var(--als-method) !important;
  background: #fff !important;
  border: 1px solid color-mix(in srgb, var(--als-method) 38%, white) !important;
  font-size: 0.68rem !important;
  cursor: pointer !important;
}

.als-manual-payment-copy:focus-visible,
.als-payment-submission__launch:focus-visible,
.als-payment-submission__confirm:focus-visible,
.als-payment-submission__cancel:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--als-method) 25%, transparent) !important;
  outline-offset: 2px !important;
}

.als-functional-icon {
  display: inline-flex !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto !important;
}

.als-functional-icon svg {
  width: 100% !important;
  height: 100% !important;
}

.als-manual-payment-card__copy-feedback,
.als-manual-payment-card__link-status,
.als-payment-submission__result {
  margin: 6px 0 0 !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.69rem !important;
  line-height: 1.4 !important;
}

.als-manual-payment-card__footer {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px 12px !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  color: var(--als-receipt-muted) !important;
  background: var(--als-receipt-soft) !important;
  border-top: 1px solid var(--als-receipt-line-soft) !important;
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
}

.als-manual-payment-card__footer[hidden] {
  display: none !important;
}

.als-manual-payment-card__state {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #7b5610 !important;
  white-space: nowrap !important;
}

.als-manual-payment-card__state.is-confirmed {
  color: #126a46 !important;
}

.als-payment-submission {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px 16px !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  background: #fff !important;
  border-top: 1px solid var(--als-receipt-line-soft) !important;
}

.als-payment-submission__prompt strong {
  display: block !important;
  margin-bottom: 2px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.82rem !important;
}

.als-payment-submission__prompt span,
.als-payment-submission__disclaimer {
  color: var(--als-receipt-muted) !important;
  font-size: 0.7rem !important;
  line-height: 1.4 !important;
}

.als-payment-submission__launch,
.als-payment-submission__confirm {
  padding: 0 13px !important;
  color: #fff !important;
  background: var(--als-receipt-navy) !important;
  border: 1px solid var(--als-receipt-navy) !important;
}

.als-payment-submission__disclaimer,
.als-payment-submission__panel {
  grid-column: 1 / -1 !important;
}

.als-payment-submission__panel {
  width: 100% !important;
  margin: 3px 0 0 !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  background: var(--als-receipt-soft) !important;
  border: 1px solid var(--als-receipt-line) !important;
  border-radius: 8px !important;
}

.als-payment-submission__panel[hidden] {
  display: none !important;
}

.als-payment-submission__panel h3 {
  margin: 0 0 5px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.94rem !important;
}

.als-payment-submission__ack,
.als-payment-submission__reference {
  display: block !important;
  margin: 11px 0 !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
}

.als-payment-submission__ack input {
  width: 19px !important;
  height: 19px !important;
  margin-right: 8px !important;
}

.als-payment-submission__reference input {
  display: block !important;
  width: 100% !important;
  min-height: 46px !important;
  margin-top: 6px !important;
  padding: 9px 11px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(16, 32, 68, 0.22) !important;
  border-radius: 7px !important;
}

.als-payment-submission__actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.als-payment-submission__cancel {
  padding: 0 13px !important;
  color: var(--als-receipt-navy) !important;
  background: #fff !important;
  border: 1px solid rgba(7, 27, 58, 0.28) !important;
}

/* Guided manual-payment handoff ------------------------------------- */

body.als-payment-sheet-open {
  overflow: hidden !important;
}

body.woocommerce-account.logged-in.als-custom-commerce .als-account-order-fulfillment__summary span {
  color: #53647d !important;
}

.als-payment-reminder,
.als-payment-sheet {
  --als-receipt-surface: #fff;
  --als-receipt-soft: #f7f9fc;
  --als-receipt-ink: #102044;
  --als-receipt-muted: #627087;
  --als-receipt-line: rgba(16, 32, 68, 0.14);
  --als-receipt-line-soft: rgba(16, 32, 68, 0.085);
  --als-receipt-navy: #071b3a;
  --als-method: #6d1ed4;
  --als-method-soft: #f6f0ff;
  --als-method-line: #dac5fa;
  --als-payment-sheet-peek-height: 66px;
  color: var(--als-receipt-ink) !important;
}

.als-payment-reminder.als-manual-payment-card--cashapp,
.als-payment-sheet.als-manual-payment-card--cashapp {
  --als-method: #087a32;
  --als-method-soft: #eef9f2;
  --als-method-line: #bfe3ca;
}

.als-payment-reminder {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px 18px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 104px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, var(--als-method-soft), #fff 44%) !important;
  border: 1px solid var(--als-method-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(16, 32, 68, 0.045) !important;
}

.als-payment-reminder__brand,
.als-payment-reminder__mark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 76px !important;
  min-width: 0 !important;
  height: 44px !important;
}

.als-payment-reminder__mark img {
  display: block !important;
  width: auto !important;
  max-width: 76px !important;
  height: auto !important;
  max-height: 34px !important;
  object-fit: contain !important;
}

.als-payment-reminder.als-manual-payment-card--cashapp .als-payment-reminder__brand,
.als-payment-reminder.als-manual-payment-card--cashapp .als-payment-reminder__mark {
  width: 44px !important;
}

.als-payment-reminder.als-manual-payment-card--cashapp .als-payment-reminder__mark img {
  width: 38px !important;
  height: 38px !important;
}

.als-payment-reminder__copy {
  min-width: 0 !important;
}

.als-payment-reminder__eyebrow {
  display: block !important;
  margin: 0 0 3px !important;
  color: var(--als-method) !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.075em !important;
  text-transform: uppercase !important;
}

.als-payment-reminder h2 {
  margin: 0 0 4px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 1.05rem !important;
  font-weight: 880 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

.als-payment-reminder p {
  margin: 0 !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.74rem !important;
  line-height: 1.45 !important;
}

.als-payment-reminder__action,
.als-payment-sheet__done {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  color: #fff !important;
  background: var(--als-receipt-navy) !important;
  border: 1px solid var(--als-receipt-navy) !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
}

.als-payment-reminder__action:focus-visible,
.als-payment-sheet__done:focus-visible,
.als-payment-sheet__close:focus-visible,
.als-payment-sheet__footer button:focus-visible,
.als-payment-sheet__primary-action > a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--als-method) 28%, transparent) !important;
  outline-offset: 3px !important;
}

/* My Account reminder alignment ------------------------------------- */

body.woocommerce-account .als-manual-payment-section--account {
  width: 100% !important;
  margin: 16px 0 0 !important;
}

body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder {
  grid-template-columns: 70px minmax(0, 1fr) auto !important;
  gap: 12px 16px !important;
  min-height: 0 !important;
  padding: 15px 16px !important;
  background: #fff !important;
  border: 1px solid var(--als-method-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder__brand,
body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder__mark {
  width: 70px !important;
}

body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder__mark img {
  max-width: 68px !important;
}

body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder h2 {
  font-size: 0.98rem !important;
}

body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder p {
  max-width: 58ch !important;
  font-size: 0.73rem !important;
}

body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder__action {
  min-width: 148px !important;
}

@media (max-width: 620px) {
  body.woocommerce-account .als-manual-payment-section--account {
    margin-top: 14px !important;
  }

  body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 10px 12px !important;
    padding: 13px !important;
  }

  body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder__brand,
  body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder__mark {
    width: 58px !important;
  }

  body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder__mark img {
    max-width: 56px !important;
  }

  body.woocommerce-account .als-manual-payment-section--account .als-payment-reminder__action {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

.als-payment-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: grid !important;
  align-items: end !important;
  justify-items: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 220ms ease !important;
}

.als-payment-sheet[hidden] {
  display: none !important;
}

.als-payment-sheet.is-active {
  opacity: 1 !important;
}

.als-payment-sheet__backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(3, 14, 33, 0.68) !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: default !important;
  opacity: 0 !important;
  pointer-events: none !important;
  -webkit-backdrop-filter: blur(5px) !important;
  backdrop-filter: blur(5px) !important;
  transition: opacity 220ms ease !important;
}

.als-payment-sheet.is-open .als-payment-sheet__backdrop {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.als-payment-sheet__panel {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  width: min(100%, 760px) !important;
  max-height: 92vh !important;
  max-height: min(92dvh, 900px) !important;
  margin: 0 !important;
  padding: 0 0 env(safe-area-inset-bottom, 0) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  color: var(--als-receipt-ink) !important;
  background: #fff !important;
  border: 1px solid var(--als-method-line) !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: 0 -24px 70px rgba(3, 14, 33, 0.26) !important;
  transform: translateY(105%) !important;
  pointer-events: none !important;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.als-payment-sheet.is-open .als-payment-sheet__panel {
  transform: translateY(0) !important;
}

.als-payment-sheet.is-collapsed .als-payment-sheet__panel {
  transform: translateY(calc(100% - var(--als-payment-sheet-peek-height))) !important;
}

.als-payment-sheet.is-active .als-payment-sheet__panel {
  pointer-events: auto !important;
}

.als-payment-sheet__body {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.als-payment-sheet__body:focus {
  outline: none !important;
}

.als-payment-sheet__handle {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--als-receipt-ink) !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: grab !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: height 180ms ease, min-height 180ms ease !important;
}

.als-payment-sheet__grabber {
  position: absolute !important;
  top: 13px !important;
  left: 50% !important;
  display: block !important;
  width: 42px !important;
  height: 4px !important;
  transform: translateX(-50%) !important;
  background: rgba(16, 32, 68, 0.24) !important;
  border-radius: 999px !important;
}

.als-payment-sheet__peek {
  display: none !important;
  width: 100% !important;
  min-width: 0 !important;
}

.als-payment-sheet.is-collapsed .als-payment-sheet__handle {
  height: var(--als-payment-sheet-peek-height) !important;
  min-height: var(--als-payment-sheet-peek-height) !important;
  padding: 12px 18px 7px !important;
  box-sizing: border-box !important;
}

.als-payment-sheet.is-collapsed .als-payment-sheet__grabber {
  top: 7px !important;
}

.als-payment-sheet.is-collapsed .als-payment-sheet__peek {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding-top: 5px !important;
  text-align: left !important;
}

.als-payment-sheet__peek-mark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 28px !important;
}

.als-payment-sheet__peek-mark img {
  display: block !important;
  width: auto !important;
  max-width: 52px !important;
  height: auto !important;
  max-height: 26px !important;
  object-fit: contain !important;
}

.als-payment-sheet.als-manual-payment-card--cashapp .als-payment-sheet__peek-mark {
  width: 30px !important;
}

.als-payment-sheet.als-manual-payment-card--cashapp .als-payment-sheet__peek-mark img {
  width: 27px !important;
  height: 27px !important;
}

.als-payment-sheet__peek-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
}

.als-payment-sheet__peek-copy strong {
  color: var(--als-receipt-ink) !important;
  font-size: 0.78rem !important;
  font-weight: 880 !important;
  line-height: 1.2 !important;
}

.als-payment-sheet__peek-copy small {
  color: var(--als-receipt-muted) !important;
  font-size: 0.67rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

.als-payment-sheet__peek-chevron {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  margin: 4px 3px 0 8px !important;
  transform: rotate(45deg) !important;
  border-top: 2px solid var(--als-method) !important;
  border-left: 2px solid var(--als-method) !important;
}

.als-payment-sheet.is-dragging .als-payment-sheet__handle {
  cursor: grabbing !important;
}

.als-payment-sheet.is-dragging .als-payment-sheet__panel {
  transition: none !important;
}

.als-payment-sheet__header {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 14px !important;
  padding: 17px 22px 18px !important;
  border-bottom: 1px solid var(--als-receipt-line-soft) !important;
}

.als-payment-sheet__brand,
.als-payment-sheet__mark {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 82px !important;
  height: 42px !important;
}

.als-payment-sheet__mark img {
  display: block !important;
  width: auto !important;
  max-width: 82px !important;
  height: auto !important;
  max-height: 36px !important;
  object-fit: contain !important;
}

.als-payment-sheet.als-manual-payment-card--cashapp .als-payment-sheet__brand,
.als-payment-sheet.als-manual-payment-card--cashapp .als-payment-sheet__mark {
  width: 42px !important;
}

.als-payment-sheet.als-manual-payment-card--cashapp .als-payment-sheet__mark img {
  width: 38px !important;
  height: 38px !important;
}

.als-payment-sheet__heading {
  min-width: 0 !important;
}

.als-payment-sheet__heading > span,
.als-payment-sheet__reported-eyebrow {
  display: block !important;
  margin: 1px 0 3px !important;
  color: var(--als-method) !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.als-payment-sheet__heading h2 {
  margin: 0 0 5px !important;
  color: var(--als-receipt-ink) !important;
  font-size: clamp(1.45rem, 3vw, 1.9rem) !important;
  font-weight: 900 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.04em !important;
}

.als-payment-sheet__heading p {
  max-width: 560px !important;
  margin: 0 !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
}

.als-payment-sheet__close {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  margin: -2px 0 0 !important;
  padding: 0 !important;
  color: var(--als-receipt-ink) !important;
  background: var(--als-receipt-soft) !important;
  border: 1px solid var(--als-receipt-line) !important;
  border-radius: 50% !important;
  font-size: 1.45rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.als-payment-sheet__close span {
  display: block !important;
  transform: translateY(-1px) !important;
}

.als-payment-sheet__summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 0 !important;
  padding: 0 22px !important;
  background: var(--als-receipt-soft) !important;
  border-bottom: 1px solid var(--als-receipt-line-soft) !important;
}

.als-payment-sheet__summary > span {
  min-width: 0 !important;
  padding: 12px 14px !important;
  border-right: 1px solid var(--als-receipt-line-soft) !important;
}

.als-payment-sheet__summary > span:first-child {
  padding-left: 0 !important;
}

.als-payment-sheet__summary > span:last-child {
  padding-right: 0 !important;
  border-right: 0 !important;
}

.als-payment-sheet__summary small {
  display: block !important;
  margin-bottom: 3px !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.59rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.065em !important;
  text-transform: uppercase !important;
}

.als-payment-sheet__summary strong {
  display: block !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.84rem !important;
  font-weight: 880 !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

.als-payment-sheet__steps {
  margin: 0 !important;
  padding: 0 22px !important;
  list-style: none !important;
  counter-reset: none !important;
}

.als-payment-sheet__steps[hidden],
.als-payment-sheet__reported[hidden],
.als-payment-sheet__footer[hidden] {
  display: none !important;
}

.als-payment-sheet__step {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 13px !important;
  margin: 0 !important;
  padding: 17px 0 !important;
  border-bottom: 1px solid var(--als-receipt-line-soft) !important;
}

.als-payment-sheet__step:last-child {
  border-bottom: 0 !important;
}

.als-payment-sheet__step-number {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--als-method) !important;
  background: var(--als-method-soft) !important;
  border: 1px solid var(--als-method-line) !important;
  border-radius: 50% !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.als-payment-sheet__step-content {
  min-width: 0 !important;
}

.als-payment-sheet__step-content > h3 {
  margin: 1px 0 4px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.94rem !important;
  font-weight: 880 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
}

.als-payment-sheet__step-content > p {
  margin: 0 !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.73rem !important;
  line-height: 1.48 !important;
}

.als-payment-sheet__primary-action {
  min-width: 0 !important;
  margin-top: 11px !important;
}

.als-payment-sheet__primary-action > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 48px !important;
  padding: 9px 16px !important;
  box-sizing: border-box !important;
  color: #fff !important;
  background: var(--als-method) !important;
  border: 1px solid var(--als-method) !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 870 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.als-payment-sheet__details {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr) !important;
  gap: 9px !important;
  margin-top: 11px !important;
}

@media (min-width: 761px) {
  .als-payment-sheet__details > .als-manual-payment-card__copy-box:first-child strong {
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 621px) and (max-width: 760px) {
  .als-payment-sheet__details {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.als-payment-sheet .als-manual-payment-card__copy-box {
  min-width: 0 !important;
  padding: 10px 11px !important;
  background: var(--als-receipt-soft) !important;
  border-color: var(--als-receipt-line) !important;
}

.als-payment-sheet .als-manual-payment-copy {
  color: var(--als-method) !important;
  border-color: var(--als-method-line) !important;
}

.als-payment-sheet .als-payment-submission--guided {
  display: block !important;
  margin: 11px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.als-payment-sheet .als-payment-submission--guided .als-payment-submission__launch {
  min-width: 168px !important;
  background: var(--als-receipt-navy) !important;
  border-color: var(--als-receipt-navy) !important;
}

.als-payment-sheet .als-payment-submission--guided .als-payment-submission__disclaimer {
  display: block !important;
  margin-top: 7px !important;
}

.als-payment-sheet .als-payment-submission__panel {
  margin-top: 11px !important;
  padding: 13px !important;
  background: var(--als-receipt-soft) !important;
}

.als-payment-sheet .als-payment-submission__ack {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 9px !important;
}

.als-payment-sheet .als-payment-submission__ack input {
  margin: 1px 0 0 !important;
}

.als-payment-sheet__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 13px 22px 15px !important;
  background: var(--als-receipt-soft) !important;
  border-top: 1px solid var(--als-receipt-line-soft) !important;
}

.als-payment-sheet__footer button {
  min-height: 44px !important;
  padding: 0 3px !important;
  color: var(--als-receipt-ink) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.als-payment-sheet__footer p {
  margin: 0 !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.65rem !important;
  line-height: 1.4 !important;
  text-align: right !important;
}

.als-payment-sheet__reported {
  padding: 32px 24px 34px !important;
  text-align: center !important;
}

.als-payment-sheet__reported-icon {
  display: grid !important;
  place-items: center !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 auto 13px !important;
  color: #0b7b48 !important;
  background: #eaf8f0 !important;
  border: 1px solid #b8e3ca !important;
  border-radius: 50% !important;
}

.als-payment-sheet__reported-icon .als-functional-icon {
  width: 24px !important;
  height: 24px !important;
}

.als-payment-sheet__reported h3 {
  margin: 0 0 7px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
}

.als-payment-sheet__reported p {
  max-width: 470px !important;
  margin: 0 auto 18px !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.55 !important;
}

.als-manual-payment-section--guided.is-reported .als-payment-reminder {
  --als-method: #8a6116;
  --als-method-soft: #fff8e8;
  --als-method-line: #ead9ab;
}

.als-payment-sheet[data-als-payment-state="reported"] {
  --als-method: #8a6116;
  --als-method-soft: #fff8e8;
  --als-method-line: #ead9ab;
}

@media (min-width: 720px) {
  .als-payment-sheet {
    align-items: center !important;
    padding: 24px !important;
  }

  .als-payment-sheet.is-collapsed {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .als-payment-sheet__panel {
    width: min(900px, calc(100vw - 48px)) !important;
    max-height: calc(100dvh - 48px) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 72px rgba(3, 14, 33, 0.24) !important;
    opacity: 0 !important;
    transform: translateY(12px) scale(0.985) !important;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .als-payment-sheet.is-open .als-payment-sheet__panel {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }

  .als-payment-sheet__handle {
    display: none !important;
  }

  .als-payment-sheet__header {
    gap: 12px !important;
    padding: 14px 20px 15px !important;
  }

  .als-payment-sheet__summary {
    padding-inline: 20px !important;
  }

  .als-payment-sheet__summary > span {
    padding-block: 10px !important;
  }

  .als-payment-sheet__steps {
    padding-inline: 20px !important;
  }

  .als-payment-sheet__step {
    gap: 12px !important;
    padding-block: 12px !important;
  }

  .als-payment-sheet__step-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 18px !important;
  }

  .als-payment-sheet__step-content > h3 {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .als-payment-sheet__step-content > p {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .als-payment-sheet__primary-action {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    margin-top: 0 !important;
  }

  .als-payment-sheet__step:nth-child(2) .als-payment-sheet__step-content {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .als-payment-sheet__details {
    grid-column: 1 / -1 !important;
    margin-top: 8px !important;
  }

  .als-payment-sheet .als-payment-sheet__step--report .als-payment-submission--guided {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    min-width: 238px !important;
    margin-top: 0 !important;
  }

  .als-payment-sheet__footer {
    padding: 9px 20px 10px !important;
  }

  .als-payment-sheet__reported {
    padding: 24px 22px 26px !important;
  }
}

@media (min-width: 720px) and (min-height: 700px) {
  .als-payment-sheet__panel {
    max-height: none !important;
  }

  .als-payment-sheet__body {
    overflow-y: visible !important;
  }
}

/* Custom Woo-backed customer receipt ------------------------------- */

body.woocommerce-order-received .woocommerce-order:has(> .als-order-receipt-summary) > ul.woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-order:has(> .als-order-receipt-details) > .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-order:has(> .als-order-receipt-details) > .woocommerce-customer-details {
  display: none !important;
}

.als-order-receipt-summary,
.als-order-receipt-details,
.als-order-receipt-card,
.als-order-receipt-support,
.als-order-receipt-support__card {
  box-sizing: border-box !important;
}

.als-order-receipt-summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 24px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--als-receipt-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(16, 32, 68, 0.04) !important;
}

.als-order-receipt-summary__item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 76px !important;
  padding: 15px 18px !important;
  border-right: 1px solid var(--als-receipt-line-soft) !important;
}

.als-order-receipt-summary__item:last-child {
  border-right: 0 !important;
}

.als-order-receipt-summary__item > span {
  margin-bottom: 5px !important;
  color: #53647d !important;
  font-size: 0.62rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}

.als-order-receipt-summary__item > strong {
  min-width: 0 !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.96rem !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}

.als-order-receipt-details {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.als-order-receipt-details > h2 {
  margin: 0 0 11px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 1.08rem !important;
  font-weight: 880 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
}

.als-order-receipt-card {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--als-receipt-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(16, 32, 68, 0.045) !important;
}

.als-order-receipt-items {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.als-order-receipt-item {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 13px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px 17px !important;
  border-bottom: 1px solid var(--als-receipt-line-soft) !important;
}

.als-order-receipt-item__image {
  display: grid !important;
  place-items: center !important;
  width: 58px !important;
  height: 58px !important;
  overflow: hidden !important;
  color: #53647d !important;
  background: var(--als-receipt-soft) !important;
  border: 1px solid var(--als-receipt-line-soft) !important;
  border-radius: 9px !important;
}

.als-order-receipt-item__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.als-order-receipt-item__image .als-functional-icon {
  width: 22px !important;
  height: 22px !important;
}

.als-order-receipt-item__body {
  min-width: 0 !important;
}

.als-order-receipt-item__body > strong {
  display: block !important;
  margin: 0 0 3px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}

.als-order-receipt-item__body > span {
  display: block !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.als-order-receipt-item__price {
  align-self: center !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.86rem !important;
  font-weight: 880 !important;
  line-height: 1.3 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.als-order-receipt-item__meta {
  display: grid !important;
  gap: 2px !important;
  margin: 5px 0 0 !important;
}

.als-order-receipt-item__meta > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 3px 6px !important;
}

.als-order-receipt-item__meta dt,
.als-order-receipt-item__meta dd {
  margin: 0 !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.66rem !important;
  line-height: 1.35 !important;
}

.als-order-receipt-item__meta dt {
  font-weight: 800 !important;
}

.als-order-receipt-totals {
  width: 100% !important;
  margin: 0 !important;
  padding: 6px 17px 10px !important;
}

.als-order-receipt-total {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto) !important;
  align-items: start !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 9px 0 !important;
  color: var(--als-receipt-ink) !important;
  border-bottom: 1px solid var(--als-receipt-line-soft) !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}

.als-order-receipt-total:last-child {
  border-bottom: 0 !important;
}

.als-order-receipt-total dt,
.als-order-receipt-total dd {
  min-width: 0 !important;
  margin: 0 !important;
}

.als-order-receipt-total dt {
  font-weight: 760 !important;
}

.als-order-receipt-total dd {
  font-weight: 820 !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}

.als-order-receipt-total--grand {
  padding-block: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
}

.als-order-receipt-total--payment dd {
  max-width: 220px !important;
}

.als-order-receipt-support {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

.als-order-receipt-support:has(> .als-order-receipt-support__card:only-child) {
  grid-template-columns: minmax(0, 1fr) !important;
}

.als-order-receipt-support__card {
  min-width: 0 !important;
  padding: 15px 17px !important;
  background: #fff !important;
  border: 1px solid var(--als-receipt-line) !important;
  border-radius: 11px !important;
  box-shadow: 0 10px 28px rgba(16, 32, 68, 0.035) !important;
}

.als-order-receipt-support__card h3 {
  margin: 0 0 7px !important;
  color: var(--als-receipt-ink) !important;
  font-size: 0.8rem !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
}

.als-order-receipt-support__card strong,
.als-order-receipt-support__card address,
.als-order-receipt-support__card a {
  display: block !important;
  margin: 0 !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.72rem !important;
  font-style: normal !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}

.als-order-receipt-support__card strong {
  margin-bottom: 3px !important;
  color: var(--als-receipt-ink) !important;
  font-weight: 780 !important;
}

.als-order-receipt-support__card a {
  min-height: 24px !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

@media (min-width: 900px) {
  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .als-order-receipt-summary {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .als-manual-payment-section {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .als-order-receipt-details {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  body.woocommerce-order-received .woocommerce-order:not(:has(> .als-manual-payment-section)):has(> .als-order-receipt-details) {
    max-width: 860px !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 620px) {
  .als-order-receipt-summary {
    grid-template-columns: minmax(0, 1fr) auto !important;
    margin-bottom: 20px !important;
  }

  .als-order-receipt-summary__item {
    min-height: 70px !important;
    padding: 13px 14px !important;
  }

  .als-order-receipt-summary__item--order {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .als-order-receipt-summary__item--total {
    grid-column: 2 !important;
    grid-row: 1 !important;
    border-right: 0 !important;
    text-align: right !important;
  }

  .als-order-receipt-summary__item--date {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-height: 58px !important;
    border-top: 1px solid var(--als-receipt-line-soft) !important;
    border-right: 0 !important;
  }

  .als-order-receipt-item {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .als-order-receipt-item__image {
    width: 52px !important;
    height: 52px !important;
  }

  .als-order-receipt-totals {
    padding-inline: 14px !important;
  }

  .als-order-receipt-support {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Compact native order detail card ---------------------------------- */

body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: var(--als-receipt-ink) !important;
  border: 0 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
}

body.woocommerce-order-received .woocommerce-order-details table,
body.woocommerce-order-received .woocommerce-customer-details address {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--als-receipt-line) !important;
  border-radius: var(--als-receipt-radius) !important;
  box-shadow: 0 10px 28px rgba(16, 32, 68, 0.04) !important;
}

body.woocommerce-order-received .woocommerce-order-details th,
body.woocommerce-order-received .woocommerce-order-details td {
  padding: 12px 14px !important;
  color: var(--als-receipt-ink) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--als-receipt-line-soft) !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere !important;
}

body.woocommerce-order-received .woocommerce-order-details tr:last-child th,
body.woocommerce-order-received .woocommerce-order-details tr:last-child td {
  border-bottom: 0 !important;
}

body.woocommerce-order-received .woocommerce-customer-details address {
  padding: 14px !important;
  color: var(--als-receipt-muted) !important;
  font-size: 0.78rem !important;
  font-style: normal !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}

@media (min-width: 900px) {
  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.38fr) minmax(330px, 0.72fr) !important;
    align-items: start !important;
    gap: 0 32px !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > h1,
  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > h2:first-child {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > ul.woocommerce-order-overview {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .als-manual-payment-section {
    grid-column: 1 !important;
    grid-row: 3 / span 2 !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .woocommerce-order-details {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .woocommerce-customer-details {
    grid-column: 2 !important;
    grid-row: 4 !important;
    margin-top: 22px !important;
  }

  body.woocommerce-order-received .woocommerce-order:not(:has(> .als-manual-payment-section)) {
    max-width: 860px !important;
    margin-inline: auto !important;
  }

  body.woocommerce-order-received .woocommerce-order:not(:has(> .als-manual-payment-section)) .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-order:not(:has(> .als-manual-payment-section)) .woocommerce-customer-details {
    margin-top: 22px !important;
  }
}

@media (max-width: 899px) {
  body.woocommerce-order-received .site-main {
    padding-block: 20px 70px !important;
  }

  body.woocommerce-order-received .site-main > .woocommerce,
  body.woocommerce-order-received .entry-content > .woocommerce,
  body.woocommerce-order-received .woocommerce-order {
    width: min(100% - 32px, 720px) !important;
  }

  body.woocommerce-order-received .als-manual-payment-section,
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details {
    margin-bottom: 22px !important;
  }
}

@media (max-width: 620px) {
  body.woocommerce-order-received .site-main > .woocommerce,
  body.woocommerce-order-received .entry-content > .woocommerce,
  body.woocommerce-order-received .woocommerce-order {
    width: calc(100% - 28px) !important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview > li {
    padding-inline: 9px !important;
    font-size: 0.6rem !important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview > li strong {
    font-size: 0.78rem !important;
  }

  .als-manual-payment-card__header {
    padding-inline: 15px !important;
  }

  .als-manual-payment-card__task {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 15px !important;
  }

  .als-manual-payment-card__amount,
  .als-manual-payment-card__primary-action,
  .als-manual-payment-card__copy-stack {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .als-manual-payment-card__copy-box > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .als-manual-payment-copy {
    width: 100% !important;
  }

  .als-payment-submission {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-inline: 15px !important;
  }

  .als-payment-submission__launch {
    width: 100% !important;
  }

  .als-payment-submission__disclaimer,
  .als-payment-submission__panel {
    grid-column: 1 !important;
  }

  .als-manual-payment-card__footer {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .als-payment-reminder {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 10px 12px !important;
    min-height: 0 !important;
    padding: 14px !important;
  }

  .als-payment-reminder__brand,
  .als-payment-reminder__mark {
    width: 60px !important;
  }

  .als-payment-reminder__mark img {
    max-width: 60px !important;
  }

  .als-payment-reminder__action {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .als-payment-sheet__header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 3px 12px !important;
    padding: 5px 16px 13px !important;
  }

  .als-payment-sheet__handle {
    height: 32px !important;
    min-height: 32px !important;
  }

  .als-payment-sheet__brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .als-payment-sheet__close {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative !important;
    align-self: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: -1px -3px 0 0 !important;
    color: var(--als-receipt-ink) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 0 !important;
  }

  .als-payment-sheet__close::before {
    position: absolute !important;
    inset: 3px !important;
    content: '' !important;
    background: var(--als-receipt-soft) !important;
    border: 1px solid var(--als-receipt-line) !important;
    border-radius: 50% !important;
  }

  .als-payment-sheet__close span {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    transform: none !important;
  }

  .als-payment-sheet__close span::before,
  .als-payment-sheet__close span::after {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 13px !important;
    height: 1.5px !important;
    content: '' !important;
    background: currentColor !important;
    border-radius: 999px !important;
  }

  .als-payment-sheet__close span::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  .als-payment-sheet__close span::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

  .als-payment-sheet__heading {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  .als-payment-sheet__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 0 16px !important;
  }

  .als-payment-sheet__summary > span {
    padding: 11px 10px !important;
  }

  .als-payment-sheet__summary > span:nth-child(2) {
    padding-right: 0 !important;
    border-right: 0 !important;
  }

  .als-payment-sheet__summary > span:last-child {
    grid-column: 1 / -1 !important;
    padding: 9px 0 11px !important;
    border-top: 1px solid var(--als-receipt-line-soft) !important;
  }

  .als-payment-sheet__steps {
    padding: 0 16px !important;
  }

  .als-payment-sheet__step {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 15px 0 !important;
  }

  .als-payment-sheet__step-number {
    width: 30px !important;
    height: 30px !important;
  }

  .als-payment-sheet__primary-action > a,
  .als-payment-sheet .als-payment-submission--guided .als-payment-submission__launch {
    width: 100% !important;
  }

  .als-payment-sheet__details {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .als-payment-sheet .als-manual-payment-card__copy-box > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .als-payment-sheet .als-manual-payment-copy {
    width: 100% !important;
  }

  .als-payment-sheet .als-payment-submission__actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .als-payment-sheet .als-payment-submission__confirm,
  .als-payment-sheet .als-payment-submission__cancel {
    width: 100% !important;
  }

  .als-payment-sheet__footer {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .als-payment-sheet__footer p {
    text-align: left !important;
  }
}

@media (max-width: 390px) {
  body.woocommerce-order-received ul.woocommerce-order-overview {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(0, 0.9fr) !important;
  }

  .als-manual-payment-card__header {
    grid-template-columns: minmax(0, 1fr) 78px !important;
    gap: 9px !important;
  }

  .als-manual-payment-card__mark img {
    max-width: 78px !important;
  }
}

/* Keep the custom receipt in the intended grid after legacy fallback
   rules. The fallback selectors remain for older cached markup only. */
@media (min-width: 900px) {
  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .als-order-receipt-summary {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .als-manual-payment-section {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  body.woocommerce-order-received .woocommerce-order:has(> .als-manual-payment-section) > .als-order-receipt-details {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }
}

@media (max-width: 899px) {
  body.woocommerce-order-received .als-order-receipt-details {
    margin-bottom: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .als-manual-payment-card--v2,
  .als-payment-submission,
  .als-manual-payment-copy,
  .als-payment-submission__panel,
  .als-payment-sheet,
  .als-payment-sheet__panel {
    animation: none !important;
    transition: none !important;
  }
}
