.order-tools-in-header{display:none!important}
.order-header-tools{display:flex;align-items:center;gap:6px;flex:none}
.order-header-tool{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;border:1px solid var(--line);border-radius:50%;padding:7px;background:var(--white);color:var(--ink);cursor:pointer}
.order-header-tool svg{width:19px;height:19px;flex:none}.order-header-tool:hover{background:var(--yellow);color:#222}
.order-header-tool:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.order-header-dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);overflow:auto}
.order-header-dialog::backdrop{background:#0008}
.order-header-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.order-header-dialog>header h2{font-size:20px;margin:0}.order-header-dialog>header button{width:34px;height:34px;padding:0;font-size:24px;border-radius:50%}
.order-header-dialog .order-tool-open{display:block;margin:0;padding:0;border:0;background:transparent}
.order-header-dialog .order-tool-open>summary{display:none}
.order-header-dialog .order-admin-disclosure-body{padding:0}
.order-header-dialog .shipping-cost{padding:0;border:0;margin:0}
@media(max-width:1190px){.order-header-tools{gap:2px}.order-header-tool{width:30px;height:32px;min-height:32px;padding:5px;border:0;background:transparent}.order-header-tool svg{width:20px;height:20px}}
/* Unified order management dialogs. */
dialog.order-header-dialog{width:min(410px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:16px 18px;border-radius:12px;box-shadow:0 18px 60px #0003}
.order-header-dialog::backdrop{background:#15202b60;backdrop-filter:blur(3px)}
.order-header-dialog>header{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.order-header-dialog>header h2{display:flex;align-items:center;gap:12px;font-size:19px;line-height:1.4;background:none}
.order-header-dialog>header h2:before{display:none!important}
.order-tool-heading-icon{display:flex;flex:none}.order-tool-heading-icon svg{width:27px;height:27px}
.order-header-dialog>header>button{border:1px solid var(--line);background:transparent;border-radius:50%;width:32px;height:32px;min-height:32px;font-size:23px;flex:none}
.order-header-dialog .field{display:block;margin:0 0 10px}
.order-header-dialog .field>span{font-size:13px;margin-bottom:5px;display:block}
.order-header-dialog :is(input,select){width:100%;min-width:0;min-height:38px;height:38px;padding:8px 12px;margin:0;border:1px solid var(--line);border-radius:7px;background:var(--white);color:var(--ink);font-size:13px}
.order-header-dialog .field[hidden],.order-header-dialog [hidden]{display:none!important}
.order-header-dialog form>.button{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;margin:8px 0 0;border-radius:8px;font-size:14px;font-weight:700}
.order-header-dialog .form-error:empty{display:none}
.order-header-dialog .form-error:not(:empty){margin:8px 0;font-size:12px;color:#b42335}
.order-header-dialog .order-cash-hint{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:12px 0 20px}
.order-cash-hint svg{width:19px;height:19px;flex:none}
.order-header-dialog .order-tool-contact{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:10px;font-size:13px;font-weight:600;color:var(--ink);background:transparent;min-height:40px}
.order-tool-contact svg,.order-header-dialog .tracking-edit>summary svg{width:20px;height:20px;flex:none}
.order-header-dialog .order-admin-disclosure-body>p:has(.order-tool-contact){margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.order-header-dialog .tracking-edit{border-top:1px solid var(--line);margin-top:12px;padding-top:8px}
.order-header-dialog .tracking-edit>summary{display:flex;align-items:center;gap:10px;border:0;border-radius:0;background:transparent;padding:9px 0;font-size:13px}
.order-header-dialog .tracking-edit>summary:after{content:'›';margin-left:auto}
.order-header-dialog .tracking-edit[open]>summary:after{transform:rotate(90deg)}
.order-header-dialog.order-tool-cost .shipping-cost>small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin:16px 0 28px}
.order-cost-input{position:relative}.order-cost-input>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:19px}
.order-header-dialog .order-cost-input>input{height:46px;padding-left:38px}
.order-header-dialog .order-cost-received{display:none}
.order-header-dialog.order-tool-empty .order-admin-disclosure-body>p.muted{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:8px 0 18px;margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.order-empty-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--muted) 12%,var(--white))}.order-empty-symbol svg{width:26px;height:26px}
.order-header-dialog .order-empty-close{width:100%;min-height:38px;border-radius:7px;font-weight:700;font-size:13px;background:transparent;border:1px solid var(--line)}
@media(max-width:380px){dialog.order-header-dialog{padding:14px}.order-header-dialog>header h2{font-size:17px}}
.order-header-dialog .order-tool-open :is(input,select,textarea){max-width:none;width:100%}
