.return-exchange-dialog {width:min(1100px,96vw);height:min(94dvh,1100px);max-height:94dvh;padding:0;border:1px solid var(--line);border-radius:18px;color:var(--ink);background:var(--paper);box-shadow:0 25px 80px #102a4366;}
.return-exchange-dialog::backdrop {background:#102a43aa;backdrop-filter:blur(3px);}
.return-exchange-dialog[open] {display:flex;flex-direction:column;}
.return-exchange-dialog header,.return-exchange-dialog footer {padding:20px 26px;background:var(--paper);flex:none;}
.return-exchange-dialog header {display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);}
.return-exchange-dialog h2 {margin:0;font-size:25px;}.return-exchange-dialog h3 {margin:0 0 15px;}
.return-exchange-dialog header button {width:42px;height:42px;border:0;border-radius:12px;font-size:26px;background:var(--soft);color:var(--ink);}
.return-exchange-body {overflow:auto;overscroll-behavior:contain;padding:22px 26px;display:grid;gap:24px;}
.return-exchange-body section {min-width:0;}.return-exchange-source {display:flex;justify-content:space-between;gap:20px;padding:14px;background:var(--soft);border-radius:12px;margin-bottom:8px;align-items:center;}
.return-exchange-source span,.return-exchange-selected label {display:grid;gap:5px;font-size:12px;flex:none;}
.return-exchange-dialog input[type=number] {width:90px;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:8px;background:var(--paper);color:var(--ink);font-size:17px;}
.return-exchange-hint,.return-exchange-empty {color:var(--muted);font-size:13px;line-height:1.5;}
.return-exchange-search {display:grid;gap:7px;margin:20px 0 12px;font-weight:700;font-size:14px;}
.return-exchange-search input {width:100%;min-height:50px;font-size:17px;padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--paper);}
#exchangeResults {display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:430px;overflow:auto;}
.return-exchange-result {display:flex;align-items:center;text-align:left;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);cursor:pointer;min-width:0;}
.return-exchange-result:hover {border-color:var(--accent);background:var(--soft);}.return-exchange-result img {width:58px;height:58px;object-fit:contain;border-radius:9px;flex:none;}
.return-exchange-result>span:first-of-type {display:grid;gap:5px;min-width:0;}.return-exchange-result strong {font-size:14px;}.return-exchange-result small {font-size:11px;color:var(--muted);overflow-wrap:anywhere;}
.return-exchange-available {display:grid;gap:6px;white-space:nowrap;margin-left:auto;color:var(--accent);font-weight:800;font-size:13px;flex:none;}
.return-exchange-packaging {font-size:12px;color:#9a4900;background:#fff0cb;padding:5px;border:1px solid #ff9d14;border-radius:6px;}
.return-exchange-selected {display:flex;align-items:center;gap:15px;padding:14px;border:1px solid #86b7db;border-radius:11px;background:var(--soft);margin-bottom:7px;}
.return-exchange-selected>div {display:grid;gap:5px;margin-right:auto;}.return-exchange-selected small {font-size:12px;color:var(--muted);}.return-exchange-selected>button {border:0;background:transparent;color:var(--error);font-size:24px;cursor:pointer;}
.return-exchange-confirmations {display:grid;gap:13px;padding:18px;background:var(--soft);border-radius:12px;font-size:14px;line-height:1.5;}
.return-exchange-confirmations label {display:flex;gap:10px;align-items:flex-start;}.return-exchange-confirmations input {width:21px;height:21px;flex:none;}.return-exchange-confirmations p {margin:0;}
.return-exchange-dialog footer {border-top:1px solid var(--line);}.return-exchange-dialog footer button {width:100%;min-height:52px;font-size:16px;}.return-exchange-dialog footer p {color:var(--error);margin:0 0 10px;}
.return-exchange-record {display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #81b9cd;background:var(--soft);padding:16px;border-radius:11px;margin:12px 0;}
.return-exchange-record>div {display:grid;gap:7px;}.return-exchange-record small {color:var(--muted);line-height:1.5;}.return-exchange-record.attention {border-color:#e4a132;}.return-exchange-record p {color:var(--error);margin:0;}
.return-exchange-start {margin-top:10px;min-height:42px;}.return-exchange-quantity-note {color:var(--accent);font-weight:800;font-size:12px;}
@media(max-width:650px) {.return-exchange-dialog {width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0;}.return-exchange-dialog header,.return-exchange-dialog footer,.return-exchange-body {padding:16px;}.return-exchange-dialog h2 {font-size:21px;}#exchangeResults {grid-template-columns:1fr;max-height:50dvh;}.return-exchange-source,.return-exchange-selected {gap:9px;}.return-exchange-dialog input[type=number] {width:65px;}.return-exchange-record {align-items:stretch;flex-direction:column;}}
