:root {
  --bg: #f7faf8;
  --panel: #ffffff;
  --text: #07111f;
  --muted: #667085;
  --line: #dbe5df;
  --primary: #079447;
  --primary-dark: #047a39;
  --primary-soft: rgba(7, 148, 71, 0.1);
  --green: #079447;
  --green-soft: rgba(7, 148, 71, 0.12);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 18px 42px rgba(15, 23, 42, 0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  letter-spacing: 0;
}

.logoMark {
  width: 46px;
  height: 46px;
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-auto-rows: 9px;
  gap: 5px;
  align-content: center;
  justify-content: center;
  border-radius: 14px;
  background: #eafaf2;
}

.logoMark span {
  display: block;
  background: #12d95b;
  border-radius: 2px;
}

.logoMark span:nth-child(2) {
  background: #0b923f;
}

.logoMark span:nth-child(3) {
  grid-column: 1 / 3;
  width: 23px;
  justify-self: center;
  background: #12d95b;
}

.logoMark--small {
  width: 34px;
  height: 34px;
  grid-template-columns: repeat(2, 7px);
  grid-auto-rows: 7px;
  gap: 4px;
  border-radius: 11px;
}

.logoMark--small span:nth-child(3) {
  width: 18px;
}

.logoText {
  margin-top: 14px;
  font-size: 25px;
  line-height: 1;
  color: #3c3f44;
}

.logoText strong {
  color: #1f9c53;
}

.logoText span {
  color: #9ca3af;
  font-weight: 500;
}

.logoText--small {
  margin-top: 0;
  font-size: 18px;
}

.brandLogo {
  display: block;
  width: 176px;
  max-width: 58vw;
  height: auto;
}

.appShell {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background:
    radial-gradient(circle at top, rgba(7, 148, 71, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfffd 0%, #f3f7f5 100%);
}

.appFrame {
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 10px calc(14px + var(--safe-bottom));
}

.card {
  width: 100%;
  background: var(--panel);
  border: 1px solid #dfe8e3;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 14px 14px;
  animation: cardLiftIn 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardLiftIn {
  from {
    transform: translateY(12px) scale(0.995);
    opacity: 0.82;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.brandLockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.introCopy {
  margin-bottom: 16px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 750;
}

.introCopy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.landingPayee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 0 auto 9px;
  color: #4f5f78;
  font-size: 13px;
  line-height: 1.3;
}

.landingPayee strong {
  color: #07111f;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 850;
}

.choiceStack {
  display: grid;
  gap: 12px;
}

.desktopChoicePanel {
  display: none;
}

.choiceButton {
  width: 100%;
  min-height: 112px;
  padding: 14px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choiceButton:hover,
.choiceButton:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(7, 148, 71, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.choiceButton--photo {
  border-color: rgba(7, 148, 71, 0.28);
  background:
    linear-gradient(180deg, rgba(7, 148, 71, 0.06), transparent 54%),
    #ffffff;
}

.choiceIcon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  position: relative;
}

.choiceIcon::before {
  content: "";
  width: 28px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 7px;
}

.cameraLens {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: #fff;
}

.choiceIcon--manual {
  background: var(--green-soft);
  color: var(--green);
}

.choiceIcon--manual::before {
  width: 25px;
  height: 30px;
  border-radius: 6px;
}

.choiceIcon--manual span {
  position: absolute;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 8px 0 currentColor;
}

.choiceButton strong,
.choiceButton small {
  display: block;
}

.choiceButton strong {
  font-size: 16px;
  line-height: 1.2;
}

.choiceButton small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.helperText {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.paymentMethodBrand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf3ef;
}

.paymentMethodBrand__label {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.brandLogo--choice {
  width: 150px;
  max-width: 48vw;
  opacity: 0.95;
}

.qrPayPanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  gap: 22px;
  align-items: center;
  min-height: 214px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fbf8 0%, #ffffff 100%);
}

.qrPayPanel__copy strong,
.qrPayPanel__copy span {
  display: block;
}

.qrPayPanel__copy strong {
  color: #07111f;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 850;
}

.qrPayPanel__copy span {
  max-width: 300px;
  margin-top: 8px;
  color: #596579;
  font-size: 14px;
  line-height: 1.45;
}

.qrCodeLink {
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe8e3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 17, 31, 0.08);
}

.qrCodeImage {
  width: 164px;
  height: 164px;
}

.mobileDisclosure:not([hidden]) {
  display: block;
  width: 100%;
  max-width: 430px;
  margin: 10px auto 0;
  padding: 0 10px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.mobileDisclosure p {
  margin: 4px 0 0;
}

.mobileDisclosure p:first-child {
  margin-top: 0;
}

@media (min-width: 860px) {
  .appFrame {
    max-width: 460px;
  }

  .screen {
    align-items: center;
  }
}

body.is-desktop-choice .appShell {
  align-items: center;
  padding: 32px;
}

body.is-desktop-choice .appFrame {
  width: min(100%, 860px);
  max-width: 860px;
  min-height: min(720px, calc(100svh - 64px));
  justify-content: center;
}

body.is-desktop-choice .screen {
  min-height: auto;
}

body.is-desktop-choice .card--intro {
  padding: 30px;
}

body.is-desktop-choice h1 {
  max-width: 620px;
  font-size: 30px;
}

body.is-desktop-choice .choiceStack--mobile {
  display: none;
}

body.is-desktop-choice .desktopChoicePanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
}

body.is-desktop-choice .choiceButton--desktopManual {
  min-height: 214px;
  grid-template-columns: 54px minmax(0, 1fr);
}

body.is-desktop-choice .choiceButton--desktopManual::after {
  display: none;
}

body.is-desktop-choice .paymentMethodBrand {
  margin-top: 22px;
}

body.is-mobile-choice .desktopChoicePanel {
  display: none;
}

@media (max-width: 360px) {
  .card {
    padding: 15px 12px 12px;
  }

  h1 {
    font-size: 22px;
  }

  .choiceButton {
    min-height: 104px;
  }
}

/* Product finish pass */
.appShell {
  background: linear-gradient(180deg, #fbfffd 0%, #edf4f1 100%);
}

.appFrame {
  justify-content: center;
}

.card--intro {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 20px;
  border-color: #dfe8e3;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(7, 17, 31, 0.10);
}

.card--intro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #047a3b, #079447 52%, #36bf73);
}

.eyebrow {
  background: #e7f6ed;
  color: #047a3b;
  font-weight: 800;
}

h1 {
  max-width: 340px;
  font-size: 18px;
  font-weight: 850;
  color: #07111f;
}

.introCopy p {
  color: #596579;
}

.choiceStack {
  gap: 14px;
}

.choiceButton {
  position: relative;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  min-height: 118px;
  border-color: #dce6e1;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.05);
}

.choiceButton::after {
  content: "";
  width: 10px;
  height: 10px;
  justify-self: end;
  border-right: 2px solid #98a6b3;
  border-bottom: 2px solid #98a6b3;
  transform: rotate(-45deg);
  transition: border-color 160ms ease, transform 160ms ease;
}

.choiceButton:hover::after,
.choiceButton:focus-visible::after {
  border-color: #079447;
  transform: translateX(2px) rotate(-45deg);
}

.choiceButton--photo {
  border-color: rgba(7, 148, 71, 0.34);
  background:
    linear-gradient(180deg, rgba(7, 148, 71, 0.075), transparent 58%),
    #ffffff;
}

.choiceIcon {
  border-radius: 15px;
  background: #e7f6ed;
  box-shadow: inset 0 0 0 1px rgba(7, 148, 71, 0.08);
}

.choiceButton strong {
  color: #07111f;
  font-size: 16px;
  font-weight: 850;
}

.choiceButton small {
  color: #596579;
  font-size: 12px;
}

.helperText {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #596579;
}

.paymentMethodBrand {
  margin-top: 17px;
}

@media (min-width: 860px) {
  .appShell {
    align-items: center;
    padding: 32px;
  }

  .appFrame {
    min-height: min(760px, calc(100svh - 64px));
  }
}

@media (max-width: 420px) {
  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card--intro {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brandLogo--choice {
    width: 142px;
  }

  .choiceButton {
    min-height: 112px;
    padding-left: 13px;
    padding-right: 13px;
  }
}

/* Desktop payment choice modal */
body.is-desktop-choice .appShell {
  min-height: 100svh;
  align-items: center;
  padding: 20px;
  background: #f7faf8;
}

body.is-desktop-choice .appFrame {
  width: min(100%, 835px);
  max-width: 835px;
  min-height: auto;
}

body.is-desktop-choice .screen {
  width: 100%;
  min-height: auto;
  padding: 0;
}

body.is-desktop-choice .card--intro {
  width: 100%;
  padding: 24px 30px 19px;
  border-color: #d8dee4;
  border-radius: 19px;
  box-shadow: 0 16px 38px rgba(7, 17, 31, 0.13);
}

body.is-desktop-choice .card--intro::before {
  height: 4px;
}

body.is-desktop-choice .introCopy {
  margin-bottom: 17px;
}

body.is-desktop-choice .eyebrow {
  min-height: 24px;
  padding: 0 10px;
  margin-bottom: 12px;
  position: relative;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
}

.eyebrowIcon {
  width: 14px;
  height: 16px;
  flex: 0 0 auto;
}

body.is-desktop-choice h1 {
  max-width: none;
  font-size: 22px;
  line-height: 1.04;
}

body.is-desktop-choice .introCopy p {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.2;
}

body.is-desktop-choice .landingPayee {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
}

body.is-desktop-choice .landingPayee strong {
  font-size: clamp(25px, 2.4vw, 32px);
}

body.is-desktop-choice .desktopChoicePanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.desktopPayOption {
  min-height: 291px;
  padding: 19px 22px 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #d8dee4;
  border-radius: 15px;
  background: #ffffff;
  text-align: center;
}

.desktopPayOption--phone {
  border-color: #079447;
  background: linear-gradient(135deg, rgba(7, 148, 71, 0.075), #ffffff 72%);
}

.desktopPayOption__visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktopPayOption__visual--phone {
  min-height: 109px;
  gap: 10px;
}

.desktopPayOption__visual--computer {
  min-height: 109px;
  padding-top: 2px;
}

.phoneScanIcon {
  width: 60px;
  height: 94px;
  color: #079447;
  flex: 0 0 auto;
}

.scanArrowIcon {
  width: 36px;
  height: 24px;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 10px rgba(7, 148, 71, 0.24));
}

body.is-desktop-choice .qrCodeLink {
  width: 184px;
  height: 184px;
  border-color: #d7e0dc;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body.is-desktop-choice .qrCodeImage {
  width: 184px;
  height: 184px;
  image-rendering: pixelated;
}

.computerBadge {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle, #e9f8ef 0%, #d6f0df 100%);
}

.computerIconSvg {
  width: 58px;
  height: 50px;
  color: #079447;
  filter: drop-shadow(0 8px 10px rgba(7, 148, 71, 0.14));
}

.desktopPayOption h2 {
  margin: 9px 0 0;
  font-size: 20px;
  line-height: 1.14;
  font-weight: 850;
  color: #07111f;
}

.desktopPayOption p {
  max-width: 264px;
  min-height: 43px;
  margin: 8px 0 14px;
  color: #596579;
  font-size: 15px;
  line-height: 1.35;
}

.desktopAction {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid #079447;
  border-radius: 8px;
  color: #07853f;
  background: #ffffff;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.desktopAction:hover,
.desktopAction:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(7, 148, 71, 0.18);
}

.desktopAction--primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(180deg, #079447, #047a39);
}

.desktopAction--secondary:hover,
.desktopAction--secondary:focus-visible {
  background: #f3fbf6;
}

.desktopAction__keyboardIconSvg {
  width: 30px;
  height: 20px;
  flex: 0 0 auto;
}

body.is-desktop-choice .helperText {
  margin-top: 15px;
  font-size: 14px;
}

.helperText__icon {
  width: 13px;
  height: 13px;
  color: #079447;
  flex: 0 0 auto;
}

body.is-desktop-choice .paymentMethodBrand {
  margin-top: 12px;
  padding-top: 10px;
}

body.is-desktop-choice .paymentMethodBrand__label {
  font-size: 7px;
}

body.is-desktop-choice .brandLogo--choice {
  width: 158px;
  max-width: 158px;
}

.secureFooter {
  width: 100%;
  padding: 18px 12px 0;
  color: #45546a;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.secureFooter__assurances,
.secureFooter__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.secureFooter__links {
  gap: 18px;
  margin-top: 10px;
}

.secureFooter strong {
  color: #00843d;
  font-weight: 800;
}

.disclosurePanel:not([hidden]) {
  width: 100%;
  max-width: none;
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid #dbe5df;
  border-radius: 12px;
  background: #f8fbfa;
  color: #596579;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.disclosurePanel p {
  margin: 6px 0 0;
}

.disclosurePanel p:first-child {
  margin-top: 0;
}

body.is-desktop-choice .disclosurePanel:not([hidden]) {
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.4;
}

.paidReceipt {
  text-align: left;
}

.paidReceipt__kicker {
  color: #07823f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.paidReceipt h1 {
  color: #0d1b2a;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 8px;
}

.paidReceipt p {
  color: #526176;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 22px;
}

.paidReceipt__details {
  border: 1px solid #d8e3ea;
  border-radius: 10px;
  overflow: hidden;
}

.paidReceiptRow {
  align-items: center;
  border-bottom: 1px solid #edf2f5;
  display: flex;
  font-size: 14px;
  gap: 18px;
  justify-content: space-between;
  padding: 13px 16px;
}

.paidReceiptRow:last-child {
  border-bottom: 0;
}

.paidReceiptRow span {
  color: #607086;
}

.paidReceiptRow strong {
  color: #102033;
  text-align: right;
}

@media (max-width: 1180px) {
  body.is-desktop-choice .card--intro {
    padding: 20px 24px 17px;
  }

  body.is-desktop-choice .desktopChoicePanel {
    gap: 18px;
  }

  .desktopPayOption {
    padding: 17px;
  }

  .desktopPayOption__visual--phone {
    gap: 8px;
  }

  body.is-desktop-choice .qrCodeLink {
    width: 168px;
    height: 168px;
  }

  body.is-desktop-choice .qrCodeImage {
    width: 168px;
    height: 168px;
  }

  .desktopPayOption h2 {
    font-size: 18px;
  }

  .desktopPayOption p {
    font-size: 14px;
  }

  .desktopAction {
    min-height: 43px;
    font-size: 15px;
  }
}

/* Purple action theme. Keep green for security/success cues. */
:root {
  --action: #635bff;
  --action-dark: #4f46e5;
  --action-soft: rgba(99, 91, 255, 0.12);
}

.choiceButton:hover,
.choiceButton:focus-visible {
  border-color: var(--action);
  box-shadow: 0 14px 32px rgba(99, 91, 255, 0.16);
}

.choiceButton:hover::after,
.choiceButton:focus-visible::after {
  border-color: var(--action);
}

.desktopAction {
  border-color: var(--action);
  color: var(--action-dark);
}

.desktopAction:hover,
.desktopAction:focus-visible {
  box-shadow: 0 14px 30px rgba(99, 91, 255, 0.18);
}

.desktopAction--primary {
  background: linear-gradient(180deg, var(--action) 0%, var(--action-dark) 100%);
  color: #ffffff;
}

.desktopAction--secondary:hover,
.desktopAction--secondary:focus-visible {
  background: var(--action-soft);
}

.card--intro::before {
  background: linear-gradient(90deg, var(--action-dark), var(--action) 52%, #8b5cf6);
}

.eyebrow {
  background: transparent;
  color: var(--green);
}

.choiceButton--photo,
body.is-desktop-choice .desktopPayOption--phone {
  border-color: rgba(99, 91, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(99, 91, 255, 0.075), transparent 58%),
    #ffffff;
}

.choiceIcon,
.computerBadge {
  background: rgba(99, 91, 255, 0.12);
  color: var(--action);
  box-shadow: inset 0 0 0 1px rgba(99, 91, 255, 0.10);
}

.phoneScanIcon,
.scanArrowIcon,
.computerIconSvg,
.helperText__icon {
  color: var(--action);
}

.scanArrowIcon,
.computerIconSvg {
  filter: drop-shadow(0 8px 10px rgba(99, 91, 255, 0.16));
}

.secureFooter strong {
  color: var(--action-dark);
}

.helperText__icon {
  color: var(--green);
}

.appShell,
body.is-desktop-choice .appShell {
  background: #ffffff;
}

.choiceButton--photo,
body.is-desktop-choice .desktopPayOption--phone {
  background: #ffffff;
}
