.da-inline-sim,.da-inline-sim *{box-sizing:border-box}
.da-inline-sim{margin:0;min-height:0;font-family:Arial,Helvetica,sans-serif;color:#111;background:#f5f6f8}
.da-inline-sim button,.da-inline-sim input{font:inherit}
.dws-page{overflow-x:hidden}
.dws-top{height:64px;padding:0 24px;background:#111;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}
.dws-top>div{display:flex;align-items:center;gap:14px}.dws-top strong{font-size:18px}.dws-top span{font-size:12px;color:#c6c8cc}
.dws-top a{color:#fff;font-size:12px;text-decoration:none;border:1px solid #555;padding:8px 11px;border-radius:7px}
.dws-shell{width:min(1500px,calc(100% - 32px));margin:24px auto 50px}
.dws-intro{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}
.dws-kicker{font-size:10px;letter-spacing:.12em;font-weight:900;color:#64748b}
.dws-intro h1{margin:6px 0 8px;font-size:30px}.dws-intro p{margin:0;color:#596273;max-width:700px;line-height:1.45}
.dws-warning{max-width:460px;background:#fff7e6;border:1px solid #f0d08c;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.45}
.dws-warning code{font-size:11px;word-break:break-all}
.dws-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
.dws-main,.dws-panel{min-width:0}
.dws-upload-card,.dws-panel-step{background:#fff;border:1px solid #e1e4e8;border-radius:14px;padding:18px}
.dws-upload-card{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.dws-upload-card h2,.dws-panel-step h2{font-size:18px;margin:0 0 8px}.dws-upload-card p,.dws-panel-step p{font-size:12px;color:#667085;line-height:1.45}
.dws-upload-actions{display:flex;gap:8px;justify-content:center;margin-top:10px;flex-wrap:wrap}
.dws-btn{border:1px solid #cfd4db;background:#fff;color:#111;border-radius:8px;min-height:40px;padding:0 14px;font-weight:800;font-size:12px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.dws-btn-dark{background:#111;color:#fff;border-color:#111}.dws-full{width:100%}.dws-btn:disabled{opacity:.35;cursor:not-allowed}
.dws-stage-wrap{background:#fff;border:1px solid #e1e4e8;border-radius:14px;padding:10px}
.dws-stage{position:relative;width:100%;height:min(72vh,760px);min-height:430px;background:#eceff2;overflow:hidden;border-radius:10px;touch-action:none;user-select:none}
.dws-wall-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#181818;pointer-events:none}
.dws-stage-tip{padding:9px 4px 2px;font-size:11px;color:#667085;text-align:center}
.dws-ruler{position:absolute;inset:0;pointer-events:none;z-index:8}
.dws-ruler-line{position:absolute;height:3px;background:#16a34a;transform-origin:0 50%;box-shadow:0 0 0 1px rgba(255,255,255,.75)}
.dws-ruler-handle{position:absolute;width:26px;height:26px;border-radius:50%;border:3px solid #fff;background:#16a34a;transform:translate(-50%,-50%);box-shadow:0 2px 8px rgba(0,0,0,.3);pointer-events:auto;cursor:grab;touch-action:none}
.dws-ruler-label{position:absolute;transform:translate(-50%,-140%);background:#111;color:#fff;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:900;white-space:nowrap}
.dws-frame{position:absolute;z-index:5;transform:translate(-50%,-50%);cursor:grab;touch-action:none;filter:drop-shadow(0 7px 8px rgba(0,0,0,.28))}
.dws-frame-inner{position:absolute;inset:0;background:#fff;overflow:hidden}
.dws-frame-inner img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block;pointer-events:none}
.dws-frame[data-style="black"] .dws-frame-inner{border:clamp(1px,.18vw,3px) solid #151515}
.dws-frame[data-style="white"] .dws-frame-inner{border:clamp(1px,.18vw,3px) solid #f7f7f5;box-shadow:inset 0 0 0 1px rgba(130,130,130,.28)}
.dws-frame[data-style="gold"] .dws-frame-inner{border:clamp(1px,.18vw,3px) solid #a77a32;box-shadow:inset 0 0 0 1px rgba(230,194,112,.55)}
.dws-frame[data-style="infinite"] .dws-frame-inner{border:0;box-shadow:inset -1px -1px 2px rgba(0,0,0,.10)}
.dws-glass{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(115deg,transparent 0 43%,rgba(255,255,255,.25) 49%,rgba(255,255,255,.06) 56%,transparent 64%)}
.dws-frame.has-glass .dws-glass{opacity:1}
.dws-resize{position:absolute;right:-13px;bottom:-13px;width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:#111;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;cursor:nwse-resize;touch-action:none}
.dws-panel{display:grid;gap:12px;position:sticky;top:12px}
.dws-panel-step label{display:block;font-size:11px;font-weight:800;margin-top:12px}
.dws-input-unit{display:grid;grid-template-columns:1fr 42px;margin:5px 0 9px}.dws-input-unit input{min-width:0;border:1px solid #cfd4db;border-radius:8px 0 0 8px;padding:10px}.dws-input-unit span{border:1px solid #cfd4db;border-left:0;border-radius:0 8px 8px 0;display:flex;align-items:center;justify-content:center;font-size:11px;color:#64748b}
.dws-scale-info{font-size:10px;color:#166534;margin-top:8px;line-height:1.4}
.dws-field{margin-top:14px}.dws-field>span{display:block;font-size:11px;font-weight:900;margin-bottom:6px}
.dws-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.dws-option{border:1px solid #d1d5db;background:#fff;border-radius:8px;padding:8px;min-height:42px;font-size:10px;font-weight:800;cursor:pointer}.dws-option.is-active{border:2px solid #111;padding:7px}.dws-option:disabled{opacity:.35}
.dws-yesno{display:grid;grid-template-columns:1fr 1fr;gap:6px}.dws-yesno button{min-height:40px;border:1px solid #cfd4db;background:#fff;border-radius:8px;font-size:11px;font-weight:900;cursor:pointer}.dws-yesno button.is-active{background:#111;color:#fff;border-color:#111}.dws-yesno button:disabled{opacity:.35}
.dws-selection{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #e5e7eb}.dws-selection div{background:#f7f8fa;border-radius:8px;padding:9px}.dws-selection span{display:block;font-size:8px;text-transform:uppercase;color:#64748b;font-weight:900;margin-bottom:3px}.dws-selection strong{font-size:13px}.dws-selection-wide{grid-column:1/-1}.dws-selection code{font-size:11px;word-break:break-all}
.dws-help{margin-bottom:0!important}.dws-link-btn{border:0;background:none;color:#111;text-decoration:underline;font-size:11px;cursor:pointer;justify-self:start;padding:4px}
@media(max-width:900px){.dws-layout{grid-template-columns:1fr}.dws-panel{position:static;grid-template-columns:1fr 1fr}.dws-panel-step:nth-child(2){grid-column:1/-1}.dws-link-btn{grid-column:1/-1}.dws-stage{height:62vh;min-height:430px}}
@media(max-width:620px){.dws-top{padding:0 14px;height:56px}.dws-top span{display:none}.dws-shell{width:calc(100% - 16px);margin:10px auto 32px}.dws-intro{display:block}.dws-intro h1{font-size:22px}.dws-warning{margin-top:10px}.dws-panel{grid-template-columns:1fr}.dws-panel-step:nth-child(2),.dws-link-btn{grid-column:auto}.dws-stage{height:58vh;min-height:390px}.dws-options{grid-template-columns:repeat(2,minmax(0,1fr))}.dws-frame[data-style="black"] .dws-frame-inner,.dws-frame[data-style="white"] .dws-frame-inner,.dws-frame[data-style="gold"] .dws-frame-inner{border-width:2px!important}}

/* V3 — moldura ultrafina, semelhante ao produto real. */
@media(max-width:620px){
  .dws-frame[data-style="black"] .dws-frame-inner,
  .dws-frame[data-style="white"] .dws-frame-inner,
  .dws-frame[data-style="gold"] .dws-frame-inner{
    border-width:1.5px !important;
  }
}

/* COMPRA DIRETA DA VARIAÇÃO SELECIONADA */
.dws-buy-form{
  display:grid;
  gap:7px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e5e7eb;
}
.dws-buy-now{
  width:100%;
  min-height:48px;
  border:0;
  border-radius:9px;
  background:#20b95b;
  color:#fff;
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
  cursor:pointer;
}
.dws-buy-now:hover{filter:brightness(.96)}
.dws-buy-now:disabled{
  background:#cbd1d8;
  color:#fff;
  cursor:not-allowed;
  filter:none;
}
.dws-buy-note{
  min-height:14px;
  text-align:center;
  font-size:9px;
  color:#667085;
}
@media(max-width:620px){
  .dws-buy-now{min-height:50px;font-size:15px}
}


/* =========================================================
   V4 — SIMULADOR EM UMA TELA
   ========================================================= */

/* A escala fica congelada. Depois da calibração a régua vira referência discreta. */
.dws-ruler{transition:opacity .28s ease,filter .28s ease}
.dws-stage.is-calibrated .dws-ruler{opacity:.16;filter:saturate(.65)}
.dws-stage.is-calibrated .dws-ruler-handle{pointer-events:none}
.dws-stage.is-calibrated .dws-ruler-label{background:rgba(17,17,17,.72)}

/* Medida atual diretamente sobre o quadro. */
.dws-frame-size-badge{
  position:absolute;
  left:50%;
  top:-32px;
  transform:translateX(-50%);
  z-index:8;
  min-width:max-content;
  padding:6px 9px;
  border-radius:7px;
  background:rgba(17,17,17,.90);
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
  pointer-events:none;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}

/* Aba escura de controle dentro da própria foto. */
.dws-stage-tools{
  position:absolute;
  z-index:20;
  left:10px;
  bottom:10px;
  width:min(620px,calc(100% - 20px));
  padding:9px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:rgba(27,29,32,.88);
  color:#fff;
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  box-shadow:0 8px 28px rgba(0,0,0,.24);
}
.dws-stage-tools[hidden]{display:none!important}
.dws-stage-tools-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 7px
}
.dws-stage-tools-head strong{font-size:9px;letter-spacing:.05em}
.dws-stage-tools-head span{
  min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#d5d8dd;font-size:9px
}
.dws-stage-tool-row{
  display:grid;grid-template-columns:76px minmax(0,1fr);gap:6px;align-items:center;margin-top:5px
}
.dws-stage-tool-row>span{
  font-size:8px;font-weight:900;color:#bfc4cc;text-transform:uppercase
}
.dws-stage-chip-scroll{
  display:flex;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none
}
.dws-stage-chip-scroll::-webkit-scrollbar{display:none}
.dws-stage-chip{
  flex:0 0 auto;min-height:30px;padding:0 9px;border:1px solid rgba(255,255,255,.24);
  border-radius:7px;background:rgba(255,255,255,.08);color:#fff;font-size:9px;font-weight:800;
  white-space:nowrap;cursor:pointer
}
.dws-stage-chip.is-active{background:#fff;color:#111;border-color:#fff}
.dws-stage-chip:disabled{opacity:.3;cursor:not-allowed}
.dws-stage-addon-row{grid-template-columns:76px auto}
.dws-stage-yesno{display:flex;gap:5px}
.dws-stage-yesno button{
  min-width:54px;min-height:30px;border:1px solid rgba(255,255,255,.24);border-radius:7px;
  background:rgba(255,255,255,.08);color:#fff;font-size:9px;font-weight:900;cursor:pointer
}
.dws-stage-yesno button.is-active{background:#fff;color:#111;border-color:#fff}
.dws-stage-yesno button:disabled{opacity:.3}

/* Rodapé de compra fixo após a simulação. */
.dws-fixed-buy{
  position:fixed;
  z-index:1000;
  left:50%;
  bottom:max(10px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(880px,calc(100% - 20px));
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  align-items:center;
  gap:10px;
  padding:9px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:13px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 10px 35px rgba(0,0,0,.20);
}
.dws-fixed-buy[hidden]{display:none!important}
.dws-fixed-buy-info{
  min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center
}
.dws-fixed-buy-info>span{
  min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:850
}
.dws-fixed-buy-info>strong{font-size:14px}
.dws-fixed-buy-info>small{grid-column:1/-1;color:#667085;font-size:8px}
.dws-has-fixed-buy{padding-bottom:86px}

@media(min-width:901px){
  .dws-stage-tools{left:50%;transform:translateX(-50%)}
}

@media(max-width:620px){
  .dws-stage-tools{
    left:7px;bottom:7px;width:calc(100% - 14px);padding:7px;border-radius:10px
  }
  .dws-stage-tools-head{padding-bottom:4px}
  .dws-stage-tool-row{grid-template-columns:60px minmax(0,1fr);gap:4px;margin-top:4px}
  .dws-stage-tool-row>span{font-size:7px}
  .dws-stage-chip{min-height:28px;padding:0 8px;font-size:8px}
  .dws-stage-addon-row{grid-template-columns:60px auto}
  .dws-stage-yesno button{min-width:48px;min-height:28px;font-size:8px}

  .dws-frame-size-badge{top:-27px;padding:5px 7px;font-size:9px}

  .dws-fixed-buy{
    bottom:max(6px,env(safe-area-inset-bottom));
    width:calc(100% - 12px);
    grid-template-columns:minmax(0,1fr) 145px;
    gap:7px;padding:7px;border-radius:11px
  }
  .dws-fixed-buy-info>span{font-size:9px}
  .dws-fixed-buy-info>strong{font-size:12px}
  .dws-fixed-buy-info>small{display:none}
  .dws-fixed-buy .dws-buy-now{min-height:44px;font-size:12px}
  .dws-has-fixed-buy{padding-bottom:72px}
}

@media(max-width:390px){
  .dws-fixed-buy{grid-template-columns:minmax(0,1fr) 128px}
  .dws-fixed-buy-info>span{font-size:8px}
  .dws-fixed-buy-info>strong{font-size:11px}
}


/* =========================================================
   V5 — CONTROLES ABAIXO DA FOTO + MINIMIZAR/MAXIMIZAR
   ========================================================= */

/* A régua continua visível e ajustável depois da calibração. */
.dws-stage.is-calibrated .dws-ruler{opacity:.20;filter:saturate(.75)}
.dws-stage.is-calibrated .dws-ruler-handle{pointer-events:auto}
.dws-ruler-line{pointer-events:auto;cursor:grab}
.dws-ruler-line:active{cursor:grabbing}
.dws-stage.is-calibrated .dws-ruler-line{height:4px}

/* O painel de configuração fica abaixo da foto, não por cima. */
.dws-stage-tools-docked{
  position:static!important;
  transform:none!important;
  width:100%!important;
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:linear-gradient(135deg, rgba(27,29,32,.96), rgba(45,45,52,.96));
  color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.dws-stage-tools-docked[hidden]{display:none!important}
.dws-stage-tools-title{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.dws-stage-tools-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.dws-stage-tools-head strong{
  font-size:12px;
  letter-spacing:.02em;
}
.dws-stage-tools-head span{
  font-size:13px;
  color:#e5e7eb;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.dws-stage-tools-toggle{
  flex:0 0 auto;
  min-height:36px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.dws-stage-tools-body{margin-top:12px}
.dws-stage-tools.is-collapsed .dws-stage-tools-body{display:none}
.dws-stage-tool-row{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-top:8px;
}
.dws-stage-tool-row>span{
  font-size:12px;
  font-weight:900;
  color:#d1d5db;
}
.dws-stage-chip{
  min-height:38px;
  padding:0 14px;
  font-size:13px;
  border-radius:10px;
}
.dws-stage-yesno button{
  min-height:38px;
  min-width:76px;
  font-size:13px;
  border-radius:10px;
}

/* Esconde o painel lateral antigo para não duplicar controles. */
#dwsProductControls{display:none!important}

@media(max-width:900px){
  .dws-stage-tools-docked{
    margin-top:10px;
    padding:10px;
    border-radius:14px;
  }
  .dws-stage-tools-head strong{font-size:11px}
  .dws-stage-tools-head span{font-size:11px}
  .dws-stage-tools-toggle{min-height:34px;font-size:11px;padding:0 10px}
  .dws-stage-tool-row{
    grid-template-columns:88px minmax(0,1fr);
    gap:8px;
    margin-top:7px;
  }
  .dws-stage-tool-row>span{font-size:10px}
  .dws-stage-chip{min-height:36px;padding:0 12px;font-size:12px}
  .dws-stage-yesno button{min-height:36px;min-width:68px;font-size:12px}
}

@media(max-width:620px){
  .dws-stage-tools-docked{
    margin-top:8px;
    padding:9px;
    border-radius:13px;
  }
  .dws-stage-tools-head{
    align-items:center;
    gap:8px;
  }
  .dws-stage-tools-title strong{font-size:10px}
  .dws-stage-tools-head span{
    font-size:10px;
    line-height:1.25;
  }
  .dws-stage-tools-toggle{
    min-height:32px;
    padding:0 10px;
    font-size:10px;
  }
  .dws-stage-tool-row{
    grid-template-columns:72px minmax(0,1fr);
    gap:6px;
    margin-top:6px;
  }
  .dws-stage-tool-row>span{font-size:9px}
  .dws-stage-chip-scroll{gap:6px}
  .dws-stage-chip{
    min-height:34px;
    padding:0 11px;
    font-size:11px;
  }
  .dws-stage-yesno button{
    min-height:34px;
    min-width:62px;
    font-size:11px;
  }
}


/* =========================================================
   V6 — FLUXO GUIADO: FOTO → CALIBRAR → CONFIGURAR
   ========================================================= */

/* Etapa 1 vira comprovante verde compacto quando concluída. */
.dws-upload-card{
  position:relative;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  min-height:120px;
  text-align:left;
  transition:.25s ease;
}
.dws-upload-status-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  color:#fff;
  font-weight:900;
  font-size:16px;
}
.dws-upload-copy h2{margin:0 0 5px}
.dws-upload-copy p{margin:0}
.dws-upload-actions{margin:0}
.dws-upload-card.is-complete{
  min-height:76px;
  border-color:#b7ebc8;
  background:#f1fff5;
}
.dws-upload-card.is-complete .dws-upload-status-icon{
  background:#16a34a;
  font-size:20px;
}
.dws-upload-card.is-complete .dws-upload-copy h2{color:#166534}
.dws-upload-change{
  min-height:36px;
  padding:0 12px;
  border:1px solid #b9dec5;
  border-radius:8px;
  background:#fff;
  color:#166534;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

/* Calibração aparece IMEDIATAMENTE antes da foto. */
.dws-calibration-dock{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  margin-bottom:10px;
  padding:12px 14px;
  border:1px solid #d8dee5;
  border-radius:11px;
  background:#fff;
}
.dws-calibration-status{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.dws-calibration-step{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  color:#fff;
  font-size:13px;
  font-weight:900;
}
.dws-calibration-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.dws-calibration-copy strong{
  font-size:13px;
  line-height:1.2;
}
.dws-calibration-copy span{
  font-size:10px;
  line-height:1.35;
  color:#667085;
}
.dws-calibration-actions{
  display:flex;
  align-items:end;
  gap:7px;
}
.dws-calibration-input>span{
  display:block;
  margin:0 0 3px;
  font-size:8px;
  color:#667085;
  font-weight:900;
  text-transform:uppercase;
}
.dws-calibration-input>div{
  display:grid;
  grid-template-columns:88px 34px;
}
.dws-calibration-input input{
  width:100%;
  min-width:0;
  height:38px;
  padding:0 9px;
  border:1px solid #cfd5dc;
  border-radius:8px 0 0 8px;
  font-weight:850;
  outline:none;
}
.dws-calibration-input b{
  height:38px;
  border:1px solid #cfd5dc;
  border-left:0;
  border-radius:0 8px 8px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#667085;
  font-size:9px;
}
.dws-calibration-button{
  height:38px;
  padding:0 16px;
  border:0;
  border-radius:8px;
  background:#111;
  color:#fff;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.dws-calibration-button:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.dws-calibration-adjust{
  min-height:36px;
  padding:0 12px;
  border:1px solid #b8dfc3;
  border-radius:8px;
  background:#fff;
  color:#166534;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.dws-calibration-dock.is-complete{
  border-color:#b7ebc8;
  background:#f1fff5;
}
.dws-calibration-dock.is-complete .dws-calibration-step{
  background:#16a34a;
  font-size:17px;
}
.dws-calibration-dock.is-complete .dws-calibration-copy strong{
  color:#166534;
}
.dws-calibration-dock .dws-scale-info{
  grid-column:1/-1;
  margin:0;
  min-height:0;
  font-size:8px;
  color:#59906a;
}

/* No mobile, a calibração continua visível sem precisar rolar. */
@media(max-width:700px){
  .dws-upload-card{
    grid-template-columns:42px minmax(0,1fr);
    gap:10px;
    padding:12px 14px;
    min-height:104px;
  }
  .dws-upload-status-icon{
    width:36px;
    height:36px;
  }
  .dws-upload-actions,
  .dws-upload-change{
    grid-column:1/-1;
    justify-self:start;
  }
  .dws-upload-card.is-complete{
    min-height:70px;
  }
  .dws-upload-card.is-complete .dws-upload-change{
    grid-column:auto;
    grid-row:1/3;
    grid-column:3;
    align-self:center;
  }

  .dws-calibration-dock{
    grid-template-columns:1fr;
    gap:8px;
    padding:10px;
    margin-bottom:8px;
  }
  .dws-calibration-copy strong{
    font-size:12px;
  }
  .dws-calibration-copy span{
    font-size:9px;
  }
  .dws-calibration-actions{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) 112px;
    align-items:end;
  }
  .dws-calibration-input>div{
    grid-template-columns:minmax(0,1fr) 32px;
  }
  .dws-calibration-button{
    width:100%;
    padding:0 8px;
  }
  .dws-calibration-adjust{
    width:100%;
  }
}

/* Muito estreito: continua em uma linha compacta para input + calibrar. */
@media(max-width:390px){
  .dws-calibration-actions{
    grid-template-columns:minmax(0,1fr) 98px;
  }
  .dws-calibration-button{
    font-size:9px;
  }
}


/* =========================================================
   V7 — CALIBRAÇÃO MAIS INTUITIVA
   ========================================================= */

.dws-calibration-input small{
  display:block;
  max-width:240px;
  margin-top:4px;
  color:#667085;
  font-size:8px;
  line-height:1.3;
  font-weight:500;
  text-transform:none;
}

/* Antes de calibrar, qualquer área livre da foto pode mover a régua. */
.dws-stage:not(.is-calibrated){
  cursor:grab;
}
.dws-stage:not(.is-calibrated).is-dragging-ruler{
  cursor:grabbing;
}
.dws-stage:not(.is-calibrated)::after{
  content:"ARRASTE AQUI PARA MOVER A RÉGUA";
  position:absolute;
  z-index:6;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  padding:6px 9px;
  border-radius:7px;
  background:rgba(17,17,17,.65);
  color:#fff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.02em;
  pointer-events:none;
  opacity:.72;
}

/* A linha e as pontas continuam sendo áreas de arraste prioritárias. */
.dws-ruler-line{
  touch-action:none;
  cursor:grab;
}
.dws-ruler-handle{
  touch-action:none;
}

/* Texto da pergunta fica bem explícito. */
.dws-calibration-input>span{
  color:#111;
  font-size:9px;
  letter-spacing:.02em;
}

@media(max-width:700px){
  .dws-calibration-input small{
    max-width:none;
    font-size:8px;
  }
  .dws-stage:not(.is-calibrated)::after{
    bottom:10px;
    font-size:7px;
    padding:5px 7px;
  }
}


/* V8 — aviso explícito para fotografar a parede de frente */
.dws-front-photo-tip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:7px;
  padding:6px 9px;
  border-radius:8px;
  background:#f5f7f9;
  color:#596273;
  font-size:9px;
  line-height:1.35;
  font-weight:700;
}
.dws-front-photo-tip::before{
  content:"↔";
  color:#111;
  font-size:12px;
  font-weight:900;
}
.dws-upload-card.is-complete .dws-front-photo-tip{
  display:none;
}
@media(max-width:700px){
  .dws-front-photo-tip{
    font-size:8px;
    padding:5px 7px;
  }
}


/* =========================================================
   V9 — FOTO DA PAREDE ARRASTÁVEL APÓS CALIBRAR
   ========================================================= */

/* transform é controlado pelo JavaScript */
.dws-wall-image{
  will-change:transform;
  transition:none!important;
}

/* Mobile/PC: o dedo/mouse controla a foto sem rolar a página. */
.dws-stage.is-calibrated{
  cursor:move;
  touch-action:none!important;
}
.dws-stage.is-calibrated.is-dragging-wall{
  cursor:grabbing;
}

/* Indicação discreta apenas depois de calibrar. */
.dws-stage.is-calibrated::before{
  content:"ARRASTE A FOTO PARA REPOSICIONAR";
  position:absolute;
  z-index:4;
  left:50%;
  top:12px;
  transform:translateX(-50%);
  padding:6px 9px;
  border-radius:7px;
  background:rgba(17,17,17,.52);
  color:#fff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.02em;
  pointer-events:none;
  opacity:.75;
}

/* Elementos interativos continuam acima da imagem. */
.dws-frame{z-index:10}
.dws-ruler{z-index:12}

@media(max-width:700px){
  .dws-stage.is-calibrated::before{
    top:8px;
    font-size:7px;
    padding:5px 7px;
  }
}


/* =========================================================
   V10 — FOTO SEMPRE ARRASTÁVEL
   ========================================================= */

/* A foto pode ser reposicionada antes e depois da calibração. */
.dws-stage{
  cursor:grab;
  touch-action:none!important;
}
.dws-stage.is-dragging-wall{
  cursor:grabbing;
}

/* Remove a mensagem antiga que dizia para arrastar a foto para mover a régua. */
.dws-stage:not(.is-calibrated)::after{
  content:"ARRASTE A FOTO PARA REPOSICIONAR";
}

/* Antes de calibrar também mostramos a função correta da foto. */
.dws-stage:not(.is-calibrated)::before{
  content:"RÉGUA: ARRASTE A LINHA VERDE OU AS PONTAS";
  position:absolute;
  z-index:4;
  left:50%;
  top:12px;
  transform:translateX(-50%);
  padding:6px 9px;
  border-radius:7px;
  background:rgba(17,17,17,.52);
  color:#fff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.02em;
  pointer-events:none;
  opacity:.75;
}

/* Mantém os controles da régua claramente interativos. */
.dws-ruler-line{
  cursor:grab!important;
  pointer-events:auto!important;
}
.dws-ruler-line:active{
  cursor:grabbing!important;
}
.dws-ruler-handle{
  cursor:grab!important;
  pointer-events:auto!important;
}
.dws-ruler-handle:active{
  cursor:grabbing!important;
}

@media(max-width:700px){
  .dws-stage:not(.is-calibrated)::before{
    top:8px;
    font-size:7px;
    padding:5px 7px;
  }
}


/* =========================================================
   V11 — FOTO FIXA + SCROLL NORMAL DA PÁGINA
   ========================================================= */

/*
 * A área livre da foto NÃO é arrastável.
 * No celular, deslizar para cima/baixo sobre a foto
 * rola a página normalmente.
 */
.dws-stage,
.dws-stage.is-calibrated{
  cursor:default!important;
  touch-action:pan-y!important;
  overscroll-behavior-y:auto!important;
}

/* A própria imagem nunca se desloca. */
.dws-wall-image{
  transform:none!important;
}

/* Remove indicadores antigos de arrastar a foto. */
.dws-stage:not(.is-calibrated)::after,
.dws-stage:not(.is-calibrated)::before,
.dws-stage.is-calibrated::before{
  content:none!important;
  display:none!important;
}

/*
 * Somente os objetos que realmente precisam ser arrastados
 * bloqueiam o scroll durante o gesto.
 */
.dws-ruler-line,
.dws-ruler-handle,
.dws-frame,
.dws-resize{
  touch-action:none!important;
}

/* Feedback de cursor no desktop. */
.dws-ruler-line,
.dws-ruler-handle{
  cursor:grab!important;
}
.dws-ruler-line:active,
.dws-ruler-handle:active{
  cursor:grabbing!important;
}
.dws-frame{
  cursor:grab!important;
}
.dws-frame:active{
  cursor:grabbing!important;
}


/* =========================================================
   V12 — ETAPA FOTO CLARA E SEM DUPLICAÇÃO
   ========================================================= */

/* CRÍTICO: elementos com hidden jamais podem ser reexibidos por display:flex/grid. */
.dws-upload-card [hidden],
.dws-upload-actions[hidden],
.dws-upload-before[hidden],
.dws-upload-after[hidden],
.dws-upload-result-text[hidden],
.dws-upload-change[hidden]{
  display:none!important;
}

/* Estado inicial: visual centralizado e muito claro. */
.dws-upload-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:18px!important;
  min-height:390px!important;
  padding:38px 24px!important;
  text-align:center!important;
  background:#fff!important;
  border:1px solid #e1e5ea!important;
  border-radius:16px!important;
}

.dws-upload-card:not(.is-complete) .dws-upload-status-icon{
  display:none!important;
}

.dws-upload-copy{
  width:100%;
  max-width:650px;
}

.dws-front-title{
  margin:0!important;
  color:#07931d!important;
  font-size:clamp(34px,4.2vw,62px)!important;
  line-height:.98!important;
  font-weight:1000!important;
  letter-spacing:-.035em!important;
  text-transform:uppercase!important;
}

.dws-front-subtitle{
  margin:8px 0 0!important;
  color:#111!important;
  font-size:clamp(16px,1.55vw,23px)!important;
  line-height:1.15!important;
  font-weight:900!important;
  text-decoration:underline;
  text-decoration-color:#07931d;
  text-decoration-thickness:4px;
  text-underline-offset:5px;
}

.dws-upload-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  margin:14px 0 0!important;
}

.dws-photo-action{
  min-width:190px;
  min-height:54px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:28px;
  font-size:18px;
  font-weight:1000;
  cursor:pointer;
  transition:transform .15s ease,filter .15s ease;
}
.dws-photo-action:active{transform:scale(.98)}
.dws-photo-action-outline{
  border:3px solid #111;
  background:#fff;
  color:#111;
}
.dws-photo-action-dark{
  border:3px solid #111;
  background:#111;
  color:#fff;
}

.dws-upload-result-text{
  color:#4b5563;
  font-size:22px;
  line-height:1.08;
  font-weight:500;
}

/* Estado concluído: SOMENTE confirmação + trocar foto. */
.dws-upload-card.is-complete{
  min-height:88px!important;
  padding:14px 18px!important;
  flex-direction:row!important;
  justify-content:flex-start!important;
  gap:14px!important;
  text-align:left!important;
  border-color:#b7ebc8!important;
  background:#f1fff5!important;
}

.dws-upload-card.is-complete .dws-upload-status-icon{
  display:flex!important;
  flex:0 0 46px;
  width:46px;
  height:46px;
  margin:0;
  background:#16a34a!important;
  color:#fff;
  font-size:24px!important;
}

.dws-upload-card.is-complete .dws-upload-copy{
  flex:1 1 auto;
  min-width:0;
  max-width:none;
}

.dws-upload-after h2{
  margin:0 0 3px!important;
  color:#087829!important;
  font-size:20px!important;
  line-height:1.05!important;
}
.dws-upload-after p{
  margin:0!important;
  color:#51615a!important;
  font-size:12px!important;
  line-height:1.3!important;
}

.dws-upload-change{
  flex:0 0 auto;
  min-height:40px!important;
  padding:0 14px!important;
  margin:0!important;
  border:1px solid #b9dec5!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#12662c!important;
  font-size:12px!important;
  font-weight:900!important;
}

/* Garante que os botões somem mesmo com CSS antigo conflitante. */
.dws-upload-card.is-complete .dws-upload-actions,
.dws-upload-card.is-complete .dws-upload-result-text,
.dws-upload-card.is-complete .dws-upload-before{
  display:none!important;
}

/* PC: mantém a mensagem forte, mas sem exagerar na altura. */
@media(min-width:701px){
  .dws-upload-card:not(.is-complete){
    min-height:360px!important;
  }
}

/* Mobile igual à referência enviada. */
@media(max-width:700px){
  .dws-upload-card{
    min-height:380px!important;
    padding:30px 18px!important;
    gap:16px!important;
  }

  .dws-front-title{
    font-size:40px!important;
    line-height:.98!important;
  }

  .dws-front-subtitle{
    max-width:330px;
    margin:8px auto 0!important;
    font-size:17px!important;
    text-decoration-thickness:3px;
  }

  .dws-upload-actions{
    width:100%;
    flex-direction:column!important;
    gap:8px!important;
  }

  .dws-photo-action{
    min-width:220px;
    min-height:48px;
    font-size:16px;
  }

  .dws-upload-result-text{
    margin-top:8px;
    font-size:20px;
  }

  .dws-upload-card.is-complete{
    min-height:82px!important;
    padding:12px!important;
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
  }

  .dws-upload-card.is-complete .dws-upload-status-icon{
    width:42px;
    height:42px;
    font-size:22px!important;
  }

  .dws-upload-after h2{
    font-size:18px!important;
  }

  .dws-upload-after p{
    font-size:10px!important;
  }

  .dws-upload-change{
    min-height:38px!important;
    padding:0 11px!important;
    font-size:10px!important;
  }
}

@media(max-width:390px){
  .dws-front-title{
    font-size:36px!important;
  }
  .dws-photo-action{
    min-width:205px;
  }
}


/* =========================================================
   V700 — integração com a página do produto
   ========================================================= */

.da-inline-simulator-wrap[hidden],
.da-inline-simulator-wrap [hidden]{
  display:none!important;
}

.da-inline-simulator-wrap{
  width:100%;
  padding:0;
}

.da-inline-simulator-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  padding:18px 20px;
  border-radius:14px;
  background:#111;
  color:#fff;
}

.da-inline-simulator-heading span{
  display:block;
  margin-bottom:5px;
  color:#9ee8b7;
  font-size:10px;
  font-weight:900;
  letter-spacing:.09em;
}

.da-inline-simulator-heading h2{
  margin:0 0 5px!important;
  padding:0!important;
  border:0!important;
  color:#fff!important;
  font-size:25px!important;
}

.da-inline-simulator-heading p{
  margin:0;
  color:#d3d7dc;
  font-size:12px;
  line-height:1.4;
}

.da-inline-simulator-heading button{
  flex:0 0 auto;
  min-height:40px;
  padding:0 14px;
  border:1px solid #555;
  border-radius:9px;
  background:#fff;
  color:#111;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

/* Simulador ocupa toda a largura disponível dentro de Detalhes. */
.da-inline-sim{
  width:100%;
  overflow:visible;
}

.da-inline-sim .dws-layout{
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
}

.da-inline-sim .dws-main{
  width:100%;
}

.da-inline-sim .dws-panel{
  display:block!important;
  position:static!important;
}

.da-inline-sim #dwsProductControls{
  display:none!important;
}

/* Botão reset fica discreto, no final. */
.da-inline-sim #dwsReset{
  margin:8px 0 0;
}

/* CTA de entrada do produto */
.da-wall-sim.da-wall-sim-ready{
  width:100%!important;
  height:auto!important;
  min-height:58px!important;
  margin-top:8px!important;
  padding:9px 12px!important;
  border:1px solid #15aa4c!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#1fc05c,#16a34a)!important;
  color:#fff!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 24px!important;
  align-items:center!important;
  gap:9px!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:0 7px 18px rgba(22,163,74,.18)!important;
}

.da-wall-sim-ready .da-wall-sim-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.17);
  font-size:18px;
  font-weight:900;
}

.da-wall-sim-ready .da-wall-sim-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.da-wall-sim-ready .da-wall-sim-copy strong{
  color:#fff;
  font-size:12px;
  line-height:1.1;
}

.da-wall-sim-ready .da-wall-sim-copy small{
  color:rgba(255,255,255,.90);
  font-size:9px;
  line-height:1.2;
}

.da-wall-sim-ready .da-wall-sim-arrow{
  font-size:18px;
  font-weight:900;
  text-align:center;
}

.da-wall-sim-ready:hover{
  filter:brightness(.97);
  transform:translateY(-1px);
}

/* Não deixa a descrição aplicar estilos de conteúdo no simulador. */
.da-product-description .da-inline-sim img{
  max-width:none;
}

@media(max-width:760px){
  .da-wall-sim.da-wall-sim-ready{
    min-height:62px!important;
    padding:9px 10px!important;
    grid-template-columns:34px minmax(0,1fr) 22px!important;
  }

  .da-wall-sim-ready .da-wall-sim-copy strong{
    font-size:11px;
  }

  .da-wall-sim-ready .da-wall-sim-copy small{
    font-size:8px;
  }

  .da-inline-simulator-heading{
    display:block;
    padding:14px;
    margin-bottom:10px;
  }

  .da-inline-simulator-heading h2{
    font-size:20px!important;
  }

  .da-inline-simulator-heading p{
    font-size:10px;
  }

  .da-inline-simulator-heading button{
    width:100%;
    margin-top:11px;
  }
}


/* =========================================================
   V710 — FOTO ENVIADA SEMPRE 100% VISÍVEL
   ========================================================= */

/*
 * O tamanho final do stage é calculado pelo JS usando:
 * naturalWidth / naturalHeight da foto.
 *
 * Portanto:
 * - vertical continua vertical;
 * - horizontal continua horizontal;
 * - quadrada continua quadrada;
 * - nenhuma foto é cortada.
 */
.da-inline-sim .dws-stage{
  width:100%;
  height:auto;
  min-height:0!important;
  max-height:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  background:#181818!important;
}

/* FORÇA a exibição completa, mesmo que outro CSS da página tente sobrescrever. */
.da-inline-sim .dws-wall-image{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block!important;
  transform:none!important;
  background:#181818!important;
}

/* A caixa externa continua ocupando a largura da página,
   mas a foto pode ficar mais estreita e centralizada quando for vertical. */
.da-inline-sim .dws-stage-wrap{
  width:100%!important;
  overflow:visible!important;
}

/* Remove alturas fixas antigas do simulador. */
@media(max-width:900px){
  .da-inline-sim .dws-stage{
    min-height:0!important;
    max-height:none!important;
  }
}
@media(max-width:620px){
  .da-inline-sim .dws-stage{
    min-height:0!important;
    max-height:none!important;
  }
}


/* =========================================================
   V711 — CORREÇÃO ESPECÍFICA PC / FOTO SEM CORTE
   ========================================================= */

/*
 * No desktop o stage NÃO pode voltar a ocupar 100% da largura
 * depois que o JavaScript calculou a proporção da foto.
 */
@media(min-width:701px){
  .da-inline-sim .dws-stage{
    flex:none!important;
    max-width:100%!important;
    align-self:center!important;
    justify-self:center!important;
  }

  .da-inline-sim .dws-stage-wrap{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
  }

  .da-inline-sim .dws-wall-image{
    object-fit:contain!important;
    object-position:50% 50%!important;
  }
}

/* Segurança universal: nada da foto pode ultrapassar/cortar o stage. */
.da-inline-sim .dws-wall-image{
  overflow:visible!important;
}


/* =========================================================
   V712 — FOTO INTEIRA: REGRA DEFINITIVA PC + MOBILE
   ========================================================= */

/*
 * O JS define width/height exatos do stage.
 * Estas regras impedem qualquer CSS anterior de esticá-lo novamente.
 */
.da-inline-sim .dws-stage-wrap{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow:visible!important;
}

.da-inline-sim .dws-stage{
  position:relative!important;
  flex:0 0 auto!important;
  align-self:center!important;
  justify-self:center!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:none!important;
  overflow:hidden!important;
  background:#181818!important;
}

.da-inline-sim .dws-wall-image{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

/*
 * Remove definitivamente as alturas fixas herdadas do protótipo.
 */
@media(min-width:701px){
  .da-inline-sim .dws-stage{
    min-height:0!important;
    height:auto; /* inline style do JS ganha por !important */
  }
}

@media(max-width:700px){
  .da-inline-sim .dws-stage{
    min-height:0!important;
  }
}


/* =========================================================
   V713 — RÉGUA LARGURA / ALTURA
   ========================================================= */
.dws-ruler-orientation{
  display:flex;
  gap:6px;
  margin-top:9px;
  flex-wrap:wrap;
}
.dws-ruler-orientation button{
  min-height:34px;
  padding:0 12px;
  border:1px solid #cfd5dc;
  border-radius:8px;
  background:#fff;
  color:#111;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.dws-ruler-orientation button b{
  margin-right:5px;
  font-size:14px;
}
.dws-ruler-orientation button.is-active{
  border-color:#111;
  background:#111;
  color:#fff;
}
.dws-ruler-orientation button:disabled{
  cursor:default;
  opacity:.72;
}
.dws-ruler-label{
  min-width:max-content;
  white-space:nowrap;
}

@media(max-width:700px){
  .dws-ruler-orientation{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .dws-ruler-orientation button{
    width:100%;
    min-height:36px;
    padding:0 8px;
    font-size:9px;
  }
}


/* =========================================================
   V714 — BOTÃO SIMULADOR CENTRALIZADO
   ========================================================= */
.da-wall-sim.da-wall-sim-ready.da-wall-sim-centered{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  grid-template-columns:none!important;
  text-align:center!important;
  padding:10px 14px!important;
}

.da-wall-sim-centered .da-wall-sim-copy{
  width:100%!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:2px!important;
}

.da-wall-sim-centered .da-wall-sim-copy strong,
.da-wall-sim-centered .da-wall-sim-copy small{
  width:100%!important;
  text-align:center!important;
}

.da-wall-sim-centered .da-wall-sim-icon,
.da-wall-sim-centered .da-wall-sim-arrow{
  display:none!important;
}
