/* Merchtem ordering trial: compact choices, visible add action and an iPhone order sheet. */
.staff-mode #product-dialog{padding:0;width:min(560px,calc(100% - 24px));max-height:90dvh;overflow:hidden;border-radius:24px;background:#f5f5f7}
.staff-mode #product-dialog #product-form{display:flex;flex-direction:column;max-height:90dvh;margin:0}
.staff-mode #product-dialog .product-dialog-header{flex:none;display:flex;gap:14px;align-items:center;padding:18px 52px 16px 18px;max-width:none;width:100%;margin:0;position:relative;border-bottom:1px solid #e0e2e8;background:white}
.staff-mode #product-dialog .dialog-photo{display:block!important;width:68px;height:68px;max-height:none;object-fit:contain;margin:0;border-radius:14px;flex-shrink:0}
.staff-mode #product-dialog .dialog-photo[hidden]{display:none!important}
.staff-mode #product-dialog .eyebrow{font-size:10px;letter-spacing:1.4px;margin:0 0 4px;color:#747d8b}
.staff-mode #product-dialog h2{font-size:22px;line-height:1.15;margin:0;letter-spacing:-.6px}
.staff-mode #product-dialog #dialog-description{font-size:12px;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.staff-mode #product-dialog .close{top:16px;right:14px;width:32px;height:32px;border-radius:50%;background:#eff0f4;font-size:24px;display:grid;place-items:center;padding:0}
.staff-mode .product-dialog-scroll{padding:8px 16px 14px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
.staff-mode #product-dialog .group{margin:8px 0 12px;min-width:0}
.staff-mode #product-dialog .group legend{font-size:13px;margin-bottom:8px}
.staff-mode #product-dialog .variant-choices{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:5px}
.staff-mode #product-dialog .variant-choices legend{width:100%}
.staff-mode #product-dialog .variant-choices .option{flex:1;min-width:85px;display:flex;flex-direction:column;gap:5px;padding:11px 6px;margin:0;text-align:center;font-size:14px;font-weight:700;border-radius:14px}
.staff-mode #product-dialog .variant-choices .option input{position:absolute;opacity:0;width:1px;height:1px}
.staff-mode #product-dialog .variant-choices .option .price{margin:0;font-size:12px;font-weight:500}
.staff-mode #product-dialog .variant-choices .option:focus-within{outline:3px solid #7594dc;outline-offset:2px}
.staff-mode #product-dialog .option:has(input:checked){border-color:#17263c;background:#edf2fa}
.staff-mode #product-dialog .compact-choice{margin:8px 0;border:1px solid #e1e4eb;border-radius:16px;background:#fff;overflow:hidden}
.staff-mode #product-dialog .compact-choice>summary{display:grid;grid-template-columns:minmax(85px,1fr) minmax(0,1.3fr) 12px;gap:10px;align-items:center;padding:14px;cursor:pointer;list-style:none;font-size:13px}
.staff-mode #product-dialog .compact-choice>summary::-webkit-details-marker{display:none}
.staff-mode #product-dialog .compact-choice>summary strong{font-size:12px;font-weight:500;color:#68758a;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.staff-mode #product-dialog .compact-choice>summary>b{font-size:24px;line-height:1}
.staff-mode #product-dialog .compact-choice[open]>summary{border-bottom:1px solid #e8ebf0}
.staff-mode #product-dialog .compact-choice[open]>summary>b{transform:rotate(90deg)}
.staff-mode #product-dialog .compact-choice>.group{margin:0;padding:8px 12px 12px}
.staff-mode #product-dialog .compact-choice>.group>legend{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.staff-mode #product-dialog .compact-choice .option{padding:11px 10px;font-size:14px;border:0;border-radius:9px;margin:3px 0;min-height:44px}
.staff-mode #product-dialog .option input{flex-shrink:0}
.staff-mode #product-dialog .choice-search-label{display:block;font-size:11px;color:#68758a;margin:5px 0 9px}
.staff-mode #product-dialog .choice-search{display:block;min-height:42px;padding:9px 12px;background:#f5f6f9;font-size:16px;margin-top:4px}
.staff-mode #product-dialog .product-note{margin-top:12px;font-size:13px;color:#68758a}
.staff-mode #product-dialog .product-note summary{cursor:pointer;padding:8px}
.staff-mode #product-dialog .product-note textarea{font-size:16px;min-height:64px}
.staff-mode #product-dialog .product-dialog-footer{flex:none;padding:10px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid #e0e2e8;background:white}
.staff-mode #product-dialog .product-dialog-actions{display:flex;align-items:center;gap:14px}
.staff-mode #product-dialog .quantity{display:flex;gap:13px;margin:0;flex:none}
.staff-mode #product-dialog .quantity button{width:36px;height:36px;background:#eff1f5;border:0;font-size:24px}
.staff-mode #product-dialog .primary{margin:0;padding:14px 12px;border-radius:14px;background:#17263c;color:white;min-height:48px;font-size:14px}
.staff-mode #product-dialog #validation:empty{display:none}

@media(max-width:619px){.staff-mode #product-dialog{width:100%;max-width:none;max-height:92dvh;inset:auto 0 0;margin:0;border-radius:24px 24px 0 0}.staff-mode #product-dialog #product-form{max-height:92dvh}.staff-mode #product-dialog h2{font-size:20px}}

.staff-mode #product-dialog::backdrop{background:#17263c55;backdrop-filter:none;-webkit-backdrop-filter:none}
