.mobile-settings-header,.mobile-settings-footer,.settings-backdrop{display:none}.mobile-settings-body{display:contents}
@media(max-width:900px){
  .canvas-section{grid-template-rows:33px minmax(0,1fr) 132px 27px}
  .canvas-bottom{display:grid!important;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 44px;gap:5px!important;padding:4px 12px!important;align-items:center}
  .canvas-bottom .side-switch{grid-column:1/-1;min-width:0}.canvas-bottom .zoom{grid-column:1/-1;justify-self:center;margin:0}
  .canvas-bottom .preview-btn,.canvas-bottom .adjust-toggle{min-height:44px;width:100%;margin:0;padding:8px!important;font-size:12px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:5px}
  .canvas-bottom .adjust-toggle{background:#28372d;color:#fff;border-color:#28372d;border-radius:8px}
  .settings-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#16251d66;border:0;z-index:80;cursor:pointer}
  .details{display:flex!important;flex-direction:column;position:fixed!important;inset:auto 0 0!important;width:100%!important;height:min(76dvh,760px)!important;max-height:calc(100dvh - 95px);padding:0!important;z-index:90!important;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -12px 45px #15241b40;overflow:hidden;visibility:hidden;transform:translateY(105%);transition:transform .2s ease,visibility .2s;pointer-events:none}
  .details-open .details{visibility:visible;transform:translateY(0);pointer-events:auto}
  .mobile-settings-header{display:block;flex-shrink:0;padding:10px 18px 14px;border-bottom:1px solid #e5e9e1;touch-action:none;background:#fafbf8}
  .settings-drag-handle{width:44px;height:5px;border-radius:4px;background:#a5afa3;margin:0 auto 12px}
  .settings-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .details .mobile-settings-header h2{margin:0;font-size:20px;line-height:1.2}.mobile-settings-header p{font-size:11px;margin:5px 0 0;color:#66725e}
  .settings-close{min-width:76px;min-height:44px;padding:10px;border:1px solid #d4dccd;border-radius:9px;background:#fff;font-size:13px;font-weight:650;color:#28372d;flex-shrink:0}
  .mobile-settings-body{display:block;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px 24px}
  .details[data-settings-mode="product"] .selection-controls{display:none!important}
  .details[data-settings-mode="art"] .mobile-settings-body>:not(.selection-controls){display:none!important}
  .details[data-settings-mode="product"]{height:auto!important;max-height:min(76dvh,760px)}
  .details[data-settings-mode="product"] .mobile-settings-body{flex:0 1 auto}
  .mobile-settings-body .product-desc{display:none}.details .mobile-settings-body #productName{font-size:16px;margin:10px 0 18px}.details #changeProduct{min-height:36px;padding:6px 10px}
  .details .detail-heading .drawer-close{display:none}.details .product-desc{font-size:11px;line-height:1.6}.details .label-row h3{font-size:13px}.details select,.details input,.details textarea{font-size:16px!important}.details .swatch{width:32px;height:32px}
  .mobile-settings-footer{display:block;flex-shrink:0;padding:12px 18px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e5e9e1;background:#fff}
  .mobile-settings-footer .primary{width:100%;min-height:48px;justify-content:center;font-size:14px;border-radius:9px}
  .modal{z-index:120!important}
}
@media(prefers-reduced-motion:reduce){.details{transition:none}}
