body.single-product .ad90-custom .ad90-designer-hint{color:#e8d5ae!important;font-size:12px;margin:0 0 12px!important}
.ad90-designer{display:none;position:fixed;z-index:2147483000;inset:0;background:#0e1115;color:#f9f5ee;font-family:Arial,sans-serif;overflow-y:auto}.ad90-designer.open{display:flex;flex-direction:column}body.ad90-design-open{overflow:hidden}
.ad90-designer *{box-sizing:border-box}.ad90-designer button{cursor:pointer}.ad90-designer-head{height:65px;min-height:65px;background:#070707;border-bottom:1px solid #56441e;display:flex;align-items:center;justify-content:space-between;padding:9px 22px}.ad90-designer-head b{color:#ffcc59;font-size:19px}.ad90-designer-head small{font-size:10px;display:block;color:#fff}.ad90-designer-head button,.ad90-designer-switch button,.ad90-designer-tools nav button{border:1px solid #5f512f;background:#201b15;color:#fff;border-radius:7px;padding:9px 12px;margin:0 3px}
.ad90-designer-body{display:grid;grid-template-columns:minmax(240px,290px) minmax(460px,1fr) minmax(220px,280px);gap:0;flex:1;min-height:0}.ad90-designer-tools,.ad90-designer-choices{background:#191716;padding:18px;border-right:1px solid #403624;overflow:auto}.ad90-designer-tools nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}.ad90-designer-tools nav button.active,.ad90-designer-switch button.active{background:#efb83e;color:#15100a;font-weight:800}
.ad90-tool-panel h3,.ad90-designer-choices h3{font-size:16px;color:#ffd46c;margin:0 0 14px}.ad90-tool-panel p,.ad90-designer-choices p{font-size:12px;line-height:1.6;color:#ead8b8}.ad90-preset{display:block;width:100%;text-align:left;padding:13px 12px;margin:9px 0;background:#231913;border:1px solid #c33b6d;color:#fff;border-radius:8px;font-weight:700}.ad90-preset.ad90-custom-add{background:#34161d}.ad90-art-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.ad90-art-grid button{min-height:90px;background:#2b2925;border:1px solid #806837;border-radius:8px;padding:8px}.ad90-art-grid img{max-width:100%;height:100px;object-fit:contain}.ad90-art-grid .ad90-color-choice{border:2px solid #dcb04a;min-height:78px}.ad90-art-grid .ad90-color-choice.active{outline:3px solid #fff2;box-shadow:0 0 0 2px #efb83e inset}
.ad90-designer-stage{background:#cfd0d3;display:flex;align-items:center;flex-direction:column;padding:18px 18px 22px;min-width:0}.ad90-designer-switch{display:flex;gap:9px;margin-bottom:12px}
.ad90-shirt{position:relative;width:min(100%,560px);aspect-ratio:420/500;touch-action:pan-y;overflow:hidden;border-radius:18px;background:#eae6de;box-shadow:0 18px 40px rgba(0,0,0,.12)}.ad90-shirt>svg{width:100%;height:100%;filter:drop-shadow(0 10px 16px #0004)}.ad90-shirt.has-photo>svg{display:none}.ad90-print-area{position:absolute;left:15%;top:18%;width:70%;height:72%;border:2px dashed rgba(255,255,255,.82);border-radius:8px;touch-action:none;box-shadow:0 0 0 1px rgba(0,0,0,.08) inset}
.ad90-design-layer{position:absolute;transform:translate(-50%,-50%);text-align:center;cursor:grab;user-select:none;touch-action:none;overflow-wrap:anywhere;font-weight:900;line-height:.96;display:flex;align-items:center;justify-content:center;padding:4px 6px;max-width:100%}.ad90-design-layer img{display:block;width:100%;pointer-events:none}.ad90-user-art{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:76%;max-height:76%;pointer-events:none}.ad90-design-layer.selected{outline:1px dashed #09ace5;outline-offset:3px}
.ad90-editor-warning{color:#403933;font-size:12px!important;text-align:center;margin:12px 0 0}.ad90-designer-choices{border-left:1px solid #403624;border-right:0}.ad90-designer-choices label{display:block;color:#f6e7ce;margin:0 0 14px;font-size:12px;font-weight:700}.ad90-designer-choices input,.ad90-designer-choices select{display:block;width:100%;margin-top:7px;padding:11px;background:#fff;color:#1b160f;border-radius:6px;border:1px solid #d8b765}.ad90-designer-choices input::placeholder{color:#74654f;opacity:1}.ad90-designer-choices button{background:#4d201a;color:#fff;border:1px solid #ce8b72;border-radius:6px;padding:10px}.ad90-designer-footer{min-height:65px;background:#0d0b09;border-top:1px solid #403624;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px}.ad90-designer-footer span{font-size:12px;color:#e8dbbe}.ad90-designer-footer button{background:#f0bc42;color:#16110b;border:0;border-radius:7px;font-weight:900;padding:15px 20px}
@media(max-width:950px){.ad90-designer-body{grid-template-columns:210px 1fr}.ad90-designer-choices{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.ad90-designer-choices h3,.ad90-designer-choices p{flex-basis:100%}.ad90-designer-choices label{flex:1;min-width:150px}.ad90-shirt{width:min(100%,500px)}}@media(max-width:600px){.ad90-designer-head{height:52px;min-height:52px;padding:8px}.ad90-designer-body{display:flex;flex-direction:column;overflow:auto}.ad90-designer-tools{order:2;padding:12px}.ad90-designer-stage{order:1;min-height:330px;padding:8px}.ad90-shirt{width:min(100%,340px)}.ad90-designer-choices{order:3;padding:12px}.ad90-designer-tools nav{margin-bottom:9px}.ad90-designer-footer{position:sticky;bottom:0;padding:9px;gap:7px}.ad90-designer-footer button{padding:12px 10px;font-size:12px}.ad90-designer-footer span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ad90-designer *{transition:none!important}}

/* v4.2.9: contraste acessível nos painéis escuros do editor visual. */
body .ad90-designer.open .ad90-designer-tools,
body .ad90-designer.open .ad90-designer-choices{background:#171411!important;color:#fff7e7!important}
body .ad90-designer.open .ad90-designer-tools .ad90-tool-panel h3,
body .ad90-designer.open .ad90-designer-choices h3{color:#ffce59!important;opacity:1!important;font-weight:800!important;text-shadow:none!important}
body .ad90-designer.open .ad90-designer-choices label,
body .ad90-designer.open .ad90-designer-choices label:not(:has(input)),
body .ad90-designer.open .ad90-designer-choices p,
body .ad90-designer.open .ad90-tool-panel p,
body .ad90-designer.open .ad90-designer-tools .ad90-tool-panel>p,
body .ad90-designer.open .ad90-designer-choices small{color:#f4ead7!important;opacity:1!important;text-shadow:none!important}
body .ad90-designer.open .ad90-designer-choices input:not([type='color']):not([type='range']),
body .ad90-designer.open .ad90-designer-choices select{color:#21170b!important;background:#fffaf1!important;opacity:1!important}
body .ad90-designer.open .ad90-designer-choices input[type='range']{accent-color:#edb83e!important}
body .ad90-designer.open .ad90-designer-choices input[type='color']{background:#fffaf1!important;border:1px solid #d1a842!important}
body .ad90-designer.open .ad90-designer-tools .ad90-preset{color:#fff7ed!important;opacity:1!important}

.ad90-designer-choices output{display:inline-block;color:#fbc957;font-weight:800;margin-left:5px}.ad90-designer-choices label:has(input[type=range]){padding:4px 0}.ad90-designer-choices input[type=range]{accent-color:#f0bc42}.ad90-designer-choices option{color:#18120b;background:#fff}

/* v4.3.14 - campos de impressão distintos, baseados na referência aprovada */
#ad90_shirt #ad90_print_area{left:18%!important;top:18%!important;width:64%!important;height:72%!important;}
#ad90_shirt[data-print-side="back"] #ad90_print_area{left:12%!important;top:14%!important;width:76%!important;height:80%!important;}

/* 4.3.18 — Mobile-first editor: viewport, editing canvas, controls and safe-area footer */
@media (max-width: 767px) {
  html:has(body.ad90-design-open), body.ad90-design-open { overflow:hidden!important; height:100%!important; }
  body .ad90-designer.open { position:fixed!important; inset:0!important; width:100vw!important; height:100dvh!important; max-height:100dvh!important; display:flex!important; flex-direction:column!important; overflow:hidden!important; border-radius:0!important; z-index:2147483000!important; }
  .ad90-designer-head { flex:0 0 auto!important; min-height:56px!important; height:auto!important; padding:8px 12px!important; gap:8px!important; }
  .ad90-designer-head b {font-size:15px!important;line-height:1.15!important;}
  .ad90-designer-head b small {font-size:9px!important;}
  .ad90-designer-head>div {display:flex!important;gap:6px!important;align-items:center!important;}
  .ad90-designer-head button {min-width:44px!important; min-height:44px!important; margin:0!important; padding:8px 11px!important; font-size:13px!important;}
  .ad90-designer-body { flex:1 1 auto!important; display:flex!important; flex-direction:column!important; min-height:0!important; overflow-x:hidden!important; overflow-y:auto!important; overscroll-behavior:contain!important; -webkit-overflow-scrolling:touch!important; }
  .ad90-designer-stage {order:1!important; flex:0 0 auto!important; min-height:0!important; padding:10px 8px 12px!important; gap:7px!important; background:#cfd0d3!important; overflow:hidden!important;}
  .ad90-designer-switch{margin:0 0 4px!important;gap:8px!important;justify-content:center!important;}
  .ad90-designer-switch button {min-width:92px!important; min-height:42px!important; margin:0!important; padding:8px 14px!important; font-size:14px!important;}
  .ad90-shirt {width:min(88vw, 340px)!important; max-width:100%!important; height:auto!important; aspect-ratio:420/500!important; margin:0 auto!important; flex:none!important; border-radius:12px!important;}
  .ad90-designer-stage .ad90-editor-warning {font-size:11px!important;line-height:1.35!important; margin:3px 0 0!important; max-width:340px!important;}
  .ad90-designer-tools {order:2!important; width:100%!important; overflow:visible!important; padding:12px 14px!important; border-right:0!important; border-top:1px solid #5d4524!important;}
  .ad90-designer-tools nav {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important; margin:0 0 12px!important;}
  .ad90-designer-tools nav button {margin:0!important;min-width:0!important; min-height:46px!important; font-size:12px!important; padding:8px 3px!important; white-space:normal!important;line-height:1.15!important;}
  .ad90-tool-panel h3 {font-size:15px!important; margin:5px 0 8px!important;}
  .ad90-preset {width:100%!important;min-height:44px!important; margin:7px 0!important;padding:10px 12px!important; font-size:13px!important; white-space:normal!important;overflow-wrap:anywhere!important;}
  .ad90-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .ad90-art-grid button {min-height:76px!important;}
  .ad90-designer-choices {order:3!important; display:block!important; padding:15px 14px 28px!important; width:100%!important; border:0!important;border-top:1px solid #5d4524!important; overflow:visible!important;}
  .ad90-designer-choices h3 {font-size:16px!important;margin:0 0 12px!important;}
  .ad90-designer-choices label {display:block!important; width:100%!important; min-width:0!important; margin:0 0 14px!important; font-size:13px!important;}
  .ad90-designer-choices input:not([type=range]),.ad90-designer-choices select {min-height:46px!important; font-size:16px!important;}
  .ad90-designer-choices input[type=range] {height:32px!important;min-height:32px!important; touch-action:pan-y!important;}
  .ad90-designer-choices button {min-height:44px!important;}
  .ad90-designer-footer {flex:0 0 auto!important; position:relative!important; bottom:auto!important; z-index:5!important; min-height:62px!important; padding:9px 12px calc(9px + env(safe-area-inset-bottom, 0px))!important; display:flex!important; gap:8px!important; align-items:center!important; background:#0d0b09!important;}
  .ad90-designer-footer span {font-size:10px!important;line-height:1.25!important; max-width:28%!important; flex:0 0 28%!important;}
  .ad90-designer-footer button {flex:1!important;min-width:0!important;min-height:46px!important;padding:10px 12px!important; font-size:12px!important; line-height:1.25!important;white-space:normal!important;}
  .ad90-design-layer {min-width:28px!important;min-height:30px!important;}
  .ad90-shirt.has-photo .ad90-global-shirt-photo {pointer-events:none!important;}
}
@media (max-width:360px){
 .ad90-shirt {width:min(83vw,300px)!important;}
 .ad90-designer-head b{font-size:13px!important;}
 .ad90-designer-tools nav button{font-size:11px!important;}
}
@media (max-width:767px) and (max-height:650px){
 .ad90-shirt{width:min(70vw,250px)!important;}
}

/* v4.3.20: imagens e artes arrastáveis também por toque */
.ad90-design-layer,.ad90-design-layer img{touch-action:none!important;user-select:none;-webkit-user-drag:none}.ad90-design-layer{cursor:grab}.ad90-design-layer:active{cursor:grabbing}.ad90-design-layer img{max-width:100%;object-fit:contain}
