/* Business controls and the explicitly opted-in local left-action pilot. */
@import url('./storage-legacy-controls.css');
@import url('./storage-left-actions.css');
.storage-stepper-slot{display:contents}
.storage-config-content,.storage-preview-content,.storage-summary-content{min-width:0;background:transparent}
.storage-config-content .editor-body,.storage-summary-content .order-panel-body{padding:0;max-height:none;overflow:visible}
.storage-config-content .categories{padding:0 0 16px}
.storage-config-content .section-title{margin:16px 0 12px}
.storage-config-content .section-title h2{font-size:1rem;line-height:1.5}
.storage-config-content .section-title .number{display:none}
.storage-preview-content #viewer{position:relative;width:100%;height:clamp(20rem,34vw,32rem);min-height:20rem;overflow:hidden}
.storage-preview-content .preview-tools{position:static;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:16px 0}
.storage-preview-content .preview-bottom{padding:16px 0 0;min-height:0;display:flex;flex-wrap:wrap;gap:12px}
.storage-preview-content .preview-bottom h3{margin:0;font-size:1rem}
.storage-summary-content .finish{padding:0}
.storage-summary-content .actions{display:flex;flex-direction:column}
.storage-summary-content #quote-price{font-size:2rem;line-height:1.3}
.storage-config-content .stack-size-presets{grid-template-columns:1fr}
.storage-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}

.storage-config-content .small,.storage-summary-content .small,.storage-preview-content .small{font-size:.875rem;line-height:1.5}

.storage-preview-content #model-loading{position:absolute;inset:0;z-index:2;display:grid;place-items:center;padding:24px;background:var(--wy-shell-panel);font-size:.875rem;text-align:center}

/* Compact item selection: keep 44px targets without a separate counter row. */
.storage-config-content .beauty-preset-list{gap:8px;margin-top:8px}
.storage-config-content .beauty-preset-list .product-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;align-items:center}
.storage-config-content .beauty-preset-list .product-info{min-width:0}
.storage-config-content .beauty-preset-list .product-name{white-space:normal;line-height:1.4}
.storage-config-content .beauty-preset-list .product-meta{white-space:normal;line-height:1.4;margin-top:4px}
.storage-config-content .beauty-preset-list .counter{margin:0;gap:4px;flex-wrap:nowrap}
.storage-config-content .beauty-preset-list .counter button{width:44px;height:44px;padding:0}
.storage-config-content .beauty-preset-list .counter span{min-width:30px;gap:2px}
.storage-config-content #beauty-capacity-error:empty{display:none}
.storage-config-content #beauty-selection-tools{margin:0 0 8px;gap:8px}
.storage-config-content #beauty-selection-tools>.text-button{padding:0;min-height:44px}

/* 2026-10-20 tip card: #toast is a scope root in legacy controls, so card geometry lives here unscoped. */
#toast{
  position:fixed;
  top:max(1.25rem,env(safe-area-inset-top));
  bottom:auto;
  left:50%;
  transform:translateX(-50%);
  z-index:30;
  width:max-content;
  max-width:min(360px,calc(100vw - 32px));
  box-sizing:border-box;
  padding:14px 18px;
  background:#31263f;
  border:1px solid #c084fc66;
  border-radius:14px;
  font-size:14px;
  line-height:22px;
  color:#f8fafc;
  text-align:center;
  overflow-wrap:anywhere;
  word-break:break-word;
  box-shadow:0 10px 50px #0007;
}
#toast[hidden]{display:none!important}
/* size-stepper: unlayered overrides beat shared .wy-shell input borders */
.wy-shell .size-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) auto 44px;gap:8px;align-items:center}
.wy-shell .size-stepper .dimension-value,
.wy-shell .size-stepper input.dimension-value[type=number]{box-sizing:border-box;width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:0 10px;border:1px solid #6b7686;border-radius:10px;background:#14191f;box-shadow:none;outline:none;font:inherit;font-size:1rem;line-height:42px;color:inherit;text-align:center;appearance:textfield;-moz-appearance:textfield;-webkit-appearance:textfield}
.wy-shell .size-stepper .dimension-value::-webkit-outer-spin-button,
.wy-shell .size-stepper .dimension-value::-webkit-inner-spin-button{appearance:none;-webkit-appearance:none;margin:0;opacity:0;display:none}
.wy-shell .size-stepper .dimension-unit{line-height:1;color:#988ba9;font-size:.875rem;white-space:nowrap;align-self:center}
.wy-shell .size-stepper button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;margin:0;font-size:22px;line-height:1;border-radius:10px;border:1px solid #6b7686;background:#14191f;color:#e9d4ff}
.wy-shell .size-stepper button:hover:not(:disabled){border-color:#c084fc;background:#c084fc1a;color:#f2d0ff}
.wy-shell .box-dimension-steppers{grid-template-columns:1fr;gap:14px}
.wy-shell .box-dimension-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.wy-shell .box-dimension-label{display:block;font-size:.875rem;line-height:1.4;color:#c9c0d5}
.wy-shell .box-dimension-range{display:block;font-size:.8125rem;line-height:1.4;color:#988ba9;overflow-wrap:anywhere}
.wy-shell #box-dimension-help{overflow-wrap:anywhere;white-space:normal}

/* M1: keep dimension error inside the preview column */
.storage-preview-content{position:relative}
.storage-preview-content .dimension-preview-error{position:absolute;top:35%;left:50%;transform:translate(-50%,-50%);z-index:5}
@media(max-width:767px){
 .storage-preview-content{display:flex;flex-direction:column}
 .storage-preview-content .dimension-preview-error{
  position:static!important;transform:none!important;top:auto!important;left:auto!important;right:auto!important;
  width:auto!important;max-width:100%;margin:12px 0 0;order:-1;align-self:stretch;box-sizing:border-box
 }
}

/* Keep the live download quote separate from the physical order price. */
.live-download-credits:not([hidden]){display:block;margin:16px 0;padding:12px 16px;border:1px solid var(--wy-shell-border);border-left:3px solid var(--wy-shell-accent);border-radius:8px;background:var(--wy-shell-panel);color:var(--wy-shell-text);font-size:.875rem;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.live-download-credits[hidden]{display:none!important}

/* mobile-stepbar: responsive adapter for the frozen shared stepper. */
.storage-step-summary,.storage-step-expand,.storage-step-collapse{display:none}
@media (max-width:767px){
 body.wy-shell #wizard-progress{display:contents}
 body.wy-shell #wizard-progress .wy-flow{display:flex;align-items:center;gap:8px;height:40px;min-height:40px;padding:0;white-space:nowrap;overflow:visible}
 body.wy-shell #wizard-progress .storage-step-summary{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;flex:1;scrollbar-width:none;font-size:12px;line-height:1.5;white-space:nowrap}
 body.wy-shell #wizard-progress .storage-step-summary>span{flex:none}
 body.wy-shell #wizard-progress .storage-step-count{padding:2px 6px;border:1px solid #6f6a88;border-radius:999px;color:#8cddb0}
 body.wy-shell #wizard-progress .storage-step-current{color:#c9a6ff;font-weight:700}
 body.wy-shell #wizard-progress .storage-step-next{color:#8f8aa8}
 body.wy-shell #wizard-progress .storage-step-arrow{color:#6f6a88}
 body.wy-shell #wizard-progress .wy-flow button{white-space:nowrap;overflow-wrap:normal;max-width:none;font-size:12px;line-height:1.5;min-height:40px;padding:0}
 body.wy-shell #wizard-progress .wy-flow-toggle{flex:none;margin-left:auto;color:#8f8aa8}
 body.wy-shell #wizard-progress .storage-step-desktop{display:none}
 body.wy-shell #wizard-progress .storage-step-expand{display:inline}
 body.wy-shell #wizard-progress [data-expanded=true] .storage-step-expand{display:none}
 body.wy-shell #wizard-progress [data-expanded=true] .storage-step-collapse{display:inline}
 body.wy-shell #wizard-progress .wy-flow ol{display:none}
 body.wy-shell #wizard-progress .wy-flow[data-expanded=true] ol{display:flex;flex-direction:column;align-items:stretch;gap:8px;max-height:50dvh;overflow:auto;box-sizing:border-box}
 body.wy-shell #wizard-progress .wy-flow li{flex:none;max-width:none;white-space:nowrap}
 body.wy-shell #wizard-progress .wy-flow li+li::before{content:none}
 body.wy-shell #wizard-progress .wy-flow [aria-current=step]{color:#c9a6ff;font-weight:700}
}
