.payment-test-card { margin-top: 20px; padding: 20px; border: 2px solid #3a473c; background: #171d19; }
.payment-test-card[hidden], .payment-test-card [hidden] { display: none !important; }
.payment-modal-card { width: min(560px, calc(100vw - 24px)); background: #171d19; }
.payment-modal-card .modal-head { margin-bottom: 18px; }
.payment-modal-card .modal-close { width: 44px; height: 44px; flex-shrink: 0; }
.payment-modal-card .payment-test-card { margin: 0; padding: 0; border: 0; background: transparent; }
.payment-test-card p { font-size: 10px; line-height: 1.8; color: #a1ada3; }
.payment-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #3a473c; }
.payment-wallet h3 { margin: 0; font-size: 10px; line-height: 1.7; color: #a1ada3; }
.payment-test-card .paid-balance { display: block; font-size: 18px; color: #b395f2; }
.payment-wallet .paid-balance { font-size: 15px; text-align: right; }
.payment-section-label { display: block; margin-bottom: 10px; font-size: 10px; line-height: 1.6; color: #a1ada3; }
.payment-test-card button, .payment-test-card a { -webkit-tap-highlight-color: transparent; }
.payment-test-card button { min-height: 44px; padding: 12px; border: 1px solid #53624d; background: #263322; color: #e9eee6; cursor: pointer; font-size: 10px; transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease; }
.payment-test-card button:disabled { cursor: default; }
.payment-test-card button:focus-visible, .payment-test-card a:focus-visible { outline: 2px solid #c9f66f; outline-offset: 3px; }
.payment-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.payment-test-card .payment-methods button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 106px; gap: 8px; padding: 12px 6px; background: #101710; border-color: #3a473c; }
.payment-methods button b { display: flex; align-items: center; justify-content: center; min-height: 32px; font-size: 10px; line-height: 1.65; font-weight: normal; }
.payment-methods button small { font-size: 8px; line-height: 1.6; color: #a1ada3; }
.payment-test-card .payment-methods button.active { border-color: #c9f66f; background: #25321d; box-shadow: inset 0 -2px #c9f66f; }
.payment-methods button.is-unavailable { opacity: .55; }
.payment-brand { display: flex; align-items: center; justify-content: center; height: 34px; gap: 6px; flex-shrink: 0; }
.payment-brand img { object-fit: contain; display: block; }
.payment-brand-sbp { padding: 3px 5px; background: #e9eee6; }
.payment-brand-cards img:first-child { width: 42px; }
.payment-brand-cards img:last-child { width: 28px; }
.payment-test-card .payment-method-note { margin: 9px 0 18px; font-size: 8px; }
.payment-test-card form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 18px 0 0; }
.payment-test-card form .payment-section-label { margin: 0; }
.payment-test-card label { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; background: #101710; border: 1px solid #53624d; min-width: 0; }
.payment-test-card label > span { color: #a1ada3; font-size: 18px; }
.payment-test-card input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: #e9eee6; font-size: 24px; }
.payment-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.payment-test-card .payment-presets button { min-height: 38px; padding: 8px 2px; font-size: 9px; background: #101710; }
.payment-test-card .payment-presets button.active { background: #25321d; border-color: #c9f66f; color: #c9f66f; }
.payment-conversion { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0 9px; font-size: 10px; line-height: 1.7; color: #a1ada3; }
.payment-conversion strong { font-weight: normal; color: #b395f2; }
.payment-test-card .payment-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 60px; padding: 18px 12px; border: 2px solid #abda54; color: #102000; background: #c9f66f; box-shadow: inset 2px 2px #e4ffac, 0 4px #071003; font-size: 16px; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease, opacity 220ms ease, transform 160ms ease; }
.payment-test-card .payment-primary:disabled { opacity: .6; }
.payment-test-card .payment-primary.is-amount-invalid { opacity: 1; background: #353c37; border-color: #4b554e; color: #a6afa8; box-shadow: inset 2px 2px #49534c, 0 4px #071003; }
.payment-amount-help { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-4px); margin-top: 0; transition: grid-template-rows 220ms ease, opacity 180ms ease, transform 220ms ease, margin-top 220ms ease; }
.payment-amount-help.is-visible { grid-template-rows: 1fr; opacity: 1; transform: translateY(0); margin-top: 10px; }
.payment-amount-help > div { min-height: 0; overflow: hidden; }
.payment-test-card .payment-amount-help p { margin: 0; font-size: 9px; color: #a6afa8; line-height: 1.7; }
.payment-test-card .payment-primary:active { transform: translateY(2px); }
.payment-test-card .payment-fee-note { margin: 12px 0 0; text-align: center; font-size: 8px; }
.payment-test-card .field-status { margin: 16px 0 12px; }
.payment-test-card .field-status:empty { display: none; }
.payment-invoice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-invoice-actions button { flex: 1; }
.payment-test-card code { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 8px; color: #a1ada3; }
.payment-test-card #paymentTestReceipt { overflow-wrap: anywhere; font-size: 8px; }
.payment-history-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid #3a473c; }
.payment-history-details summary, .payment-account-details summary { font-size: 10px; line-height: 1.8; cursor: pointer; }
.payment-history-details summary span { margin-left: 8px; color: #b395f2; }
.payment-test-history { display: grid; gap: 8px; margin-top: 14px; }
.payment-history-row { display: grid; gap: 8px; padding: 12px; border: 1px solid #3a473c; background: #101710; font-size: 10px; line-height: 1.7; }
.payment-history-row strong { font-weight: normal; color: #e9eee6; }
.payment-history-row > span { color: #a1ada3; }
.payment-history-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.payment-history-actions a { color: #c9f66f; font-size: 10px; }
.payment-test-card .payment-account-note { margin: 18px 0 12px; font-size: 8px; }
.payment-account-details { color: #a1ada3; }
.payment-demo-link { display: block; margin-top: 18px; padding: 12px 0; border: 0; border-top: 1px solid #3a473c; background: transparent; color: #a1ada3; font-size: 9px; line-height: 1.7; cursor: pointer; width: 100%; }
@media(hover:hover) { .payment-methods button:not(:disabled):hover { border-color: #8a9b78; background: #1d291a; } .payment-test-card .payment-primary:not(:disabled):hover { background: #d8ff89; } }
@media(max-width:600px) { .payment-test-card { padding: 14px; } .payment-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .payment-test-card .payment-methods button { min-height: 92px; gap: 5px; padding: 10px 6px; } .payment-wallet { margin-bottom: 16px; padding-bottom: 14px; } .payment-wallet .paid-balance { font-size: 13px; } .payment-wallet h3 { font-size: 9px; } .payment-test-card .payment-primary { min-height: 58px; font-size: 14px; } }
@media(max-width:360px) { .payment-test-card .payment-methods button b { font-size: 9px; } .payment-conversion { font-size: 9px; } .payment-presets { gap: 6px; } .payment-test-card .payment-presets button { font-size: 8px; } .payment-test-card .payment-primary { font-size: 13px; } }
@media(prefers-reduced-motion:reduce) { .payment-test-card * { transition: none !important; } }
