html:has(.physical-orders-dialog[open]) { overflow: hidden; }
.physical-orders-dialog, .physical-orders-dialog * { box-sizing: border-box; }
dialog.physical-orders-dialog { width: min(680px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px 30px 30px; border: 1px solid #c9b6a2; border-radius: 0; background: #faf5ed; color: #49352d; overflow: auto; overscroll-behavior: contain; font:16px/1.55 var(--font-brand); }
.physical-orders-dialog:not([open]) { display: none; }
.physical-orders-dialog::backdrop { background: #21160f70; }
.physical-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.physical-orders-head > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.physical-orders-head button { width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 29px; cursor: pointer; }
.physical-orders-dialog h2, .physical-order-history h2 { font:400 clamp(29px, 5vw, 39px)/1.15 var(--font-brand); letter-spacing: -.03em; margin: 22px 0 18px; }
.physical-orders-dialog label { display: grid; gap: 7px; margin: 15px 0; }
.physical-orders-dialog :is(input:not([type=checkbox]), select) { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #a58f7e; border-radius: 0; color: #49352d; background: #fffaf3; font: inherit; }
.physical-orders-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 18px; }
.physical-orders-fields > [data-shipping-fields], .physical-orders-wide { grid-column: 1 / -1; }
.physical-orders-fields[hidden] { display: none; }
.physical-orders-muted { font-size: 13px; line-height: 1.6; }
.physical-orders-terms { margin-block: 20px; padding-block: 12px; border-block: 1px solid #49352d24; }
.physical-orders-terms summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.physical-orders-terms p { white-space: pre-wrap; font-size: 14px; }
.physical-orders-dialog a, .physical-order-history a { color: inherit; text-underline-offset: 3px; }
.physical-orders-items { list-style: none; padding: 0; margin: 20px 0; }
.physical-orders-items li, .physical-orders-totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid #49352d24; }
.physical-orders-items strong, .physical-orders-totals dd { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.physical-orders-totals { margin: 22px 0; }
.physical-orders-totals dd { margin: 0; }
.physical-orders-total { font-weight: 600; }
.physical-orders-dialog .physical-orders-check, .physical-order-history .physical-orders-check { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0; }
.physical-orders-check input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; accent-color: #49352d; }
.physical-orders-primary, .physical-orders-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 17px; border: 1px solid #49352d; border-radius: 0; font:15px/1.4 var(--font-brand); cursor: pointer; text-decoration: none; }
.physical-orders-primary { background: #49352d; color: #faf5ed; }
.physical-orders-secondary { background: transparent; color: #49352d; }
.physical-orders-dialog form > button { width: 100%; margin-top: 10px; }
.physical-orders-dialog button[hidden] { display: none; }
.physical-orders-dialog button:disabled, .physical-order-history button:disabled { cursor: progress; opacity: .65; }
.physical-orders-dialog :is(button,a,input,select):focus-visible, .physical-order-history :is(button,a,input):focus-visible { outline: 2px solid #925324; outline-offset: 3px; }
[data-orders-error], [data-order-error] { color: #8b302b; }
.physical-order-history { border-top: 1px solid #c9b6a2; margin-top: 35px; padding-top: 14px; scroll-margin-top: 25px; }
.physical-orders-history-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.physical-order-record { margin-top: 25px; padding: 23px 0; border-top: 1px solid #c9b6a2; }
.physical-order-record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.physical-order-record h3 { margin: 0; font:400 22px/1.4 var(--font-brand); }
.physical-order-record:focus-visible { outline: 2px solid #925324; outline-offset: 4px; }
.physical-order-record-head > span { font-size: 13px; }
.physical-orders-account-link { display: inline-block; padding: 12px 0; }
@media(max-width: 520px) { dialog.physical-orders-dialog { width: calc(100vw - 16px); padding: 16px 20px max(24px,env(safe-area-inset-bottom)); max-height: calc(100dvh - 16px); } .physical-orders-fields { grid-template-columns: 1fr; } .physical-orders-dialog form > button, .physical-order-record .physical-orders-primary { width: 100%; } }
