#public-payment-root {
  min-height: 100%;
  display: none;
  box-sizing: border-box;
  background: #0b1020;
}

#public-payment-root.public-visible {
  display: grid;
  place-items: center;
  padding: 20px;
}

.public-card {
  width: min(430px, 100%);
  box-sizing: border-box;
  color: #111827;
}

.public-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.public-muted {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 14px;
  font-weight: 800;
}

.public-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.public-default-card {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.public-template-default {
  background:
    radial-gradient(circle at top, rgba(56, 103, 244, 0.2), transparent 34%),
    #0b1020;
}

#public-payment-root.public-template-cashapp.public-visible {
  place-items: start center;
  padding: 24px 16px;
  background: #f5f5f7;
  font-family: "Nunito", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}

.public-cashapp-card {
  position: relative;
  width: min(448px, 100%);
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.cashapp-grabber {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: #d1d5db;
}

.cashapp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  text-align: center;
}

.cashapp-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.cashapp-payee {
  color: #00b341;
}

.cashapp-check {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  color: #1da1f2;
}

.cashapp-check-badge {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

.cashapp-check-mark {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cashapp-secure-pill {
  width: fit-content;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 20px;
  padding: 6px 12px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #f0fdf4;
  color: #00b341;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.cashapp-shield {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cashapp-method-card {
  height: 158px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  color: #111827;
  text-align: center;
}

.cashapp-method-card strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.cashapp-method-card span:not(.cashapp-logo) {
  display: block;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.public-method-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  margin: 24px 0;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 700;
}

.public-method-row {
  border: 1px solid #dbe4f5;
  border-radius: 10px;
  background: #f6f8ff;
  color: #1d4ed8;
}

.public-input-wrap {
  position: relative;
  margin-top: 18px;
}

.public-input-wrap span {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #111827;
  font-weight: 800;
}

.public-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 38px;
  box-sizing: border-box;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.public-input:focus {
  border-color: #3867f4;
  box-shadow: 0 0 0 3px rgba(56, 103, 244, 0.14);
}

.public-template-cashapp .public-input {
  height: 50px;
  padding: 12px 16px 12px 36px;
  border-color: #00d54b;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.public-template-cashapp .public-input:focus {
  border-color: #00d54b;
  box-shadow: none;
}

.public-template-cashapp .public-input-wrap {
  margin-top: 12px;
}

.public-section-label {
  margin: 22px 0 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cashapp-amount-panel {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(220, 252, 231, 0.7);
}

.cashapp-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #00b341;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
}

.cashapp-dollar {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cashapp-dollar text {
  fill: currentColor;
  stroke: none;
  font-size: 11px;
  font-weight: 700;
}

.public-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.public-amount {
  height: 46px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.public-amount:hover {
  background: #f6f8ff;
  border-color: #9db2ff;
}

.public-amount.selected {
  border-color: #3867f4;
  background: #e9eeff;
  color: #1d4ed8;
}

.public-template-cashapp .public-amount {
  height: 50px;
  border-color: #bbf7d0;
  color: #111827;
  font-weight: 600;
}

.public-template-cashapp .public-amount:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.public-template-cashapp .public-amount.selected {
  border-color: #00d54b;
  background: #00d54b;
  color: #ffffff;
}

.public-toggle {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #e9eeff;
  color: #1d4ed8;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.public-template-cashapp .public-toggle {
  height: 40px;
  margin-top: 12px;
  padding: 10px 0;
  background: #bbf7d0;
  color: #00b341;
  font-size: 14px;
  font-weight: 600;
}

.public-submit {
  width: 100%;
  height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: #3867f4;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 14px 30px rgba(56, 103, 244, 0.24);
}

.public-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.public-template-cashapp .public-submit {
  height: 56px;
  margin-top: 0;
  gap: 12px;
  background: #00d54b;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 213, 75, 0.35);
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.cashapp-pay-lock {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-template-cashapp .public-submit:hover {
  background: #00c044;
}

.public-template-cashapp .public-submit:active {
  transform: scale(0.98);
}

.public-template-cashapp .public-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.public-error {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.45;
}

.public-error-title {
  color: #7f1d1d;
  font-weight: 800;
}

.public-error-message {
  margin-top: 4px;
  color: #b91c1c;
}

.public-template-cashapp .public-error {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.public-template-cashapp .public-error-title {
  color: #9a3412;
}

.public-template-cashapp .public-error-message {
  color: #c2410c;
}

.public-error-card,
.public-loading-card,
.public-invoice-loading {
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.public-invoice-loading {
  text-align: center;
}

.cashapp-loader-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6b7280;
  text-align: center;
}

.cashapp-loader-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 18px;
}

.cashapp-loader-logo .cashapp-logo {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.18));
}

.cashapp-loader-ping {
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  background: rgba(0, 213, 75, 0.3);
  animation: cashapp-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.cashapp-loader-ping.delay {
  animation-delay: 600ms;
}

.cashapp-loader-page p {
  display: flex;
  justify-content: center;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.cashapp-loader-dots span {
  display: inline-block;
  animation: cashapp-bounce 1s infinite;
}

.cashapp-loader-dots span:nth-child(2) {
  animation-delay: 150ms;
}

.cashapp-loader-dots span:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes cashapp-ping {
  75%, 100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes cashapp-bounce {
  0%, 100% {
    transform: translateY(-25%);
  }

  50% {
    transform: translateY(0);
  }
}

.public-loading-dots {
  margin-top: 8px;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
}

.public-loading-dots span {
  display: inline-block;
  animation: public-dot 1s infinite ease-in-out;
}

.public-loading-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.public-loading-dots span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes public-dot {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.cashapp-logo {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}

.cashapp-logo-large {
  width: 74px;
  height: 74px;
  border-radius: 0;
  box-shadow: 0 18px 38px rgba(0, 213, 75, 0.26);
}

.cashapp-logo-button {
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 5px;
  box-shadow: none;
}

.cashapp-pay-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.cashapp-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.cashapp-powered strong {
  color: #4b5563;
  font-weight: 500;
}

.cashapp-powered-dot {
  width: 14px;
  height: 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
}

.public-invoice-hero {
  display: grid;
  place-items: center;
  margin: 12px 0 22px;
}

.public-cashapp-invoice-card {
  padding: 20px;
}

.cashapp-countdown {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fffbeb;
  color: #b45309;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  letter-spacing: 0.05em;
}

.cashapp-countdown.expired {
  background: #fef2f2;
  color: #b91c1c;
}

.cashapp-amount-label {
  margin: 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.cashapp-invoice-amount {
  margin: 8px 0;
  color: #00d54b;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.public-template-cashapp .public-scan-text {
  margin: 0 0 20px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 20px;
}

.cashapp-qr-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.cashapp-qr {
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 200ms ease;
}

.cashapp-qr.expired {
  opacity: 0.3;
}

.cashapp-qr img,
.cashapp-qr svg {
  width: 240px;
  height: 240px;
  display: block;
}

.cashapp-qr-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cashapp-qr-logo .cashapp-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  outline: 4px solid #ffffff;
}

.cashapp-qr-unavailable {
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

.cashapp-info-row,
.cashapp-lightning-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f9fafb;
}

.cashapp-info-row span {
  display: block;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 14px;
  text-transform: uppercase;
}

.cashapp-info-row strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.cashapp-info-row em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cashapp-info-row em.expired {
  background: #fee2e2;
  color: #b91c1c;
}

.cashapp-info-row svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cashapp-lightning-row {
  margin-bottom: 20px;
}

.cashapp-lightning-row span {
  color: #9ca3af;
  font-size: 14px;
  line-height: 20px;
}

.cashapp-lightning-row strong {
  min-width: 0;
  color: #374151;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  overflow-wrap: anywhere;
  text-align: right;
}

.public-invoice-hero img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.public-countdown,
.public-invoice-amount,
.public-invoice-meta {
  text-align: center;
}

.public-countdown span,
.public-invoice-amount span,
.public-invoice-meta span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.public-countdown strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.public-invoice-amount {
  margin-top: 18px;
}

.public-invoice-amount strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.public-scan-text {
  margin: 18px 0;
  text-align: center;
}

.public-invoice-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.public-status-pill {
  width: fit-content;
  margin: 18px auto 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.public-invoice-label {
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.public-invoice {
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f7fb;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

.public-copy {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.public-template-cashapp .public-copy {
  width: fit-content;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #374151;
  font-weight: 600;
  transition: color 160ms ease, opacity 160ms ease;
}

.public-template-cashapp .public-copy:hover {
  color: #00b341;
}

.public-template-cashapp .public-copy.copied {
  color: #374151;
}

.public-template-cashapp .public-copy:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.public-template-cashapp .public-copy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-copy-feedback {
  margin-top: 10px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.public-settle-note {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.public-template-cashapp .public-settle-note {
  margin-top: 12px;
  color: #9ca3af;
  font-size: 12px;
}

.cashapp-paid-card {
  padding: 32px;
  text-align: center;
}

.cashapp-paid-check {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #00d54b;
  color: #ffffff;
  font-size: 48px;
  line-height: 1;
}

.cashapp-paid-card h1 {
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.cashapp-paid-amount {
  margin: 12px 0;
  color: #00d54b;
  font-size: 36px;
  font-weight: 800;
  line-height: 40px;
}

.cashapp-paid-card p {
  margin: 0 0 24px;
  color: #9ca3af;
}

.cashapp-new-payment {
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cashapp-new-payment:hover {
  background: #e5e7eb;
}

@media (max-width: 480px) {
  #public-payment-root.public-visible {
    padding: 16px;
  }

  #public-payment-root.public-template-cashapp.public-visible {
    padding: 24px 16px;
  }

  .public-default-card,
  .public-cashapp-card {
    padding: 24px;
  }

  .public-template-cashapp .public-cashapp-card {
    padding: 20px;
  }

  .public-card h1 {
    font-size: 25px;
  }

  .cashapp-invoice-amount {
    font-size: 44px;
  }

  .cashapp-qr-wrap {
    padding: 16px;
  }
}
