.exchange-page { max-width: 1200px; margin-top: 12px; }
.exchange-page h2[tabindex="-1"]:focus { outline: none; }
.exchange-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.exchange-layout[hidden] { display: none; }
.exchange-pair { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 10px; align-items: start; }
.exchange-leg { min-width: 0; }
.exchange-amount-row { display: flex; border: 1px solid #ced4da; border-radius: 4px; background: #fff; }
.exchange-amount-row:focus-within { outline: 2px solid var(--cvc-color-primary); outline-offset: 2px; }
.exchange-page .exchange-amount-row .form-control { min-width: 0; border: 0; box-shadow: none; font-size: 17px; font-weight: 600; padding: 12px 10px; }
.exchange-page .exchange-asset { flex-shrink: 0; display: flex; align-items: center; gap: 2px; border: 0; border-left: 1px solid #e3e7e3; border-radius: 0; font-weight: 600; padding: 8px; }
.exchange-network { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; font-size: 13px; color: #667369; }
.exchange-network-name { display: inline-flex; align-items: center; }
.exchange-network-name img { flex-shrink: 0; object-fit: contain; }
.exchange-quote [data-exchange-fiat] { font-weight: 400; }
.exchange-refresh-state { min-height: 32px; color: #667369; font-size: 12px; }
.exchange-countdown-label { margin-bottom: 6px; }
.exchange-countdown-bar { display: block; width: 100%; height: 4px; border: 0; border-radius: 2px; overflow: hidden; appearance: none; background: #e6ece6; color: var(--cvc-color-primary); }
.exchange-countdown-bar::-webkit-progress-bar { background: #e6ece6; }
.exchange-countdown-bar::-webkit-progress-value { background: var(--cvc-color-primary); transition: width .1s linear; }
.exchange-countdown-bar::-moz-progress-bar { background: var(--cvc-color-primary); }
.exchange-loading { padding-top: 6px; }
.exchange-loading .spinner-border { vertical-align: -.15em; }
.exchange-page .exchange-reverse { border: 1px solid #dfe6df; border-radius: 50%; width: 36px; min-height: 36px; padding: 6px; margin: 33px auto 0; color: var(--cvc-color-primary); }
.exchange-summary-amount { font-size: 23px; font-weight: 500; overflow-wrap: anywhere; }
.exchange-payment-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; }
.exchange-payment-qr { min-height: 170px; padding: 20px 12px; border: 1px dashed #ced4da; border-radius: 4px; background: #f8faf8; text-align: center; }
.exchange-payment-qr > i { display: block; font-size: 44px; opacity: .4; margin-bottom: 14px; }
.exchange-payment-details { min-width: 0; }
.exchange-payment-amount { display: flex; align-items: center; font-size: 23px; overflow-wrap: anywhere; }
.exchange-payment-amount > strong { min-width: 0; }
.exchange-payment-amount > .btn { flex-shrink: 0; }
.exchange-payment-address { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #dee2e6; border-radius: 4px; background: #f8faf8; }
.exchange-payment-address .btn { flex-shrink: 0; }
.exchange-payment-address > span { min-width: 0; overflow-wrap: anywhere; }
.exchange-processing-stages { gap: 22px; margin: 0; }
.exchange-processing-stages li { align-items: flex-start; gap: 12px; font-size: 14px; }
.exchange-processing-stages li::before { margin-top: 2px; }
.exchange-processing-stages li.is-active::after { top: -2px; margin-top: 0; }
.exchange-processing-stages li.is-paused::before { background: #fff3cd; border-color: #ffecb5; color: #664d03; }
.exchange-processing-stages small { margin-top: 3px; }
.exchange-processing-stages small[hidden] { display: none !important; }
.exchange-txid { display: flex; align-items: flex-start; gap: 8px; }
.exchange-txid > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.exchange-txid > [data-order-tx-status] { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 2px; }
.exchange-txid .spinner-border { border-width: 2px; }
.exchange-quote dd { font-weight: 500; }
.exchange-note { color: #667369; font-size: 12px; }
.exchange-explanation { display: flex; flex-direction: row; align-items: baseline; padding: 20px; color: #667369; }
.exchange-explanation[hidden] { display: none; }
.exchange-asset-list { display: flex; flex-direction: column; gap: 3px; }
.exchange-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; text-align: left; border: 1px solid transparent; border-radius: 4px; background: transparent; }
.exchange-option:hover, .exchange-option:focus-visible { background: #f2f6f1; border-color: #dfe6df; }
.exchange-option:disabled { opacity: .5; background: transparent; }
.exchange-option-copy { min-width: 0; flex: 1; }
.exchange-option-copy strong, .exchange-option-copy small { display: block; overflow-wrap: anywhere; }
.exchange-option-copy small { color: #667369; margin-top: 3px; }
.exchange-option-symbol { font-weight: 600; }
@container (max-width: 900px) {
    .exchange-pair { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .exchange-page .exchange-reverse { margin: 0 auto; transform: rotate(90deg); }
    .exchange-payment-layout { grid-template-columns: minmax(0, 1fr); }
    .exchange-payment-qr { width: 170px; margin: 0 auto; }
}
@container (max-width: 740px) {
    .exchange-layout { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 500px) {
    .exchange-page .exchange-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
    .exchange-page .exchange-steps .withdrawal-step { flex-direction: column; gap: 7px; text-align: center; }
    .exchange-page .exchange-steps .withdrawal-step::before { display: none; }
}
@media (max-width: 575px) {
    .exchange-page { padding-left: 14px; padding-right: 14px; }
}
.exchange-payment-qr img {
    display: block;
    max-width: 100%;
    height: auto;
}

[data-exchange-result] [data-order-info] {
    max-width: none;
}

.exchange-page .withdrawal-result { width: 100%; max-width: none; margin: 0; }
.exchange-progress-card { opacity: 1; transform: translateY(0); transition: opacity .35s ease, transform .35s ease; }
.exchange-progress-card.is-leaving { opacity: 0; transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) {
    .exchange-progress-card { transition: none; }
}

.exchange-copy { border: 0; background: transparent; color: var(--bs-body-color); box-shadow: none; }
.exchange-wallet-loading:not([hidden]) { display: flex; align-items: center; }
.exchange-wallet-actions:not([hidden]) { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.exchange-wallet-success-check { display: inline-block; color: var(--cvc-color-primary); font-size: 56px; line-height: 1; margin-bottom: 14px; }
.exchange-wallet-result-amount { display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0; }
.exchange-wallet-result-amount img { flex-shrink: 0; object-fit: contain; }
.exchange-wallet-result-amount strong { min-width: 0; overflow-wrap: anywhere; }
.exchange-receipt-link { display: inline-block; text-decoration: underline; }
.exchange-receipt-link[hidden] { display: none; }
.exchange-receipt-link[aria-disabled="true"] { opacity: .65; }
.exchange-copy:hover { color: var(--cvc-color-primary); background: transparent; }
.exchange-copy:focus-visible { outline: 2px solid var(--cvc-color-primary); outline-offset: 2px; }
.exchange-link-group .form-control, .exchange-copy-field, .exchange-copy-field:hover, .exchange-copy-field:focus {
    border-color: var(--bs-border-color);
}
.exchange-copy-field { color: var(--bs-body-color); background: transparent; }
.exchange-copy-field:hover { color: var(--cvc-color-primary); }
.exchange-txid-list { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.exchange-txid-item { display: flex; align-items: center; gap: 6px; min-width: 0; }
.exchange-txid-item > span { min-width: 0; overflow-wrap: anywhere; }
.exchange-page .exchange-txid-item > button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 24px; padding: 0 3px; line-height: 1; }
