.order-record-row{cursor:pointer}.order-record-row:hover{background:#f1f6fb}.order-record-row:focus-visible{outline:2px solid #2767b4;outline-offset:-2px}
.payment-qr-display .primary{background:var(--blue);color:#fff}
#order-record-cards[hidden],.order-records-table[hidden]{display:none!important}
.order-record-card{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:12px;margin-bottom:8px;white-space:normal;overflow-wrap:anywhere}
.order-record-heading,.order-record-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.order-record-heading{justify-content:space-between;margin-bottom:6px}.order-record-heading time{font-size:12px;color:var(--muted)}.order-record-summary{margin-top:8px}
.order-detail{min-width:0;overflow-wrap:anywhere}.order-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:0 0 12px}.order-detail-meta>div{min-width:0;display:flex;align-items:baseline;gap:8px}.order-detail-meta dt{color:var(--muted);flex:none}.order-detail-meta dd{margin:0;min-width:0;white-space:pre-wrap}.order-detail-meta>div:last-child{grid-column:1/-1}
.order-detail-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--line)}.order-detail-image{width:72px;height:86px;background:#f4f6f8;border-radius:5px;color:var(--muted);font-size:12px;display:grid;place-items:center}.order-detail-image img{width:100%;height:100%;object-fit:contain}.order-detail-item-info{min-width:0}.order-detail-item h3{font-size:16px;line-height:1.4;margin:0 0 4px}.order-detail-item p{margin:3px 0;color:#65758a;line-height:1.4}.order-detail-code{font-size:12px}.order-item-amount{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:6px}
.order-detail-totals{border-top:1px solid var(--line);padding:10px 0}.order-detail-totals>div{display:flex;justify-content:space-between;gap:12px;margin:5px 0}.order-detail-totals strong{font-weight:600}.order-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.order-shipping-info{border-top:1px solid var(--line);padding:8px 0}.order-shipping-info h3{font-size:15px;margin:4px 0}.order-shipping-info p{margin:4px 0;white-space:pre-wrap}.order-shipping-check{display:flex;align-items:center;gap:8px;margin-bottom:10px}.order-shipping-check input{width:18px;height:18px}.order-success{text-align:center}.order-success>strong{font-size:28px}.order-success p{margin:8px 0}.order-receipt-preview{text-align:center;background:white;min-width:0}
.order-qr-settings{display:grid;gap:12px}.order-qr-card{padding:12px;border:1px solid var(--line);border-radius:8px}.order-qr-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-qr-card h3{font-size:16px;margin:0}.order-qr-card header span{font-size:13px;color:var(--muted)}.order-qr-settings-body{display:flex;align-items:center;gap:12px;margin-top:10px}.order-qr-settings-body>img,.order-qr-placeholder{width:88px;height:88px;object-fit:contain;flex:none}.order-qr-placeholder{display:grid;place-items:center;background:#f4f6f8;font-size:13px;color:var(--muted)}.order-qr-settings-body>div{display:flex;gap:8px;flex-wrap:wrap}.order-qr-upload{position:relative;display:inline-flex;align-items:center;cursor:pointer}.order-qr-upload input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.order-qr-store,.order-qr-help{font-size:13px;color:var(--muted);line-height:1.4;margin:8px 0}.payment-qr-display{width:min(440px,calc(100% - 24px));padding:20px;text-align:center;background:#fff;overflow:auto;max-height:92dvh}.payment-qr-display h2{font-size:20px;margin:0 0 12px}.payment-qr-display img{display:block;width:100%;max-height:60dvh;aspect-ratio:1;object-fit:contain;background:white}.payment-qr-display p{font-size:14px;margin:12px 0}.payment-qr-display button{min-height:40px}
#payment-rows .payment-row:has(.checkout-qr-action){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}#payment-rows .payment-row:has(.checkout-qr-action)>input{width:100%}.checkout-qr-action{grid-column:1/-1;color:var(--muted);font-size:12px}.checkout-qr-action button{min-height:36px}
@media(max-width:950px){
 #order-record-cards{font-size:14px;min-width:0}#order-record-cards .empty{padding:20px 8px}#order-record-cards .pill{font-size:12px;padding:3px 6px}.order-record-summary{gap:6px 10px}
 @layer nzip-mobile-controls{
  html body #dialog[data-sheet^="order-"],html body #dialog[data-sheet="checkout-success"],html body #dialog[data-sheet="payment-qr-settings"]{width:calc(100% - 16px)!important;max-width:640px!important;max-height:calc(100dvh - 24px)!important;min-height:0!important;overflow-x:hidden!important}
  html body #dialog[data-sheet^="order-"]>.modal-head,html body #dialog[data-sheet="checkout-success"]>.modal-head,html body #dialog[data-sheet="payment-qr-settings"]>.modal-head{padding:12px!important;min-height:0!important}
  html body #dialog[data-sheet^="order-"]>.modal-head h2,html body #dialog[data-sheet="checkout-success"]>.modal-head h2,html body #dialog[data-sheet="payment-qr-settings"]>.modal-head h2{font-size:18px!important}
  html body #dialog[data-sheet^="order-"]>.modal-body,html body #dialog[data-sheet="checkout-success"]>.modal-body,html body #dialog[data-sheet="payment-qr-settings"]>.modal-body{padding:12px!important;min-width:0!important;overflow-x:hidden!important;font-size:14px!important}
  html body #dialog[data-sheet^="order-"]>.modal-footer,html body #dialog[data-sheet="checkout-success"]>.modal-footer,html body #dialog[data-sheet="payment-qr-settings"]>.modal-footer{padding:10px 12px!important;gap:8px!important;flex-wrap:wrap!important;min-height:0!important}
  html body #dialog[data-sheet^="order-"]>.modal-footer button,html body #dialog[data-sheet="checkout-success"]>.modal-footer button,html body #dialog[data-sheet="payment-qr-settings"]>.modal-footer button{padding:9px 10px!important;min-height:38px!important;font-size:14px!important}
 }
 .order-detail-meta{grid-template-columns:minmax(0,1fr);gap:5px;font-size:13px}.order-detail-item{grid-template-columns:58px minmax(0,1fr);gap:9px;padding:10px 0}.order-detail-image{width:58px;height:70px}.order-detail-item h3{font-size:15px}.order-detail-item p{font-size:12px}.order-detail-totals{padding:8px 0}.order-detail-totals>div{margin:4px 0}.order-detail-actions button{padding:8px;font-size:13px;min-height:36px}#shipping-fields .field{margin:8px 0}#shipping-fields textarea{min-height:60px}.order-qr-settings-body{gap:8px}.order-qr-settings-body .neutral{padding:8px;font-size:13px;min-height:36px}#dialog[data-sheet^="order-"] #dialog-error:empty,#dialog[data-sheet="checkout-success"] #dialog-error:empty,#dialog[data-sheet="payment-qr-settings"] #dialog-error:empty{display:none}
}

.cart-identity .cart-shipping{grid-column:1/-1;min-width:0;width:100%}
.cart-shipping-toggle{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.cart-shipping-toggle input{width:18px;height:18px;margin:0;flex:none}
#cart-shipping-fields[hidden]{display:none!important}
#cart-shipping-fields{margin-top:10px;display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
#cart-shipping-fields .field{margin:0;min-width:0}#cart-shipping-fields textarea,#cart-shipping-fields input{box-sizing:border-box;width:100%;height:44px;min-height:44px;padding:10px;line-height:22px;font-family:inherit;font-size:14px}#cart-shipping-fields textarea{resize:vertical;max-height:140px}
#cart-shipping-error{font-size:12px;line-height:1.4;color:#b13c32;margin:6px 0 0}#cart-shipping-error:empty{display:none}
@media(max-width:950px){#cart-shipping-fields{grid-template-columns:minmax(0,1fr);gap:8px}#cart-shipping-fields .field>span{margin-bottom:4px}.cart-shipping{padding-top:4px}}
@media(max-width:950px){
 #cart-shipping-fields :is(textarea,input){appearance:none;-webkit-appearance:none;border:1px solid #d4dfeb;border-radius:6px;background:#fff;box-shadow:none;outline:none;outline-offset:2px}
 #cart-shipping-fields :is(textarea,input):is(:focus,:focus-visible){border-color:#75a9ec;outline:2px solid #75a9ec;outline-offset:2px;box-shadow:none}
}
.order-detail-top{display:contents}
button.order-detail-image{padding:0;border:0;overflow:hidden}
button.order-detail-image:disabled{opacity:1;cursor:default}
button.order-detail-image:not(:disabled){cursor:zoom-in}
#dialog .order-refund-danger{background:#fff;border:1px solid #d65b60;color:#b4232c}
#dialog .order-refund-danger:hover{background:#fff5f5}
@media(max-width:950px){
 .order-detail-top{display:block;margin-bottom:8px}
 .order-detail-top .order-detail-meta{margin:0;gap:3px;font-size:12px;line-height:1.4}
 .order-detail-top .order-detail-meta>div{display:grid;grid-template-columns:4em minmax(0,1fr);gap:6px;align-items:start}
 .order-detail-top .order-detail-meta dt{white-space:nowrap}
 .order-detail-top .order-detail-meta dd{overflow-wrap:anywhere}
 .order-detail-products .order-detail-item{display:grid;grid-template-columns:52px minmax(0,1fr) 78px;gap:3px 8px;padding:9px 0;align-items:start}
 .order-detail-products .order-detail-item-info,.order-detail-products .order-item-amount{display:contents}
 .order-detail-products .order-detail-image{grid-column:1;grid-row:1 / span 6;width:52px;height:64px}
 .order-detail-products .order-detail-item h3{grid-column:2;grid-row:1;margin:0;font-size:14px;line-height:1.4}
 .order-detail-products .order-detail-item p{grid-column:2/-1;margin:0;font-size:12px;line-height:1.4}
 .order-detail-products .order-item-amount>strong{grid-column:3;grid-row:1;font-size:13px;font-weight:600;white-space:normal;overflow-wrap:anywhere;text-align:right}
 .order-detail-products .order-item-amount>span{grid-column:2/-1;font-size:12px;line-height:1.4}
 .order-detail-totals{padding:6px 0;font-size:13px}
 .order-detail-totals>div{margin:3px 0}
 .order-detail-actions{gap:6px;margin-top:6px}
}
.order-detail-summary,.order-detail-side-actions{display:contents}
@media(max-width:950px){
 .order-detail-summary{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line);padding-top:6px}
 .order-detail-summary>.order-detail-totals{grid-column:1;grid-row:1;border-top:0;padding:0;min-width:0;width:100%}
 .order-detail-side-actions{display:flex;gap:6px;width:100%;align-items:center;flex-wrap:wrap}
 .order-detail-side-actions #edit-order-shipping{order:2;margin-left:auto}
 .order-detail-side-actions .order-detail-actions{order:1}
 .order-detail-side-actions #order-refund{order:-1}
 .order-detail-side-actions .order-detail-actions{display:flex;flex-direction:row;gap:6px;margin:0}
 .order-detail-side-actions>button,.order-detail-side-actions .order-detail-actions button{margin:0;min-height:36px;padding:8px 10px;font-size:13px;white-space:nowrap}
 .order-detail-side-actions>button#edit-order-shipping{margin-left:auto}
 .order-detail-summary>.order-shipping-info{grid-column:1/-1;grid-row:2;padding:6px 0 0}
 @layer nzip-mobile-controls{
  html body #dialog[data-sheet="order-detail"]>.modal-body{padding-bottom:6px!important}
  html body #dialog[data-sheet="order-detail"]>.modal-footer{justify-content:flex-start!important;gap:6px!important;padding:8px 12px!important}
  html body #dialog[data-sheet="order-detail"]>.modal-footer button{flex:0 0 auto!important;margin:0!important;padding:8px!important;min-height:36px!important;font-size:13px!important}
  html body #dialog[data-sheet="order-detail"]>.modal-footer #detail-close{margin-left:auto!important}
 }
}

.order-products-heading{font-size:14px;font-weight:600;margin:8px 0 0}
.order-detail-totals .order-total-emphasis{font-weight:600}

@media(min-width:951px){
 #dialog[data-sheet="order-detail"]>.modal-footer #order-refund{margin-right:auto}
 #dialog[data-sheet="order-detail"] .order-detail-actions:empty{display:none}
}

@media(min-width:951px){
 #dialog[data-sheet="order-detail"]>#order-address-bottom{padding:0 24px 8px;flex:none;text-align:left}
 #dialog[data-sheet="order-detail"]>#order-address-bottom button{margin:0}
}
