.return-dialog{--rt-bg:#fff;--rt-soft:#f3f6f8;--rt-ink:#17232d;--rt-muted:#506274;--rt-line:#cbd5df;--rt-accent:#cf390c;--rt-error:#af2019;box-sizing:border-box;width:min(720px,calc(100% - 28px));max-height:90dvh;padding:0;border:1px solid var(--rt-line);border-radius:20px;background:var(--rt-bg);color:var(--rt-ink);box-shadow:0 24px 90px #0005;font:15px/1.55 system-ui,sans-serif}
html[data-theme=dark] .return-dialog{--rt-bg:#182129;--rt-soft:#253440;--rt-ink:#f1f5fa;--rt-muted:#c3cfdb;--rt-line:#576b7c;--rt-accent:#ffad8b;--rt-error:#ffb1a7;color-scheme:dark}
.return-dialog *{box-sizing:border-box}.return-dialog::backdrop{background:#09121bc2;backdrop-filter:blur(4px)}
.return-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 24px;border-bottom:1px solid var(--rt-line);background:var(--rt-bg);position:sticky;top:0;z-index:2}.return-dialog h2{font:700 23px/1.25 system-ui,sans-serif;margin:4px 0;color:var(--rt-ink)}.return-dialog header small{color:var(--rt-muted);overflow-wrap:anywhere}.return-dialog [data-return-close]{width:42px;height:42px;border:1px solid var(--rt-line);border-radius:50%;background:var(--rt-soft);color:var(--rt-ink);font-size:28px;flex-shrink:0}
.return-body{padding:24px}.return-dialog p{margin:10px 0}.return-dialog h3{font:700 17px/1.5 system-ui,sans-serif;margin:14px 0}.return-intro{color:var(--rt-muted);font-size:14px}.return-dialog form>label{display:grid;gap:7px;margin:16px 0;font-weight:650}.return-dialog :is(input,select,textarea){font:inherit;color:var(--rt-ink);background:var(--rt-bg);border:1px solid var(--rt-line);border-radius:10px;padding:11px;min-width:0;max-width:100%}.return-dialog input[type=checkbox]{width:19px;height:19px;min-width:19px;accent-color:#d94012;padding:0;align-self:start;margin-top:4px}.return-dialog :is(button,a,input,select,textarea):focus-visible{outline:3px solid #ff793e;outline-offset:3px}.return-dialog button{cursor:pointer}.return-dialog button:disabled{opacity:.6;cursor:wait}
.return-items{border:1px solid var(--rt-line);border-radius:14px;overflow:hidden}.return-item{display:grid;grid-template-columns:1fr 85px;align-items:center;gap:16px;padding:14px;background:var(--rt-soft)}.return-item+.return-item{border-top:1px solid var(--rt-line)}.return-item>label:first-child{display:flex;gap:10px;align-items:start}.return-item span{overflow-wrap:anywhere}.return-item small{display:block;color:var(--rt-muted);font-size:12px;margin-top:5px}.return-quantity{display:grid;font-size:12px;gap:4px}.return-quantity input{width:80px;background:var(--rt-bg)}.return-dialog .return-consent{display:flex;gap:11px;align-items:start;font-size:13px;font-weight:400}.return-upload{padding:15px;border:1px dashed var(--rt-line);border-radius:14px;background:var(--rt-soft)}.return-upload span{font-size:12px;color:var(--rt-muted);font-weight:400}.return-upload input{width:100%;font-size:13px}
.return-dialog :is(.return-primary,.return-secondary){font:650 14px/1.4 system-ui,sans-serif;padding:12px 18px;min-height:44px;border-radius:10px;border:1px solid var(--rt-line);text-align:center;white-space:normal}.return-dialog .return-primary{background:#cf390c;color:white;border-color:#cf390c}.return-dialog .return-secondary{background:var(--rt-soft);color:var(--rt-ink)}.return-button-row{display:flex;gap:12px;justify-content:space-between}.return-contact{color:var(--rt-accent);display:block;padding:12px 0;font-size:14px}.return-dialog [role=alert],.return-warning{color:var(--rt-error);overflow-wrap:anywhere}
.return-request{padding:16px;margin:12px 0;border:1px solid var(--rt-line);border-radius:14px;background:var(--rt-soft);overflow-wrap:anywhere}.return-request-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.return-request>small{color:var(--rt-muted)}.return-request ul{padding-left:20px;margin:12px 0}.return-comment,.return-store-note{white-space:pre-wrap}.return-store-note{border-left:3px solid #e35c26;padding:10px;background:var(--rt-bg)}.return-status{font-size:12px;line-height:1.5;border-radius:8px;display:inline-block;padding:5px 9px;background:#fff0d1;color:#71490e}.return-approved{background:#e3efff;color:#174c83}.return-received{background:#dcf4e6;color:#175237}.return-rejected{background:#ffe3df;color:#852c21}
.return-photo-list,.return-evidence{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.return-photo-list>div{position:relative}.return-photo-list img{width:94px;height:94px;object-fit:cover;border-radius:10px}.return-photo-list button{position:absolute;right:2px;top:2px;border-radius:50%;background:#111e;border:1px solid #fff;color:white;width:28px;height:28px;font-size:20px}.return-evidence a{display:block;max-width:calc(50% - 6px)}.return-evidence img{width:180px;max-width:100%;max-height:180px;object-fit:contain;border:1px solid var(--rt-line);border-radius:8px;background:var(--rt-bg)}
.return-order-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}.return-order-actions>button{border:1px solid var(--line,#cbd5df);background:var(--soft,#f3f6f8);color:var(--ink,#17232d);padding:11px 16px;border-radius:10px;font:650 14px/1.4 system-ui,sans-serif;cursor:pointer;min-height:44px}.return-order-actions>small{font-size:12px;color:var(--muted,#506274)}.return-admin-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px;margin:14px 0;border:1px solid #dfad93;border-radius:12px;background:#fff5ef;color:#492d21}.return-admin-summary>b{flex-basis:100%}
@media(max-width:540px){.return-dialog{width:calc(100% - 16px);max-height:94dvh;border-radius:15px}.return-dialog>header{padding:14px 16px}.return-dialog h2{font-size:20px}.return-body{padding:16px}.return-item{grid-template-columns:1fr 66px;gap:8px;padding:12px}.return-quantity input{width:66px}.return-dialog :is(input,select,textarea){font-size:16px}.return-dialog form>.return-primary{width:100%}.return-request{padding:12px}.return-order-actions>button{width:100%}}
