.refund-entry{color:#dfe7e2}.refund-entry:hover{border-color:#4b5a51;background:#171c19}
.refund-modal{max-width:min(94vw,680px);max-height:min(92vh,780px);overflow:hidden}
.refund-shell{padding:26px;display:flex;flex-direction:column;max-height:min(92vh,780px);overflow:auto}
.refund-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.refund-head h2{margin:0;font-size:25px;letter-spacing:-.035em}
.refund-head .icon-button{color:#667069;border-color:var(--line);flex:0 0 auto}
.refund-source-list{display:flex;flex-direction:column;gap:8px;overflow:auto;min-height:96px;max-height:390px;margin-bottom:12px;padding-right:2px}
.refund-source-card{display:grid;grid-template-columns:minmax(0,1.3fr) auto auto;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:13px 14px;cursor:pointer;color:inherit}
.refund-source-card:hover{border-color:#8b9a91;background:#f7f9f7}
.refund-source-main,.refund-source-amount{display:flex;flex-direction:column;min-width:0}
.refund-source-main strong,.refund-source-amount strong{font-size:13px;overflow-wrap:anywhere}
.refund-source-main small,.refund-source-amount small{font-size:10px;color:var(--soft);margin-top:3px}
.refund-source-state{font-size:10px;border-radius:999px;background:#edf7f0;color:#24613d;padding:6px 8px;white-space:nowrap}
.refund-source-state.existing{background:#f0f1f0;color:#59615c}
.refund-empty{display:flex;flex-direction:column;gap:5px;background:#f4f6f4;border-radius:12px;padding:16px}
.refund-empty strong{font-size:13px}.refund-empty span{font-size:11px;color:var(--soft);line-height:1.5}
.refund-source-summary{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:8px;margin-bottom:12px}
.refund-source-summary>div{background:#f4f6f4;border-radius:11px;padding:12px;min-width:0}
.refund-source-summary span{display:block;color:var(--soft);font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}
.refund-source-summary strong{display:block;font-size:13px;overflow-wrap:anywhere}
.refund-selected-summary .refund-back{grid-column:1/-1;justify-self:start;margin:0;padding:2px 0}
.refund-reason,.refund-notes{margin:10px 0 0!important}
.refund-notes textarea{min-height:90px;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:11px 12px;font:inherit;outline:0}
.refund-notes textarea:focus{border-color:#86978c;box-shadow:0 0 0 3px #3bd18413}
.refund-notes textarea:disabled,.refund-reason input:disabled{background:#f4f6f4;color:#8b948e}
.refund-helper{font-size:11px;color:var(--soft);line-height:1.55;margin:9px 0 0}
.refund-modal .form-error{margin:9px 0}.refund-modal .primary-button{margin-top:4px}
.refund-allocation-editor{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.refund-allocation-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:10px}
.refund-allocation-head h3{margin:2px 0 0;font-size:18px;letter-spacing:-.025em}
.refund-allocation-head>strong{font-size:12px;white-space:nowrap}
.refund-allocation-list{display:flex;flex-direction:column;gap:9px}
.refund-allocation-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(110px,.7fr) minmax(130px,1fr);gap:9px;align-items:end;background:#f7f8f7;border:1px solid var(--line);border-radius:12px;padding:12px}
.refund-allocation-payment{display:flex;flex-direction:column;gap:4px;min-width:0;align-self:center}
.refund-allocation-payment strong{font-size:13px}.refund-allocation-payment small{font-size:10px;color:var(--soft);line-height:1.45}
.refund-allocation-row label{margin:0!important;font-size:10px;color:var(--soft)}
.refund-allocation-row input{margin-top:5px;width:100%}
.refund-allocation-row input:disabled{background:#eef0ee;color:#8b948e}
@media(max-width:640px){
  .refund-modal{max-width:100vw;width:100vw;max-height:100dvh;height:100dvh;border-radius:0}
  .refund-shell{padding:18px 14px calc(18px + env(safe-area-inset-bottom));max-height:100dvh;height:100%}
  .refund-head{margin-bottom:12px}.refund-head h2{font-size:22px}
  .refund-source-card{grid-template-columns:1fr auto;gap:8px}
  .refund-source-state{grid-column:1/-1;justify-self:start}
  .refund-source-summary{grid-template-columns:1fr}
  .refund-allocation-head{align-items:flex-start;flex-direction:column}
  .refund-allocation-row{grid-template-columns:1fr}
  .refund-entry{padding:0 11px}.refund-entry span:last-child{display:none}
}
