/* Selected card 02. No selectors outside the exact patched Orders card. */
.ms-order-card.ms-order-card{box-sizing:border-box;display:block;min-width:0;margin:0;padding:13px;border:1px solid #365b70;border-radius:14px;background:#122e40;color:#edf6ff;font:13px/1.4 system-ui,sans-serif;text-align:left}
.ms-order-card *{box-sizing:border-box}
.ms-order-card .ms-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0}
.ms-order-card .ms-order-reference{min-width:0;flex:1}
.ms-order-card .ms-order-number{display:block;font-size:13px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ms-order-card .ms-order-date{display:block;margin-top:3px;color:#b7ccdd;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums}
.ms-order-card .ms-order-head>span{flex:none;max-width:50%;white-space:normal;text-align:center;font-size:11px}
.ms-order-card .ms-order-gift{display:block;margin-top:8px;color:#cbd6ff;font-size:12px}
.ms-order-card .ms-order-product{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;column-gap:10px;margin:13px 0 12px}
.ms-order-card .ms-order-thumb{position:relative;width:40px;height:40px;min-width:40px;min-height:40px;max-width:40px;max-height:40px;overflow:visible;border-radius:10px}
.ms-order-card .ms-order-thumb [data-order-product-image]{display:block;width:40px;height:40px;border-radius:10px;overflow:hidden}
.ms-order-card .ms-order-thumb img{width:100%;height:100%;object-fit:cover}
.ms-order-card .ms-order-copy{min-width:0}
.ms-order-card .ms-order-product-name{display:block;color:#eef6ff;font-size:14px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.ms-order-card .ms-order-quantity{display:block;margin-top:4px;color:#b7ccdd;font-size:12px;line-height:1.35}
.ms-order-card .ms-order-total{align-self:end;max-width:100%;margin:0 0 1px;font-size:18px;font-weight:750;line-height:1.25;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.ms-order-card .ms-order-reviewed{margin:0 0 9px;color:#9dded5;font-size:12px;line-height:1.4}
.ms-order-card .ms-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;min-width:0}
.ms-order-card .ms-order-post,.ms-order-card .ms-order-post>div:first-child{display:contents}
.ms-order-card :is(.ms-order-actions>button,.ms-order-archive>span>button,.ms-order-post>div:first-child>button,.ms-order-receipt>div>button){display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;width:100%;height:auto;margin:0;padding:8px 10px;border:1px solid #45667e;border-radius:9px;background:transparent;color:#c4daed;font:650 12px/1.25 system-ui,sans-serif;text-align:center;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.ms-order-card :is(.ms-order-actions>button,.ms-order-archive>span>button,.ms-order-post>div:first-child>button,.ms-order-receipt>div>button):hover:not(:disabled){background:#21455e;color:#edf6ff}
.ms-order-card :is(.ms-order-actions>button,.ms-order-archive>span>button,.ms-order-post>div:first-child>button,.ms-order-receipt>div>button):focus-visible{outline:3px solid #c3bfff;outline-offset:2px}
.ms-order-card :is(.ms-order-actions>button,.ms-order-archive>span>button,.ms-order-post>div:first-child>button,.ms-order-receipt>div>button):disabled{opacity:.6;cursor:default}
.ms-order-card :is(.ms-order-actions>button,.ms-order-archive>span>button,.ms-order-post>div:first-child>button,.ms-order-receipt>div>button) svg{width:17px;height:17px;flex:none}
.ms-order-card .ms-order-open{order:1}
.ms-order-card .ms-order-archive{order:2;min-width:0}
.ms-order-card .ms-order-archive>span{display:flex;flex-direction:column;gap:4px;width:100%;min-width:0}
.ms-order-card .ms-order-post>div:first-child>button{order:3}
.ms-order-card .ms-order-post>div:first-child>[data-ms-public-review="native"],.ms-order-card .ms-order-actions .ms-order-review{order:0;grid-column:1/-1;min-height:44px;background:#a9d8ff;color:#09273c;border-color:#a9d8ff;font-size:13px}
.ms-order-card .ms-order-post>div:first-child>[data-ms-public-review="native"]:hover,.ms-order-card .ms-order-actions .ms-order-review:hover{background:#c5e5ff;color:#09273c}
.ms-order-card.ms-order-card .ms-order-actions[data-review-available="false"]>.ms-order-open{background:#a9d8ff;color:#09273c;border-color:#a9d8ff}
.ms-order-card.ms-order-card .ms-order-actions[data-review-available="false"]>.ms-order-open:hover{background:#c5e5ff;color:#09273c}
.ms-order-card .ms-order-receipt{order:4;min-width:0}
.ms-order-card .ms-order-receipt:empty{display:none}
.ms-order-card .ms-order-receipt>div{display:flex;flex-direction:column;gap:5px;padding:0;margin:0;width:100%;border:0;background:transparent}
.ms-order-card .ms-order-receipt[data-state="none"][data-requestable="true"]>div>p:not([role="alert"]){display:none}
.ms-order-card .ms-order-receipt[data-state="requested"],.ms-order-card .ms-order-receipt[data-state="fulfilled"]{grid-column:1/-1}
.ms-order-card .ms-order-receipt p,.ms-order-card [role="alert"]{margin:0;color:#bdd0df;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.ms-order-card [role="alert"]{color:#ffc0b9}
@media(max-width:350px){.ms-order-card .ms-order-product{grid-template-columns:38px minmax(0,1fr);gap:8px}.ms-order-card .ms-order-total{grid-column:2;justify-self:end;margin-top:3px}.ms-order-card .ms-order-thumb{grid-row:1/3}}

/* Keep the complete 4:3 product artwork at a readable size in both order views.
   The 640x480 preview and its original-image fallback remain unchanged. */
span[data-order-product-image]{width:64px;height:48px;min-width:64px;min-height:48px}
[data-order-product-image] img{object-fit:contain;object-position:center}
/* Current native order-detail row; reserve the same width as its shared image. */
li._item_1bs64_110{grid-template-columns:64px minmax(0,1fr) auto}
.ms-order-card .ms-order-product{grid-template-columns:64px minmax(0,1fr) auto}
.ms-order-card .ms-order-thumb{width:64px;height:48px;min-width:64px;min-height:48px;max-width:64px;max-height:48px}
.ms-order-card .ms-order-thumb [data-order-product-image]{width:64px;height:48px}
.ms-order-card .ms-order-thumb img{object-fit:contain;object-position:center}
@media(max-width:350px){.ms-order-card .ms-order-product{grid-template-columns:64px minmax(0,1fr)}}
