/* Commerce pages preserve the original ChaoShunPay layout and typography. */
.commerce-page{min-width:0}
.commerce-page .panel-head{gap:16px;align-items:center}
.commerce-page .panel-head>div:first-child{flex:1 0 210px}
.commerce-page .refresh-controls{gap:8px}
.commerce-page .refresh-controls select{max-width:200px;min-width:160px;height:41px;font:inherit;color:var(--ink-2)}
.commerce-page .refresh-controls .btn{white-space:nowrap}
.commerce-page .commerce-search{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px 22px;margin:0}
.commerce-page .commerce-search input,.commerce-page .commerce-search select{height:42px;border:1px solid var(--border-strong,#d3dbe6);border-radius:12px;padding:0 13px;background:#fff;color:var(--ink,#0A1018);font:inherit;min-width:0;outline:0}
.commerce-page .commerce-search input:focus,.commerce-page .commerce-search select:focus{border-color:var(--accent,#2456e6);box-shadow:0 0 0 3px #2456e615}
.commerce-page .commerce-search input[name=q]{flex:1 1 220px}
.commerce-page .commerce-search select{flex:0 1 195px;width:195px;max-width:100%}
.commerce-page .commerce-search input[type=date]{flex:0 1 148px;width:148px;color:var(--ink-3)}
.commerce-page .commerce-search .btn{height:42px;min-height:42px;padding:0 17px}
.commerce-page .pagination{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 22px;border-top:1px solid var(--border);background:#fff}.commerce-page .pagination-size{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:12px}.commerce-page .pagination-size select{height:32px;border:1px solid var(--border);border-radius:7px;background:#fff;padding:0 8px;color:var(--ink);font:inherit}
.commerce-page .pagination-pages a,.commerce-page .pagination-pages span{height:36px;min-width:36px;border-radius:9px;padding:0 11px}
.commerce-page .pagination-pages a.active{background:var(--accent);border-color:var(--accent)}
.commerce-page .table-wrap{border-radius:0;overflow-x:auto}
.commerce-page .table{margin:0}
.commerce-page .table td{vertical-align:middle}
.commerce-page .table strong{font-weight:650}
.commerce-page .table th{text-transform:none;letter-spacing:0;white-space:nowrap}
.commerce-page .table td .muted{font-size:12px;overflow-wrap:anywhere;margin-top:5px}
.commerce-page .commerce-date{font-size:12px;line-height:1.65;font-variant-numeric:tabular-nums;color:var(--ink-3)}
.commerce-page .commerce-amount{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.commerce-page .empty{min-height:190px;padding:38px 20px;font-size:13px}
.commerce-page .empty strong{color:var(--ink-2);font-size:14px}
.commerce-empty-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:4px;border-radius:12px;background:#f1f4f9;border:1px solid #e3e8f0;font-size:24px;color:#98a5b9}
.commerce-links .link-v2-table{table-layout:fixed;min-width:1180px;width:100%}
.commerce-links .link-v2-table th,.commerce-links .link-v2-table td{padding:15px 16px;line-height:1.5}
.commerce-links .link-v2-table th:nth-child(1){width:15%}
.commerce-links .link-v2-table th:nth-child(2){width:13%}
.commerce-links .link-v2-table th:nth-child(3){width:22%}
.commerce-links .link-v2-table th:nth-child(4){width:9%}
.commerce-links .link-v2-table th:nth-child(5){width:12%}
.commerce-links .link-v2-table th:nth-child(6){width:8%}
.commerce-links .link-v2-table th:nth-child(7){width:9%}
.commerce-links .link-v2-table th:nth-child(8){width:12%}
.commerce-links .url-field{display:block;width:100%;height:33px;margin:0;border-radius:8px;font-size:11px;text-overflow:ellipsis;cursor:text}
.commerce-product-code{margin:8px 0 6px}
.commerce-product-code code{display:inline-block;padding:3px 9px;border:1px solid var(--border,#dfe4ec);border-radius:7px;background:#f7f9fc;color:var(--ink,#182230);font-size:12px;font-weight:700;letter-spacing:0}
.commerce-links .link-url-actions,.commerce-links .link-row-actions{display:flex;flex-wrap:wrap;gap:6px}
.commerce-links .link-url-actions{margin-top:7px}
.commerce-links .link-url-actions .btn,.commerce-links .link-row-actions .btn{min-height:31px;height:31px;padding:0 10px;font-size:12px;border-radius:8px}
.commerce-links .link-v2-table th:nth-child(4){width:11%}
.commerce-links .link-v2-table th:nth-child(3){width:18%}
.commerce-links .link-v2-table th:nth-child(7){width:13%}
.commerce-links .link-v2-table th:nth-child(5){width:10%}
.commerce-links .link-v2-table td{overflow-wrap:anywhere;white-space:normal}
.commerce-links .commerce-amount{white-space:normal}
.commerce-links .link-row-actions{align-items:center}
.commerce-links .link-enabled-switch{position:relative;flex:0 0 38px;width:38px;height:24px;min-height:24px;padding:0;border:1px solid #5A6A85;border-radius:12px;background:#C7D1DF;cursor:pointer}
.commerce-links .link-enabled-switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0A101833}
.commerce-links .link-enabled-switch[aria-checked=true]{background:#087f68;border-color:#087f68}
.commerce-links .link-enabled-switch[aria-checked=true]::after{left:17px}
.commerce-links .link-enabled-switch:disabled{cursor:not-allowed;background:#5A6A85;border-color:#5A6A85}
.commerce-links .link-status .badge{white-space:normal}
.commerce-links .badge.expired{color:#b42318;background:#fff1f0;border-color:#fecdca}
.commerce-links .link-control-reason{flex-basis:100%}
.link-expiration-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:18px}
.link-expiration-fields .field{min-width:0}
.link-expiration-fields .field[hidden]{display:none}
.link-expiration-fields input,.link-expiration-fields select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.link-expiration-modal{max-width:560px}
.link-expiration-modal .panel-head h2,.link-create-modal .panel-head h2{font-size:18px;overflow-wrap:anywhere}
@media(max-width:620px){
  .commerce-links .link-v2-table{min-width:0;display:block}
  .commerce-links .link-v2-table thead{display:none}
  .commerce-links .link-v2-table tbody{display:block}
  .commerce-links .link-v2-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid var(--border,#E3E8F0);padding:12px 8px}
  .commerce-links .link-v2-table td{display:block;min-width:0;padding:8px;border:0}
  .commerce-links .link-v2-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
  .commerce-links .link-v2-table td:nth-child(3),.commerce-links .link-v2-table td:nth-child(7),.commerce-links .link-v2-table td:nth-child(8),.commerce-links .link-v2-table td[colspan]{grid-column:1/-1}
  .commerce-links .link-v2-table .link-expiry{line-height:1.6}
  .commerce-links .link-row-actions{gap:10px}
  .commerce-links .link-row-actions .btn{min-height:36px;height:36px}
  .link-expiration-fields{grid-template-columns:minmax(0,1fr)}
}
.commerce-invoices .invoice-v2-table{table-layout:fixed;min-width:900px;width:100%}
.commerce-invoices .invoice-v2-table th:nth-child(1){width:21%}
.commerce-invoices .invoice-v2-table th:nth-child(2){width:18%}
.commerce-invoices .invoice-v2-table th:nth-child(3){width:12%}
.commerce-invoices .invoice-v2-table th:nth-child(4){width:27%}
.commerce-invoices .invoice-v2-table th:nth-child(5){width:14%}
.commerce-invoices .invoice-v2-table th:nth-child(6){width:8%}
.commerce-invoices .invoice-v2-table th,.commerce-invoices .invoice-v2-table td{padding:17px 16px}
.commerce-row-actions{display:flex;gap:6px;flex-wrap:wrap}
.commerce-row-actions .btn{min-height:32px;padding:0 10px;font-size:12px;border-radius:8px}
.commerce-orders{border-radius:18px;border-color:var(--border);box-shadow:var(--shadow-sm)}
.commerce-orders .order-ledger-head{padding:20px 22px;flex-wrap:wrap;border-color:var(--border)}
.commerce-orders .order-ledger-head h2{font-size:18px}
.commerce-orders .order-ledger-head p{line-height:1.6;margin-top:7px;font-size:12px}
.commerce-orders .order-filters{padding:18px 22px 6px;background:#fafbfc}
.commerce-orders .filter-chips b{font-size:12px;min-width:67px}
.commerce-orders .filter-chips a{padding:6px 11px;border-radius:7px;font-size:12px}
.commerce-orders .filter-chips a.active{background:var(--accent);border-color:var(--accent)}
.commerce-orders .commerce-search{padding:14px 0 12px;display:flex;flex-wrap:wrap;gap:8px}
.commerce-orders .commerce-search input[name=q]{flex:1 1 210px;padding:0 13px}
.commerce-orders .commerce-search select{flex:0 1 175px;width:175px}
.commerce-orders .commerce-search input[type=date]{flex:0 1 141px;width:141px}
.order-owner-filter{position:relative;flex:0 1 195px;min-width:175px;max-width:100%;font-size:13px}
.order-owner-filter summary{display:flex;align-items:center;justify-content:space-between;gap:8px;height:42px;padding:0 13px;border:1px solid var(--border-strong,#d3dbe6);border-radius:8px;background:#fff;cursor:pointer;list-style:none}
.order-owner-filter summary::-webkit-details-marker{display:none}
.order-owner-filter summary::after{content:'';width:7px;height:7px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}
.order-owner-filter[open] summary,.order-owner-filter summary:focus-visible{border-color:var(--accent);outline:2px solid var(--accent-soft)}
.order-owner-filter-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:280px;max-width:calc(100vw - 64px);border:1px solid var(--border-strong);border-radius:8px;background:#fff;box-shadow:0 8px 24px #0A10181a}
.order-owner-filter-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border)}
.order-owner-filter-heading button{border:0;background:none;color:var(--accent);padding:4px;cursor:pointer;font:inherit}
.order-owner-filter-options{max-height:280px;overflow-y:auto;padding:5px}
.order-owner-filter-options label{display:flex;align-items:center;gap:9px;padding:9px 8px;cursor:pointer;border-radius:4px}
.order-owner-filter-options label:hover{background:var(--accent-soft)}
.commerce-page .commerce-search .order-owner-filter-options input{width:16px;height:16px;padding:0;flex:0 0 16px;accent-color:var(--accent)}
.order-owner-filter-options span{min-width:0;overflow-wrap:anywhere}
@media(max-width:620px){.order-owner-filter{flex:1 1 100%;min-width:0}.order-owner-filter-menu{width:100%;max-width:none}}
.commerce-orders .commerce-order-table{min-width:1120px;width:100%;table-layout:fixed}
.commerce-orders .commerce-order-table th,.commerce-orders .commerce-order-table td{padding:14px 14px;white-space:normal;border-right:0}
.commerce-orders .commerce-order-table th:first-child,.commerce-orders .commerce-order-table td:first-child{padding-left:22px;width:21%}
.commerce-orders .commerce-order-table th:nth-child(2){width:14%}
.commerce-orders .commerce-order-table th:nth-child(3){width:15%}
.commerce-orders .commerce-order-table th:nth-child(4){width:11%}
.commerce-orders .commerce-order-table th:nth-child(5){width:13%}
.commerce-orders .commerce-order-table th:nth-child(6){width:12%}
.commerce-orders .commerce-order-table th:nth-child(7),.commerce-orders .commerce-order-table td:nth-child(7){width:14%;min-width:260px}
.commerce-orders .commerce-order-table th:last-child{width:10%}
.commerce-logistics-cell .badge{margin-bottom:6px}
.commerce-logistics-cell .shipment-number{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.commerce-orders .commerce-order-table .ledger-paypal-id{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;border:0;background:none;font-size:13px;font-weight:700;color:#182230}
.commerce-orders .ledger-transaction{display:flex;align-items:center;gap:6px}
.commerce-orders .icon-only{width:24px;height:24px;border-radius:6px;flex:0 0 24px;font-size:15px}
.commerce-badges{display:flex;gap:5px;margin-top:7px;flex-wrap:wrap}
.commerce-orders .badge{font-size:10px;padding:3px 7px}
.commerce-orders .badge::before{width:5px;height:5px;margin-right:4px}
.commerce-orders .order-source-site{color:#2456E6;background:#eff6ff;border-color:#bfdbfe}
.commerce-orders .order-source-paypal{color:#0f766e;background:#f0fdfa;border-color:#99f6e4}
.commerce-orders .order-source-bitpay{color:#7c2d12;background:#fff7ed;border-color:#fed7aa}
.commerce-orders .order-source-unknown{color:#92400e;background:#fffbeb;border-color:#fde68a}
.commerce-orders [data-order-source]::before{background:currentColor}
.commerce-orders .ledger-actions{display:flex;flex-wrap:wrap;gap:5px}
.commerce-orders .ledger-actions .btn{font-size:12px;min-height:31px;height:31px;border-radius:8px;padding:0 10px}
.commerce-orders .native-upload-actions{flex-direction:column;align-items:stretch}
.commerce-orders .native-upload-actions .btn{width:100%}
.commerce-orders .ledger-amount{font-size:13px;white-space:nowrap}
.order-owner-batch-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--border);background:#F6F8FB}
.order-owner-batch-toolbar>span{min-width:76px;font-size:12px;font-weight:700;color:var(--ink-2)}
.order-owner-batch-toolbar select,.order-owner-select{height:34px;min-width:145px;max-width:210px;border:1px solid var(--border-strong);border-radius:7px;background:#fff;padding:0 28px 0 9px;color:var(--ink);font:600 12px inherit}
.order-owner-select{width:100%;min-width:125px}
.order-owner-cell{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:6px;min-width:0}
.order-owner-hierarchy{display:grid;justify-items:start;gap:3px;min-width:0;padding:3px 0;color:var(--ink,#263850)}
.order-owner-hierarchy.is-empty{display:block;color:var(--muted,#7b8798);font-size:12px}
.order-owner-level{display:block;max-width:100%;font-size:12px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.order-owner-connector{display:block;color:#90a4bf;font-size:12px;line-height:1;padding-left:4px}
.order-owner-edit{grid-column:2;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--border-strong,#d3dbe6);border-radius:6px;background:#fff;color:var(--ink-2,#52647b);cursor:pointer}
.order-owner-edit:hover,.order-owner-edit:focus-visible{border-color:var(--accent,#2456E6);color:var(--accent,#2456E6)}
.order-owner-edit img{display:block;width:14px;height:14px}
.order-owner-cell .order-owner-select{grid-column:1/-1;margin-top:0}
.order-owner-cell .order-owner-select[hidden]{display:none}
.order-select-column{width:42px!important;text-align:center!important;padding-left:10px!important;padding-right:10px!important}
.order-select-column input{width:16px;height:16px;accent-color:var(--accent)}
.commerce-orders .commerce-order-table.has-order-selection{min-width:1280px}
.commerce-orders .commerce-order-table.has-order-selection th:nth-child(2){width:19%}
.commerce-orders .commerce-order-table.has-order-selection th:nth-child(3){width:13%}
.commerce-orders .commerce-order-table.has-order-selection th:nth-child(4){width:14%}
.commerce-orders .commerce-order-table.has-order-selection th:nth-child(5){width:10%}
.commerce-orders .commerce-order-table.has-order-selection th:nth-child(6){width:12%}
.commerce-orders .commerce-order-table.has-order-selection th:nth-child(7){width:13%}
.commerce-orders .commerce-order-table.has-order-selection th:nth-child(8),.commerce-orders .commerce-order-table.has-order-selection td:nth-child(8){width:15%;min-width:230px}
.commerce-orders .commerce-order-table.has-order-selection th:last-child{width:8%}
.commerce-orders .cell-subtext{font-size:11px;line-height:1.5}
.commerce-disputes .ops-title{padding:24px 26px 22px}
.commerce-disputes .ops-title h2{font-size:25px}
.commerce-disputes .ops-title p{line-height:1.6;font-size:13px}
.commerce-disputes .ops-stats{padding:22px 26px 8px;gap:14px}
.commerce-disputes .ops-stats .ops-stat-card{display:block;min-height:108px;padding:18px 20px;border:1px solid #e4e9f0;border-left:4px solid #2367db;border-radius:14px;background:linear-gradient(150deg,#fff,#f8faff);box-shadow:none;color:inherit;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.commerce-disputes .ops-stats .ops-stat-card:nth-child(2){border-left-color:#f59e0b}
.commerce-disputes .ops-stats .ops-stat-card:nth-child(3){border-left-color:#10b981}
.commerce-disputes .ops-stats .ops-stat-card:nth-child(4){border-left-color:#8b5cf6}
.commerce-disputes .ops-stats .ops-stat-card:nth-child(5){border-left-color:#06b6d4}
.commerce-disputes .ops-stats .ops-stat-card:hover,.commerce-disputes .ops-stats .ops-stat-card:focus-visible,.commerce-disputes .ops-stats .ops-stat-card.active{border-color:var(--accent);box-shadow:0 8px 22px rgba(36,86,230,.12);transform:translateY(-1px);outline:none}
.commerce-disputes .ops-stats .ops-stat-card span{display:block;font-size:12px;color:var(--muted)}
.commerce-disputes .ops-stats .ops-stat-card strong{display:block;font-size:27px;margin:8px 0 0}
.commerce-disputes .commerce-search{padding:18px 26px}
.commerce-disputes .filter-tabs{padding:0 26px 20px;gap:8px}
.commerce-disputes .filter-tabs a{font-size:12px;padding:8px 13px}
.commerce-disputes .filter-tabs a.active{background:var(--accent);border-color:var(--accent)}
.commerce-disputes .table-wrap{overflow-x:visible}
.commerce-dispute-table{min-width:0;width:100%;table-layout:fixed}
.commerce-dispute-table th:nth-child(1){width:21%}
.commerce-dispute-table th:nth-child(2){width:16%}
.commerce-dispute-table th:nth-child(3){width:15%}
.commerce-dispute-table th:nth-child(4){width:14%}
.commerce-dispute-table th:nth-child(5){width:16%}
.commerce-dispute-table th:nth-child(6){width:10%}
.commerce-dispute-table th:nth-child(7){width:8%}
.commerce-dispute-table td,.commerce-dispute-table th{padding:17px 16px!important}
.commerce-dispute-table code{font-size:11px;overflow-wrap:anywhere}
.commerce-dispute-table tbody tr[data-dispute-row]{cursor:pointer}
.commerce-dispute-table tbody tr[data-dispute-row]:hover td{background:#f8faff}
.commerce-text-button{padding:0;border:0;background:none;text-align:left;cursor:pointer;font:600 13px/1.5 inherit;overflow-wrap:anywhere;color:var(--accent)}
.commerce-text-button:hover{text-decoration:underline}
.commerce-page button:disabled{opacity:.6;cursor:wait}
.commerce-form-note{margin:18px 0 0;font-size:12px;line-height:1.65}
.commerce-detail-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.commerce-detail-title>code{font-size:17px;font-weight:700;overflow-wrap:anywhere}
.commerce-detail .order-detail-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}
.commerce-detail .detail-card{box-shadow:none;border-radius:12px}
.commerce-detail .detail-list strong,.commerce-dispute-detail .detail-list strong{font-size:13px;line-height:1.6;font-weight:600}
.commerce-detail .detail-card>header h4,.commerce-dispute-detail .detail-card>header h4{font-size:14px}
.commerce-detail-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}
.commerce-shipping .carrier-options{gap:8px;margin-bottom:22px}
.commerce-shipping .carrier-option{padding:8px 12px;border-radius:8px;min-height:36px;font-size:12px}
.commerce-shipping .carrier-option.active{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.commerce-dispute-detail h3{font-size:14px;margin:22px 0 12px}
.commerce-dispute-detail .detail-card{border-radius:12px}
.commerce-dispute-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:4px 0 18px;border-bottom:1px solid var(--border)}
.commerce-dispute-summary code{font-size:17px;font-weight:750;overflow-wrap:anywhere}
.commerce-dispute-summary p{margin:7px 0 0;color:var(--ink-3);font-size:12px}
.commerce-dispute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.commerce-dispute-grid .detail-card{min-width:0}
.commerce-dispute-section{margin-top:22px}
.commerce-reference-section{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
.commerce-reference-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.commerce-reference-section-head h3{margin:0 0 4px}
.commerce-reference-section-head span{color:var(--ink-3);font-size:12px}
.commerce-dispute-detail .message-list{gap:10px}
.commerce-dispute-detail .message-list article{font-size:13px;overflow-wrap:anywhere}
.commerce-finance-impact-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.commerce-finance-impact-row>div:last-child{text-align:right;white-space:nowrap}
.commerce-finance-impact-row p{margin:5px 0 0;color:var(--ink-3);font-size:12px}
.commerce-finance-impact-row small{display:block;margin-top:5px;color:var(--ink-3)}
.commerce-dispute-quick-actions{justify-content:flex-start;flex-wrap:wrap}
.commerce-inline-empty{padding:24px;border:1px dashed var(--border-strong);border-radius:12px;text-align:center;color:var(--ink-3);font-size:13px}
.commerce-note-field{margin-top:20px}
.commerce-note-field textarea{min-height:100px;resize:vertical}
.commerce-wide-modal{width:min(1440px,calc(100vw - 32px))!important;max-width:1440px!important;max-height:calc(100vh - 24px)!important;overflow:hidden}
.commerce-wide-modal>.panel{display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 24px)}
.commerce-wide-modal .modal-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.commerce-wide-modal .modal-form>.panel-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 28px 32px}
.commerce-wide-modal .panel-head,.commerce-wide-modal .modal-footer{flex-shrink:0}
@media(min-width:901px){
  .commerce-dispute-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .commerce-dispute-detail>.commerce-dispute-summary{grid-column:1/-1}
  .commerce-dispute-detail>.commerce-reference-section{display:contents}
  .commerce-dispute-detail>.commerce-reference-section>.commerce-reference-section-head{grid-column:1/-1;margin:18px 0 0}
  .commerce-dispute-detail>.commerce-reference-section>.detail-card{grid-column:1}
  .commerce-dispute-detail>.commerce-dispute-grid{display:contents}
  .commerce-dispute-detail>.commerce-dispute-grid>.detail-card:nth-child(1){grid-column:2}
  .commerce-dispute-detail>.commerce-dispute-grid>.detail-card:nth-child(2){grid-column:1}
  .commerce-dispute-detail>.commerce-dispute-grid>.detail-card:nth-child(3){grid-column:2}
  .commerce-dispute-detail>.commerce-dispute-section:not(.commerce-reference-section),
  .commerce-dispute-detail>.commerce-note-field,
  .commerce-dispute-detail>.commerce-form-note,
  .commerce-dispute-detail>.form-actions{grid-column:1/-1}
}
@media(max-width:1380px){.commerce-page .panel-head{flex-wrap:wrap}.commerce-page .refresh-controls{justify-content:flex-start}.commerce-page .commerce-search{gap:8px}.commerce-orders .order-ledger-head{align-items:flex-start}.commerce-orders .refresh-controls{flex-wrap:wrap}.commerce-page .refresh-controls select{max-width:185px}.commerce-page .refresh-controls .btn{padding-left:13px;padding-right:13px;font-size:12px}}
@media(max-width:900px){.commerce-disputes .ops-stats.five{grid-template-columns:repeat(3,minmax(0,1fr))}.commerce-disputes .table-wrap{overflow:visible}.commerce-dispute-table{display:block}.commerce-dispute-table thead{display:none}.commerce-dispute-table tbody{display:grid;gap:12px;padding:12px}.commerce-dispute-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;padding:10px;border:1px solid var(--border);border-radius:12px}.commerce-dispute-table tbody td{display:block!important;width:auto!important;padding:9px!important;border:0}.commerce-dispute-table tbody td:first-child,.commerce-dispute-table tbody td:last-child{grid-column:1/-1}.commerce-detail .order-detail-layout{grid-template-columns:1fr}.commerce-orders .commerce-search input[name=q]{flex-basis:100%}.commerce-page .refresh-controls{flex-wrap:wrap}}
@media(max-width:620px){.commerce-page .panel-head,.commerce-orders .order-ledger-head{padding:18px}.commerce-page .refresh-controls .btn{flex:1 1 auto}.commerce-page .refresh-controls{width:100%}.commerce-page .commerce-search{padding:16px}.commerce-page .commerce-search input[name=q]{flex-basis:100%}.commerce-page .commerce-search select{flex:1 1 130px;width:auto}.commerce-page .commerce-search input[type=date]{flex:1 1 130px;width:auto}.commerce-orders .order-filters{padding:16px 14px 5px}.commerce-orders .commerce-search{padding:12px 0}.commerce-orders .filter-chips b{width:100%}.order-owner-batch-toolbar{align-items:stretch}.order-owner-batch-toolbar>span{flex-basis:100%}.order-owner-batch-toolbar select{max-width:none;flex:1 1 100%}.order-owner-batch-toolbar .btn{flex:1 1 auto}.commerce-page .pagination{padding:16px}.commerce-disputes .ops-stats.five{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.commerce-disputes .ops-title{padding:20px 16px}.commerce-disputes .ops-title h2{font-size:22px}.commerce-disputes .filter-tabs{padding:0 16px 16px}.commerce-disputes .ops-stats .ops-stat-card{padding:14px;min-height:94px}.commerce-dispute-grid{grid-template-columns:1fr}.commerce-detail .detail-list,.commerce-dispute-detail .detail-list{grid-template-columns:1fr}.commerce-dispute-detail .detail-list>div,.commerce-detail .detail-list>div{border-bottom:1px solid #E9EDF4}.commerce-detail-actions{justify-content:flex-start}.commerce-dispute-quick-actions{display:grid;grid-template-columns:1fr}.commerce-reference-section-head{align-items:stretch;flex-direction:column}.commerce-finance-impact-row{display:grid;grid-template-columns:1fr;gap:8px}.commerce-finance-impact-row>div:last-child{text-align:left}.commerce-wide-modal{width:calc(100vw - 20px)!important;max-height:calc(100vh - 12px)!important}.commerce-wide-modal .modal-form>.panel-body{padding:18px 16px 24px}}
.commerce-task-error{color:#b42318;font-size:11px;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.commerce-task-pending{color:#99620a!important}
.commerce-invoices .url-field{width:100%;height:33px;font-size:11px}
.commerce-invoices .link-url-actions{display:flex;gap:6px;margin-top:6px}
.commerce-invoices .link-url-actions .btn{height:31px;min-height:31px;padding:0 10px;font-size:12px;border-radius:8px}
.content:has(.commerce-orders){width:100%;max-width:none;padding-left:34px;padding-right:34px}
.commerce-orders .commerce-search input[name=amountMin],.commerce-orders .commerce-search input[name=amountMax]{flex:0 1 132px;width:132px;min-width:110px}
@media(max-width:900px){.content:has(.commerce-orders){padding-left:20px;padding-right:20px}}
@media(max-width:620px){.content:has(.commerce-orders){padding-left:12px;padding-right:12px}.commerce-orders .commerce-search input[name=amountMin],.commerce-orders .commerce-search input[name=amountMax]{flex:1 1 130px;width:auto;min-width:0}}
.commerce-text-button{font-family:inherit;font-weight:600;font-size:13px;line-height:1.5}
.commerce-dispute-item,.commerce-dispute-attachment{display:grid;gap:4px;padding:6px 0}
.commerce-dispute-item+.commerce-dispute-item,.commerce-dispute-attachment+.commerce-dispute-attachment{border-top:1px solid #eef0f3}
.commerce-dispute-item small,.commerce-dispute-attachment small,.commerce-dispute-event-code{color:var(--ink-3);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.commerce-dispute-event-code{margin:4px 0}
.commerce-dispute-attachments{display:grid;gap:2px;margin-top:8px}
.commerce-dispute-attachment a{color:var(--brand,#2f6df6);text-decoration:none}
.commerce-dispute-attachment a:hover{text-decoration:underline}
.commerce-reference-message-subject{margin:0 0 4px;font-weight:600}
.commerce-reference-raw{margin-top:4px}
.commerce-reference-raw summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--ink-2)}
.commerce-reference-json{margin:10px 0 0;max-height:460px;overflow:auto;padding:12px 14px;border:1px solid #e5eaf2;border-radius:8px;background:#F6F8FB;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.commerce-dispute-detail .commerce-action-summary{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}.commerce-dispute-detail .commerce-action-summary span{padding:10px 12px;border:1px solid #e5eaf2;border-radius:8px;background:#f8faff;color:var(--ink-2);font-size:12px}.commerce-dispute-detail .commerce-action-list{display:flex;flex-wrap:wrap;gap:8px;min-height:42px;align-items:center}.commerce-dispute-detail .commerce-dispute-amount{display:block;margin-bottom:8px;color:#b47822;font-size:19px;font-variant-numeric:tabular-nums}.commerce-dispute-detail .commerce-dispute-section>.detail-card{margin-top:0}.commerce-dispute-detail .commerce-inline-empty{min-height:58px;display:flex;align-items:center;justify-content:center;border:1px dashed #d8e1ef;border-radius:8px;background:#fbfdff;color:#7b8799;font-size:12px}.commerce-dispute-detail .commerce-note-field{margin-top:22px}.commerce-dispute-detail .finance-text-button{margin-top:10px}
.reference-detail-shell .sidebar{transform:translateX(-100%);transition:transform .2s}
body.nav-open .reference-detail-shell .sidebar{transform:none}
.reference-detail-shell .nav-scrim{display:none}
body.nav-open .reference-detail-shell .nav-scrim{display:block;position:fixed;inset:0;background:#16203350;z-index:19;border:0}
.reference-detail-shell .main{width:100%;margin-left:0;min-height:100vh}
.reference-toolbar{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fff;border-bottom:1px solid #E3E8F0;position:sticky;top:0;z-index:10}
.reference-toolbar-start,.reference-toolbar-account{display:flex;align-items:center;gap:18px}
.reference-detail-shell .reference-toolbar .menu{display:inline-flex;align-items:center;justify-content:center;width:28px;height:32px;margin:0;padding:0;border:0;background:none;color:#424a56;cursor:pointer}
.reference-toolbar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reference-refresh,.reference-account,.reference-more{display:inline-flex;align-items:center;justify-content:center;border:0;background:none;color:#59616d;text-decoration:none;cursor:pointer}
.reference-refresh{width:28px;height:32px;padding:0}
.reference-account{gap:5px}
.reference-account>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#f0f2f5;color:#737b87;font-size:12px;font-weight:700}
.reference-account svg{width:14px;height:14px}
.reference-more{width:20px;height:28px;font-size:23px;line-height:1}
.reference-tabs{height:42px;display:flex;align-items:center;gap:8px;padding:0 16px;background:#f5f6f8}
.reference-home-tab,.reference-current-tab{height:32px;display:inline-flex;align-items:center;gap:10px;padding:0 10px;border-radius:6px;background:#fff;color:#536173;text-decoration:none}
.reference-home-tab{width:44px;justify-content:center}
.reference-home-tab svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.reference-current-tab{color:#2456d3;font-size:13px;font-weight:650}
.reference-current-tab a{display:grid;place-items:center;width:18px;height:18px;color:#9299a4;text-decoration:none;font-size:18px;font-weight:400}
.reference-detail-shell .content{width:100%;max-width:1600px;margin:0 auto;padding:8px 16px 40px}
.commerce-dispute-detail.commerce-dispute-reference-page{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:1500px;margin:0 auto}
.commerce-dispute-reference-page .commerce-dispute-reference-hero,.commerce-dispute-reference-page .commerce-reference-card{min-width:0;margin:0;padding:18px 20px;background:#fff;border:1px solid #e4e7eb;border-radius:8px;box-shadow:none}
.commerce-dispute-reference-page .commerce-dispute-reference-hero{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:208px;padding:20px 24px}
.commerce-dispute-reference-page .commerce-reference-return{margin-left:46px;color:#586475;text-decoration:none;font-size:13px;line-height:22px}
.commerce-dispute-reference-page .commerce-reference-return:hover,.commerce-reference-link:hover{color:#2456d3;text-decoration:underline}
.commerce-reference-identity{display:flex;align-items:center;gap:12px;min-width:0}
.commerce-reference-identity>span{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:8px;background:#eef2ff;color:#355dd7;font-weight:800}
.commerce-reference-identity h1{margin:0;color:#20242b;font-size:19px;line-height:1.4;font-weight:700}
.commerce-reference-identity p{margin:4px 0 0;color:#657080;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.commerce-reference-total{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:auto}
.commerce-reference-total strong{color:#ad7024;font-size:21px;line-height:1.35;font-weight:750;font-variant-numeric:tabular-nums}
.commerce-reference-total span,.commerce-reference-status{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border:1px solid #f0c8c6;border-radius:4px;background:#fff6f5;color:#bb4943;font-size:12px;line-height:1.3}
.commerce-reference-outcome{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border:1px solid #d8dce3;border-radius:4px;background:#f6f7f9;color:#586475;font-size:12px;line-height:1.4}
.commerce-reference-outcome.is-win{border-color:#b7eb8f;background:#f6ffed;color:#389e0d}
.commerce-reference-outcome.is-loss{border-color:#ffa39e;background:#fff1f0;color:#cf1322}
.commerce-reference-outcome.is-refund{border-color:#ffe58f;background:#fffbe6;color:#ad8b00}
.commerce-dispute-reference-page .commerce-reference-card{padding:17px 20px 20px}
.commerce-dispute-reference-page .commerce-reference-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.commerce-dispute-reference-page .commerce-reference-section-head>div{display:flex;align-items:center;gap:8px;min-width:0}
.commerce-dispute-reference-page .commerce-reference-section-head>div:before{content:"";width:4px;height:20px;flex:none;border-radius:2px;background:#3561d6}
.commerce-dispute-reference-page .commerce-reference-section-head h3{margin:0;color:#20242b;font-size:14px;line-height:1.45;font-weight:700}
.commerce-dispute-reference-page .commerce-reference-section-head>div>span{color:#79818d;font-size:12px;line-height:1.4}
.commerce-dispute-reference-page .commerce-reference-table{width:100%;table-layout:fixed;border:1px solid #dedfe2;border-collapse:separate;border-spacing:0;border-radius:6px;overflow:hidden;color:#252a31;font-size:13px;line-height:1.55}
.commerce-dispute-reference-page .commerce-reference-table th,.commerce-dispute-reference-page .commerce-reference-table td{padding:9px 11px;border-right:1px solid #dedfe2;border-bottom:1px solid #dedfe2;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.commerce-dispute-reference-page .commerce-reference-table tr:last-child th,.commerce-dispute-reference-page .commerce-reference-table tr:last-child td{border-bottom:0}
.commerce-dispute-reference-page .commerce-reference-table th:last-child,.commerce-dispute-reference-page .commerce-reference-table td:last-child{border-right:0}
.commerce-dispute-reference-page .commerce-reference-table th{width:18%;background:#f6f6f7;color:#30343a;font-weight:650}
.commerce-dispute-reference-page .commerce-reference-table td{width:32%;background:#fff;color:#262b31}
.commerce-dispute-reference-page .commerce-reference-table .commerce-reference-wide th{width:18%}
.commerce-dispute-reference-page .commerce-reference-table .commerce-reference-wide td{width:auto}
.commerce-reference-link{display:inline;padding:0;border:0;background:none;color:#2856c7;font:inherit;font-weight:600;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.commerce-reference-subheading{margin:0 0 10px;color:#20242b;font-size:13px;line-height:1.45;font-weight:700}
.commerce-reference-description{min-height:34px;white-space:pre-wrap;overflow-wrap:anywhere}
.commerce-dispute-reference-page .commerce-action-summary{display:flex;flex-wrap:wrap;gap:9px;margin:0}
.commerce-dispute-reference-page .commerce-action-summary>span{width:156px;min-width:156px;flex:0 0 156px;display:flex;flex-direction:column;gap:4px;padding:8px 12px;border-radius:6px;background:#f4f4f5;color:#272b31;font-size:12px}
.commerce-dispute-reference-page .commerce-action-summary small{color:#737a84;font-size:11px}
.commerce-dispute-reference-page .commerce-action-summary strong{font-size:12px;font-weight:650;overflow-wrap:anywhere}
.commerce-dispute-reference-page .commerce-action-list{display:flex;flex-wrap:wrap;gap:8px;min-height:0;margin-top:12px}
.commerce-reference-empty-state{min-height:156px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#555d68;font-size:13px;text-align:center}
.commerce-reference-empty-icon{width:48px;height:48px;display:grid;place-items:center;color:#e2e5ea}
.commerce-reference-empty-icon svg{width:46px;height:46px;fill:#f7f8fa;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.commerce-reference-timeline{position:relative;margin:0;padding:0 0 0 24px;list-style:none}
.commerce-reference-timeline:before{content:"";position:absolute;top:7px;bottom:14px;left:7px;width:1px;background:#e2e4e8}
.commerce-reference-timeline li{position:relative;padding:0 0 17px 4px;overflow-wrap:anywhere}
.commerce-reference-timeline li:last-child{padding-bottom:4px}
.commerce-reference-timeline li:before{content:"";position:absolute;top:5px;left:-21px;width:10px;height:10px;border-radius:50%;background:#e1e3e6}
.commerce-reference-timeline time,.commerce-reference-timeline strong,.commerce-reference-timeline p{display:block}
.commerce-reference-timeline time{margin-bottom:4px;color:#686f79;font-size:12px;line-height:1.45;font-variant-numeric:tabular-nums}
.commerce-reference-timeline strong{color:#22272d;font-size:13px;line-height:1.5}
.commerce-reference-timeline p{margin:4px 0 0;color:#68717d;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.commerce-reference-timeline code{display:block;margin-top:4px;overflow-wrap:anywhere}
.commerce-reference-empty{padding:18px;color:#9299a3;font-size:12px;text-align:center}
.commerce-reference-messages{display:grid;gap:10px}
.commerce-reference-messages article{padding:12px;border-radius:6px;background:#f4f4f5;overflow-wrap:anywhere}
.commerce-reference-messages article>div{display:flex;justify-content:space-between;gap:12px}
.commerce-reference-messages time{flex:none;color:#68717d;font-size:12px}
.commerce-reference-messages p{margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.commerce-finance-impact-list{display:grid;gap:10px}
.commerce-finance-impact-item{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) max-content;grid-template-rows:auto auto;align-items:center;gap:6px 14px;padding:12px;border-radius:6px;background:#f4f4f5}
.commerce-finance-impact-item strong{min-width:0;color:#20242b;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.commerce-finance-impact-id{grid-column:1;grid-row:1}
.commerce-finance-impact-kind{grid-column:2;grid-row:1;justify-self:end;padding:2px 6px;border:1px solid;border-radius:4px;font-size:11px;line-height:1.3}
.commerce-finance-impact-kind.danger{border-color:#e2a3a0;color:#b24a45}
.commerce-finance-impact-kind.warning{border-color:#e4c170;color:#a8791e}
.commerce-finance-impact-kind.success{border-color:#8fc7a5;color:#47865d}
.commerce-finance-impact-item time{grid-column:1;grid-row:2;color:#68717d;font-size:12px;line-height:1.4}
.commerce-finance-impact-amount{grid-column:2;grid-row:2;text-align:right;white-space:nowrap}
.commerce-reference-order-button{width:100%;min-height:36px;border-color:#dedfe2;border-radius:6px;color:#30343a;background:#fff;font-size:13px;font-weight:600}
.commerce-reference-order-button:hover{border-color:#9da6b4;background:#fbfbfc}
.commerce-dispute-reference-page .commerce-dispute-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.commerce-reference-notes{display:block;width:100%;min-height:110px;padding:10px 12px;border:1px solid #d8dce3;border-radius:6px;background:#fff;color:#252a31;font:inherit;resize:vertical}
.commerce-reference-note-hint{margin:8px 0 0;color:#79818d;font-size:12px;line-height:1.55}
.commerce-reference-note-actions{display:flex;justify-content:flex-end;margin-top:12px}
.commerce-reference-notice{margin:14px 0 0;font-size:12px;line-height:1.6}
.commerce-reference-backtop{position:fixed;right:22px;bottom:22px;z-index:12;width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:50%;background:#fff;color:#2456d3;box-shadow:0 3px 14px #17203324;cursor:pointer}
.commerce-reference-backtop svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.commerce-reference-backtop[hidden]{display:none}
@media(max-width:760px){.reference-detail-shell .content{padding:8px 16px 32px}.reference-toolbar{padding:0 12px}.reference-toolbar-start{gap:14px}.reference-detail-shell .reference-toolbar .menu{display:inline-flex}.reference-tabs{padding:0 12px}.commerce-dispute-reference-page .commerce-dispute-reference-hero{min-height:195px;padding:17px 20px}.commerce-dispute-reference-page .commerce-reference-card{padding:15px 16px}.commerce-dispute-reference-page .commerce-reference-section-head{align-items:flex-start}.commerce-dispute-reference-page .commerce-reference-table th,.commerce-dispute-reference-page .commerce-reference-table td{padding:8px 7px;font-size:12px}.commerce-dispute-reference-page .commerce-reference-table th{width:20%}.commerce-dispute-reference-page .commerce-reference-table td{width:30%}.commerce-reference-empty-state{min-height:140px}.commerce-finance-impact-item{padding:10px}.commerce-reference-timeline{padding-left:21px}.commerce-reference-timeline li:before{left:-18px}.commerce-reference-timeline:before{left:10px}}
@media(max-width:480px){.reference-detail-shell .content{padding:8px 12px 32px}.commerce-dispute-reference-page .commerce-dispute-reference-hero{padding:16px 14px}.commerce-dispute-reference-page .commerce-reference-card{padding:14px 12px}.commerce-dispute-reference-page .commerce-action-summary>span{width:auto;min-width:0;flex:1 1 calc(50% - 5px)}.commerce-dispute-reference-page .commerce-reference-table th{width:22%;padding:8px 6px}.commerce-dispute-reference-page .commerce-reference-table td{width:28%;padding:8px 6px}.commerce-reference-messages article>div{flex-wrap:wrap}.commerce-reference-messages time{flex:1 1 100%}.commerce-dispute-reference-page .commerce-dispute-quick-actions{grid-template-columns:1fr}}
@media(max-width:760px){.commerce-dispute-reference-page .commerce-reference-table tbody tr{display:grid;grid-template-columns:minmax(74px,26%) minmax(0,1fr);width:100%}.commerce-dispute-reference-page .commerce-reference-table tbody th,.commerce-dispute-reference-page .commerce-reference-table tbody td{width:auto!important;min-width:0;box-sizing:border-box}.commerce-dispute-reference-page .commerce-reference-table tbody td{overflow-wrap:anywhere}}
.commerce-order-reference-page .commerce-order-reference-hero{min-height:0;gap:16px;padding:20px 24px 22px}
.commerce-order-reference-page .commerce-reference-return{margin-left:0;color:#2456d3;font-weight:650}
.commerce-order-hero-row{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.commerce-order-reference-page .commerce-reference-identity>span{width:44px;height:44px;border-radius:12px;font-size:18px}
.commerce-order-reference-page .commerce-reference-identity h1{font-size:22px;line-height:1.3}
.commerce-order-reference-page .commerce-reference-identity p{font-size:13px}
.commerce-order-control-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.commerce-order-hero-status,.commerce-order-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.commerce-order-status{min-height:25px;display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border:1px solid;border-radius:4px;font-size:12px;line-height:1.35;white-space:nowrap}
.commerce-order-status.success{border-color:#b9d9a7;background:#f5fbf0;color:#65a543}
.commerce-order-status.info{border-color:#b7c8ed;background:#f3f6fd;color:#3760c9}
.commerce-order-status.neutral{border-color:#c4d0e7;background:#eef3fb;color:#47658e;font-weight:650}
.commerce-order-status.neutral b{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#3f6ddb;color:#fff;font-size:11px;line-height:1}
.commerce-order-hero-actions .btn{min-height:32px;padding:5px 14px;border-radius:5px;font-size:12px}
.commerce-order-hero-actions .btn:first-child{border-color:#e7ce8c;background:#fffaf0;color:#c49631}
.commerce-order-hero-actions .btn.primary{border-color:#b8d99e;background:#f3faed;color:#67a544}
.commerce-order-hero-actions .btn:disabled{opacity:.52;cursor:not-allowed}
.commerce-order-summary-grid{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.commerce-order-summary-grid>div{min-width:0;display:flex;flex-direction:column;gap:7px;padding:15px;border:1px solid #e4e6e9;border-radius:8px;background:#FAFBFD}
.commerce-order-summary-grid>div:first-child{background:#f7faff}
.commerce-order-summary-grid span{color:#68717d;font-size:12px;line-height:1.4}
.commerce-order-summary-grid strong{color:#20242b;font-size:15px;line-height:1.4;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.commerce-order-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.commerce-order-info-item{min-width:0;display:flex;flex-direction:column;gap:7px;padding:13px 0;border-bottom:1px solid #e6e7e9;color:#20242b}
.commerce-order-info-item.wide{grid-column:1/-1}
.commerce-order-info-item>span{color:#777f8a;font-size:12px;line-height:1.4}
.commerce-order-info-item>strong{min-width:0;color:#20242b;font-size:13px;line-height:1.5;font-weight:700;overflow-wrap:anywhere}
.commerce-order-info-item .order-owner-hierarchy{align-items:flex-start}
.commerce-order-info-item .order-owner-level{white-space:normal}
.commerce-order-address{display:flex;align-items:center;justify-content:space-between;gap:12px}
.commerce-order-address>span{min-width:0;overflow-wrap:anywhere}
.commerce-order-reference-page .commerce-text-button{min-height:0;padding:0;border:0;background:none;color:#2456d3;font-weight:650;white-space:nowrap}
.commerce-order-tracker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.commerce-order-tracker+ .commerce-order-tracker{margin-top:6px}
.commerce-order-note-card .commerce-reference-section-head{margin-bottom:12px}
.commerce-order-note-card .commerce-reference-section-head>.btn{min-height:30px;padding:4px 13px;border-radius:5px;font-size:12px}
.commerce-order-note-editor{position:relative}
.commerce-order-note-editor textarea{width:100%;min-height:112px;display:block;padding:12px 14px 30px;border:1px solid #dfe1e5;border-radius:8px;background:#fff;color:#20242b;font:13px/1.6 inherit;resize:vertical;outline:none}
.commerce-order-note-editor textarea:focus{border-color:#5f7ed8;box-shadow:0 0 0 2px #315fd41f}
.commerce-order-note-editor textarea::placeholder{color:#a0a5ad}
.commerce-order-note-count{position:absolute;right:12px;bottom:9px;color:#9a9fa7;font-size:11px;font-variant-numeric:tabular-nums}
.commerce-order-related-tabs{display:flex;align-items:center;gap:4px;margin:0 -20px;padding:0 20px;border-bottom:1px solid #e3e5e8;overflow-x:auto;scrollbar-width:none}
.commerce-order-related-tabs::-webkit-scrollbar{display:none}
.commerce-order-related-tabs button{min-width:max-content;height:38px;padding:0 14px;border:0;border-bottom:2px solid transparent;background:none;color:#717986;font:600 12px/1 inherit;cursor:pointer}
.commerce-order-related-tabs button[aria-selected="true"]{border-bottom-color:#315fd4;color:#315fd4}
.commerce-order-related-panels{min-height:170px;padding-top:12px}
.commerce-order-related-panels [hidden]{display:none}
.commerce-order-related-table-wrap{width:100%;overflow-x:auto}
.commerce-order-related-table{width:100%;min-width:620px;border-collapse:collapse;font-size:12px;line-height:1.5}
.commerce-order-related-table th,.commerce-order-related-table td{padding:10px 12px;border-bottom:1px solid #e8e9eb;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.commerce-order-related-table th{background:#f7f7f8;color:#626b77;font-weight:650;white-space:nowrap}
.commerce-order-related-empty{min-height:148px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#858c96;font-size:12px}
.commerce-order-related-empty .commerce-reference-empty-icon{width:46px;height:46px}
.commerce-order-related-empty .commerce-reference-empty-icon svg{width:44px;height:44px}
.commerce-order-amount-in{color:#43855a;font-weight:700}
.commerce-order-amount-out{color:#b44b47;font-weight:700}
.commerce-order-bottom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.commerce-order-status-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0}
.commerce-order-status-list>div{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e7e8ea}
.commerce-order-status-list dt{color:#777f8a;font-size:12px}
.commerce-order-status-list dd{margin:0;color:#20242b;font-size:12px;font-weight:700;text-align:right;overflow-wrap:anywhere}
.commerce-order-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.commerce-order-quick-actions .btn{width:100%;min-height:34px;justify-content:center;border-radius:6px;font-size:12px;text-decoration:none}
@media(max-width:1000px){.commerce-order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.commerce-order-reference-page .commerce-order-reference-hero{min-height:0;padding:17px 20px}.commerce-order-reference-page .commerce-reference-identity h1{font-size:19px}.commerce-order-control-row{align-items:flex-start;flex-direction:column}.commerce-order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.commerce-order-info-grid{column-gap:18px}.commerce-order-bottom-grid{grid-template-columns:1fr}.commerce-order-related-tabs{margin:0 -16px;padding:0 16px}}
@media(max-width:480px){.commerce-order-reference-page .commerce-order-reference-hero{padding:16px 14px}.commerce-order-reference-page .commerce-reference-identity{align-items:flex-start}.commerce-order-reference-page .commerce-reference-identity>span{width:38px;height:38px;font-size:16px}.commerce-order-hero-status,.commerce-order-hero-actions{gap:7px}.commerce-order-hero-actions{width:100%}.commerce-order-hero-actions .btn{flex:1;min-width:92px;padding:5px 9px}.commerce-order-summary-grid{grid-template-columns:1fr}.commerce-order-summary-grid>div{padding:12px}.commerce-order-info-grid{grid-template-columns:1fr}.commerce-order-info-item.wide{grid-column:auto}.commerce-order-info-item{padding:11px 0}.commerce-order-address{align-items:flex-start;flex-direction:column}.commerce-order-related-tabs{margin:0 -12px;padding:0 12px}.commerce-order-status-list{grid-template-columns:1fr}.commerce-order-quick-actions{grid-template-columns:1fr}}
@media(max-width:390px){.commerce-order-reference-page .commerce-order-reference-hero{min-height:0}.commerce-order-reference-page .commerce-reference-identity h1{font-size:17px}.commerce-order-status{white-space:normal}}

/* 通道费列：内容块与铅笔按钮分开排，避免子文本被挤进按钮槽位后被省略号截断 */
.channel-fee-cell{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}
.channel-fee-cell .channel-fee-amount{display:flex;flex-direction:column;justify-content:center;min-width:0}
.channel-fee-cell .cell-subtext{white-space:nowrap;overflow:visible;text-overflow:clip}
.commerce-order-table th.channel-fee-column,.commerce-order-table td.channel-fee-column{white-space:nowrap;min-width:118px}
.commerce-order-table td.channel-fee-column .order-owner-edit{flex:0 0 auto}
