.rrpo-pay {
  margin: 1.5rem auto 2rem;
  max-width: 28rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
  text-align: center;
}
.rrpo-pay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rrpo-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}
.rrpo-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.3;
}
.rrpo-coin-line {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #475467;
}
.rrpo-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #101828;
  margin: 0 0 0.75rem;
}
.rrpo-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-weight: 600;
}
.rrpo-status--waiting { color: #b54708; }
.rrpo-status--paid,
.rrpo-status--seen { color: #067647; }
.rrpo-status--short { color: #b42318; }
.rrpo-status--expired { color: #475467; }
.rrpo-loader {
  width: 1.1rem;
  height: 1.1rem;
  border: 2.5px solid #ead8c4;
  border-top-color: #b54708;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rrpo-spin 0.9s linear infinite;
  flex-shrink: 0;
}
.rrpo-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f79009;
  box-shadow: 0 0 0 0 rgba(247, 144, 9, 0.55);
  animation: rrpo-pulse 1.6s ease-out infinite;
}
.rrpo-demo-badge {
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #344054;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
}
.rrpo-qr--demo .rrpo-qr-ph {
  display: block;
  width: 240px;
  height: 240px;
  background: repeating-linear-gradient(
    -45deg,
    #f2f4f7,
    #f2f4f7 12px,
    #e4e7ec 12px,
    #e4e7ec 24px
  );
  border-radius: 4px;
}
.rrpo-qr {
  position: relative;
  display: inline-flex;
  padding: 10px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  margin: 0 0 1rem;
}
.rrpo-qr img,
.rrpo-qr-code,
.rrpo-qr-code svg {
  display: block;
  width: 240px;
  height: 240px;
}
.rrpo-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px !important;
  height: 42px !important;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px #fff;
  object-fit: contain;
}
.rrpo-order-value {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #475467;
}
.rrpo-order-value-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667085;
}
.rrpo-order-value-amount {
  font-weight: 600;
  color: #101828;
}
.rrpo-pay-notes {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #667085;
}
.rrpo-pay-notes li {
  margin: 0 0 0.35rem;
}
.rrpo-pay-notes li:last-child {
  margin-bottom: 0;
}
.rrpo-txid-wrap {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475467;
  word-break: break-all;
}
.rrpo-txid-kicker {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667085;
}
.rrpo-txid,
.rrpo-txid-link code {
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.rrpo-txid-link {
  color: #175cd3;
  text-decoration: none;
}
.rrpo-txid-link:hover {
  text-decoration: underline;
}
.rrpo-amount {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.rrpo-amount--hero {
  margin: 0 0 1rem;
}
.rrpo-fees-included {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #667085;
}
.rrpo-payment-details {
  width: 100%;
  margin: 0 0 1rem;
  text-align: left;
}
.rrpo-payment-details > summary {
  cursor: pointer;
  font-size: 0.8125rem;
  color: #475467;
  list-style: none;
}
.rrpo-payment-details > summary::-webkit-details-marker {
  display: none;
}
.rrpo-payment-details > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
.rrpo-payment-details[open] > summary::before {
  transform: rotate(90deg);
}
.rrpo-payment-details .rrpo-breakdown {
  margin-top: 0.65rem;
}
.rrpo-amount-kicker {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #667085;
}
.rrpo-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #475467;
}
.rrpo-addr-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.8rem;
  color: #667085;
}
.rrpo-addr {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  word-break: break-all;
  font-size: 0.82rem;
  text-align: left;
}
.rrpo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.85rem 0 0;
}
.rrpo-hint {
  margin: 1rem 0 0;
  color: #667085;
  font-size: 0.85rem;
  line-height: 1.45;
}
.rrpo-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0.5rem 0 0.75rem;
  border-radius: 50%;
  background: #067647;
  color: #fff;
  font-size: 1.6rem;
}
.rrpo-success-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
li.payment_method_crypto_checkout > label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}
.crypto-checkout-gateway-icons {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  vertical-align: middle;
}
.crypto-checkout-gateway-icons img,
img.crypto-checkout-gateway-coin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px #e4e7ec;
  margin: 0;
  vertical-align: middle;
}
.crypto-checkout-method-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}
.crypto-checkout-fee-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #667085;
}
.rrpo-coins {
  border: 0;
  margin: 0.5rem 0 0;
  padding: 0;
  min-width: 0;
}
.rrpo-coin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.rrpo-coin img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #e4e7ec;
  object-fit: cover;
  flex-shrink: 0;
}
.crypto-checkout-min-note,
.crypto-checkout-fee-note,
.rrpo-min-note,
#crypto-checkout-min-note.woocommerce-info,
#crypto-checkout-min-note.woocommerce-error,
.crypto-checkout-min-note.woocommerce-info,
.crypto-checkout-min-note.woocommerce-error {
  margin: 0.45rem 0 0;
  padding: 0.35rem 0.6rem;
  font-size: 12px;
  line-height: 1.35;
  list-style: none;
  border-radius: 4px;
  white-space: pre-line;
}
.rrpo-breakdown {
  margin: 0.75rem 0 0;
  padding: 0;
}
.rrpo-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0;
  font-size: 14px;
}
.rrpo-breakdown-row dt {
  margin: 0;
  font-weight: 500;
  color: #475467;
}
.rrpo-breakdown-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.rrpo-breakdown-row--total dt,
.rrpo-breakdown-row--total dd {
  font-size: 16px;
  color: #101828;
}
.crypto-checkout-min-note[hidden] {
  display: none !important;
}
#crypto-checkout-min-note::before,
.crypto-checkout-min-note::before,
.rrpo-min-note::before {
  display: none !important;
}
.crypto-checkout-min-note.is-below,
.rrpo-min-note.is-below,
#crypto-checkout-min-note.woocommerce-error {
  color: #b42318;
}
@keyframes rrpo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(247, 144, 9, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(247, 144, 9, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 144, 9, 0); }
}
@keyframes rrpo-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rrpo-pulse,
  .rrpo-loader { animation: none; }
}
body.crypto-checkout-awaiting-payment .woocommerce-thankyou-order-received.woocommerce-notice--success,
body.crypto-checkout-payment-expired .woocommerce-thankyou-order-received.woocommerce-notice--success {
  background: #fff7ed;
  border-color: #f7d5a8;
  color: #b54708;
}
body.crypto-checkout-awaiting-payment .woocommerce-thankyou-order-received.woocommerce-notice--success::before,
body.crypto-checkout-payment-expired .woocommerce-thankyou-order-received.woocommerce-notice--success::before,
body.crypto-checkout-awaiting-payment .jc-order-received__badge {
  display: none;
}
body.crypto-checkout-awaiting-payment .wp-block-woocommerce-order-confirmation-status h1,
body.crypto-checkout-payment-expired .wp-block-woocommerce-order-confirmation-status h1 {
  color: #101828;
}
.rrpo-pay .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.rrpo-status--seen,
.rrpo-status--settling { color: #b54708; }
.rrpo-progress,
.rrpo-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0 0;
}
.rrpo-progress[hidden],
.rrpo-success[hidden],
.rrpo-kicker[hidden],
.rrpo-title[hidden],
.rrpo-status[hidden],
.rrpo-live[hidden],
.rrpo-timer[hidden] {
  display: none !important;
}
.rrpo-progress-mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 2.5px solid #ead8c4;
  border-top-color: #b54708;
  border-radius: 50%;
  animation: rrpo-spin 0.9s linear infinite;
}
.rrpo-progress--detected .rrpo-progress-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: #ecfdf3;
  color: #067647;
  animation: none;
}
.rrpo-progress--detected .rrpo-progress-mark::before {
  content: "\2713";
  font-size: 1.35rem;
  line-height: 1;
}
.rrpo-progress-order {
  margin: 0;
  font-size: 0.9rem;
  color: #475467;
}
.rrpo-progress-order[hidden] { display: none !important; }
.rrpo-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #ecfdf3;
  color: #067647;
  font-size: 1.35rem;
  line-height: 1;
}
.rrpo-success-title,
.rrpo-progress-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #101828;
}
.rrpo-paid-amount {
  margin: 0;
  font-size: 0.9rem;
  color: #475467;
}
.rrpo-pay:has([data-rrpo-success]:not([hidden])) .rrpo-kicker,
.rrpo-pay:has([data-rrpo-success]:not([hidden])) .rrpo-title,
.rrpo-pay:has([data-rrpo-success]:not([hidden])) .rrpo-status,
.rrpo-pay:has([data-rrpo-progress]:not([hidden])) .rrpo-kicker,
.rrpo-pay:has([data-rrpo-underpaid]:not([hidden])) .rrpo-kicker,
.rrpo-pay:has([data-rrpo-underpaid]:not([hidden])) .rrpo-title,
.rrpo-pay:has([data-rrpo-progress]:not([hidden])) .rrpo-title {
  display: none;
}
/* Transaction ID: one row, shortened id + small Copy (theme button styles reset). */
.rrpo-pay .rrpo-txid-wrap {
  word-break: normal;
}
.rrpo-pay .rrpo-txid-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 22rem;
  margin: 0.15rem auto 0;
  padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
}
.rrpo-pay .rrpo-txid-row .rrpo-txid-link,
.rrpo-pay .rrpo-txid-row > .rrpo-txid {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.rrpo-pay .rrpo-txid-row .rrpo-txid {
  font-size: 0.8125rem;
  background: none;
  padding: 0;
}
.rrpo-pay .rrpo-txid-copy {
  flex: 0 0 auto;
  margin: 0;
  min-height: 32px;
  padding: 0.3rem 0.75rem;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}
.rrpo-pay .rrpo-txid-copy:hover {
  background: #f2f4f7;
}
.rrpo-pay .rrpo-txid-copy:focus-visible {
  outline: 2px solid #175cd3;
  outline-offset: 2px;
}
.rrpo-txid-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667085;
  margin-bottom: 0.2rem;
}
body.crypto-checkout-pay-ui .jc-order-received__kicker,
body.crypto-checkout-pay-ui h1.jc-order-received__title,
body.crypto-checkout-pay-ui .jc-order-received__lede,
body.crypto-checkout-pay-ui .woocommerce-thankyou-order-received,
body.crypto-checkout-pay-ui .wp-block-woocommerce-order-confirmation-status {
  display: none !important;
}
@media (max-width: 480px) {
  .rrpo-pay { padding: 1.25rem 1rem; }
  .rrpo-qr img,
  .rrpo-qr-code,
  .rrpo-qr-code svg { width: 200px; height: 200px; }
  .rrpo-title { font-size: 1.2rem; }
  .rrpo-actions { display: flex; flex-direction: column; width: 100%; gap: 0.5rem; }
  .rrpo-actions .button { min-height: 44px; }
}

/* Below-minimum note under the coin list: one compact line, selected coin only. */
.rrpo-coins + .rrpo-min-note,
p.rrpo-min-note[data-rrpo-coin],
.rrpo-min-note[role="alert"] {
  margin: 0.4rem 0 0;
  padding: 0.4rem 0.65rem;
  font-size: 12.5px;
  line-height: 1.4;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 6px;
  box-shadow: none;
}
.rrpo-min-note[role="alert"]::before,
.rrpo-min-note[role="alert"]::after {
  content: none;
  display: none;
}

/* Underpaid: exact missing amount, top-up countdown, then support. */
.rrpo-underpaid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0 0;
}
.rrpo-underpaid[hidden],
.rrpo-underpaid-open[hidden],
.rrpo-underpaid-ended[hidden],
.rrpo-support[hidden] {
  display: none !important;
}
.rrpo-underpaid-open,
.rrpo-underpaid-ended {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.rrpo-underpaid-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #b54708;
}
.rrpo-underpaid-line {
  margin: 0;
  font-size: 1rem;
  color: #475467;
}
.rrpo-underpaid-line--due {
  font-size: 1.15rem;
  font-weight: 600;
  color: #101828;
}
.rrpo-underpaid [data-rrpo-copy],
.rrpo-underpaid .rrpo-support {
  cursor: pointer;
}

.rrpo-underpaid-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: #fef0c7;
  color: #b54708;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
