/* BAM Shop: isolated optional phototext editor directly beneath existing 3D generator; 2026-11-22. */
#bam-text-designer{box-sizing:border-box;position:relative;isolation:isolate;width:100%;max-width:100%;margin:11px auto 15px;padding:20px 23px;border:1.5px solid #b6cbd0;border-top:4px solid #d4a85c;border-radius:18px;background:linear-gradient(135deg,#f4f8f7 0%,#fffaf0 61%,#e6f2f4 100%);color:#1c394c;box-shadow:0 7px 25px #163d4611;font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
#bam-text-designer *,#bam-text-designer *::before,#bam-text-designer *::after{box-sizing:border-box}
#bam-text-designer .bam-text-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
#bam-text-designer .bam-text-heading{min-width:0}
#bam-text-designer .bam-text-eyebrow{font-size:11px;font-weight:850;letter-spacing:1px;color:#a0752b}
#bam-text-designer h2{margin:3px 0 6px!important;font-size:clamp(23px,2.5vw,34px)!important;line-height:1.15!important;font-weight:850!important;letter-spacing:-.6px;color:#1e4356!important;text-transform:none!important}
#bam-text-designer .bam-text-heading>p{margin:0!important;max-width:880px;font-size:13px!important;line-height:1.48;color:#436072}
#bam-text-designer .bam-text-header-tag{flex:0 0 auto;min-width:155px;align-self:center;padding:12px 14px;border-radius:13px;background:#234b60;color:#fff5de;text-align:center;font-weight:800;font-size:13px}
#bam-text-designer .bam-text-header-tag small{font-size:11px;font-weight:500;color:#d3e3e5}
#bam-text-designer .bam-text-layout{display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:18px;align-items:stretch}
#bam-text-designer .bam-text-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;align-content:start;min-width:0}
#bam-text-designer .bam-text-form-row{min-width:0}
#bam-text-designer .bam-text-form-row:nth-child(3),#bam-text-designer .bam-text-form-row:nth-child(4),#bam-text-designer .bam-text-controls,#bam-text-designer .bam-text-texts{grid-column:1/-1}
#bam-text-designer label,#bam-text-designer .bam-text-form-label{display:block;margin:0 0 5px!important;font:800 12px/1.3 system-ui,sans-serif;color:#25465a}
#bam-text-designer .bam-text-optional{font-weight:450;color:#657784;font-size:11px}
#bam-text-designer input[type=file],#bam-text-designer textarea,#bam-text-designer select{display:block;width:100%;min-height:37px;border:1px solid #9bb6bf;border-radius:9px;background:#fff;color:#21394d;padding:8px 10px;font:13px/1.3 system-ui,sans-serif;max-width:100%}
#bam-text-designer input[type=file]{font-size:11px;padding:7px;cursor:pointer}
#bam-text-designer textarea{min-height:52px;resize:vertical}
#bam-text-designer .bam-text-fonts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#bam-text-designer .bam-text-font{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;min-width:0;border:1px solid #c4d0d1;border-radius:10px;background:#fff;color:#1d394c;cursor:pointer;padding:4px 5px}
#bam-text-designer .bam-text-font[aria-pressed=true]{background:#fff3d7;border-color:#be873c;box-shadow:0 0 0 2px #d6ab5d66}
#bam-text-designer .bam-text-font>span{font-size:23px;white-space:nowrap;line-height:1.05}
#bam-text-designer .bam-text-font>small{font-size:10px;font-weight:700;color:#556b79}
#bam-text-designer .bam-text-romantic>span{font-family:"Brush Script MT","Segoe Script",cursive;font-style:italic}
#bam-text-designer .bam-text-elegant>span{font-family:Georgia,serif;font-style:italic;font-weight:bold}
#bam-text-designer .bam-text-modern>span{font-family:Arial,sans-serif;font-weight:900}
#bam-text-designer .bam-text-hand>span{font-family:"Segoe Print","Comic Sans MS",cursive;font-style:italic;font-size:20px}
#bam-text-designer .bam-text-controls>label{display:flex;justify-content:space-between;align-items:center}
#bam-text-designer .bam-text-controls output{font-variant-numeric:tabular-nums;color:#8d662a}
#bam-text-designer input[type=range]{display:block;width:100%;height:27px;min-height:27px;accent-color:#bd8940;cursor:pointer}
#bam-text-designer .bam-text-color-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#516878}
#bam-text-designer .bam-text-color-row button,#bam-text-designer .bam-text-small-actions button,#bam-text-designer .bam-text-chip{min-height:33px;border:1px solid #b5c7cd;border-radius:8px;background:#fff;color:#203f53;padding:7px 9px;font:750 11px/1.2 system-ui,sans-serif;cursor:pointer}
#bam-text-designer .bam-text-color-row button[aria-pressed=true],#bam-text-designer .bam-text-chip[aria-pressed=true]{background:#f7e7bc;border-color:#b58c41}
#bam-text-designer .bam-text-items{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0}
#bam-text-designer .bam-text-small-actions{display:flex;flex-wrap:wrap;gap:6px}
#bam-text-designer button:disabled{opacity:.52;cursor:not-allowed}
#bam-text-designer .bam-text-preview{min-width:0;align-self:stretch;border-radius:13px;padding:12px;background:#24485d;color:#eaf6f9}
#bam-text-designer .bam-text-preview-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;margin-bottom:9px}
#bam-text-designer .bam-text-preview-head span{font-size:11px;color:#fae0ae}
#bam-text-designer #bam-text-canvas{display:block;width:100%;height:auto;aspect-ratio:8/5;border:1px solid #829dab;border-radius:10px;background:#355269;touch-action:pan-y;cursor:grab}
#bam-text-designer #bam-text-canvas:active{cursor:grabbing}
#bam-text-designer .bam-text-preview>p{margin:8px 0 0!important;font-size:11px!important;line-height:1.4;color:#e5edf1}
#bam-text-designer .bam-text-footer{margin-top:13px;padding-top:10px;border-top:1px solid #c5d8da}
#bam-text-designer .bam-text-actions{display:flex;gap:9px;flex-wrap:wrap}
#bam-text-designer .bam-text-actions button{min-height:43px;border:1px solid #aebec3;border-radius:9px;padding:10px 16px;background:#e8f0f1;color:#1c4358;font:800 13px/1.2 system-ui,sans-serif;cursor:pointer}
#bam-text-designer #bam-text-apply{background:linear-gradient(120deg,#e2b86d,#cb9342);color:#1a3343;border-color:#bf8c43;box-shadow:0 2px 0 #75541b25}
#bam-text-designer #bam-text-status{margin:10px 0 5px!important;font-size:12px!important;color:#285367;line-height:1.4}
#bam-text-designer #bam-text-status[data-state=error]{color:#9c2929}
#bam-text-designer .bam-text-order-note{margin:5px 0 0!important;font-size:11px!important;color:#526d7a;line-height:1.45}
#bam-text-designer button:focus-visible,#bam-text-designer :is(input,textarea,select,canvas):focus-visible{outline:3px solid #126a90;outline-offset:2px}
@media(max-width:940px){#bam-text-designer{padding:16px 17px}#bam-text-designer .bam-text-layout{grid-template-columns:1fr}#bam-text-designer .bam-text-preview{max-width:100%;padding:10px}#bam-text-designer .bam-text-preview canvas{max-height:430px;object-fit:contain}}
@media(max-width:580px){#bam-text-designer{padding:15px 12px;margin:9px auto 13px;border-radius:13px}#bam-text-designer .bam-text-header{align-items:flex-start}#bam-text-designer .bam-text-header-tag{display:none}#bam-text-designer h2{font-size:24px!important}#bam-text-designer .bam-text-editor{grid-template-columns:1fr;gap:8px}#bam-text-designer .bam-text-form-row{grid-column:1/-1}#bam-text-designer .bam-text-fonts{gap:5px}#bam-text-designer .bam-text-font{min-height:53px;padding:3px 2px}#bam-text-designer .bam-text-font>span{font-size:18px}#bam-text-designer .bam-text-font>small{font-size:9px}#bam-text-designer .bam-text-actions{display:grid;grid-template-columns:1fr;gap:7px}#bam-text-designer .bam-text-actions button{width:100%;min-height:44px}}
@media(prefers-reduced-motion:reduce){#bam-text-designer *{scroll-behavior:auto!important}}

#bam-text-designer{max-width:1500px;width:calc(100% - 24px)} @media(max-width:480px){#bam-text-designer{padding:13px 12px;width:calc(100% - 16px)}}

#bam-text-designer #bam-text-canvas.bam-touch-move{touch-action:none} #bam-text-designer #bam-text-move{display:none;padding:8px 10px;min-height:40px;border:1px solid #d4a85c;border-radius:8px;background:#fff3d8;color:#20394a;font-weight:750;cursor:pointer;margin:0 0 8px} #bam-text-designer #bam-text-move[aria-pressed=true]{background:#e4b55f} #bam-text-designer #bam-text-move:disabled{opacity:.5;cursor:default} @media(any-pointer:coarse){#bam-text-designer #bam-text-move{display:block;width:100%}}

/* V93: compact responsive text designer. Preserve canvas proportions and touch mode. */
#bam-text-designer{padding:13px 17px;margin:9px auto 12px}
#bam-text-designer .bam-text-header{margin-bottom:9px;gap:10px}
#bam-text-designer h2{margin:2px 0 4px!important;font-size:clamp(23px,2.3vw,31px)!important}
#bam-text-designer .bam-text-heading>p{line-height:1.35}
#bam-text-designer .bam-text-header-tag{padding:8px 10px;min-width:135px}
#bam-text-designer .bam-text-layout{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:start;gap:13px}
#bam-text-designer .bam-text-editor{gap:7px 10px;align-content:start}
#bam-text-designer label,#bam-text-designer .bam-text-form-label{margin-bottom:3px!important}
#bam-text-designer textarea{min-height:46px;padding:6px 9px}
#bam-text-designer .bam-text-font{min-height:47px}
#bam-text-designer .bam-text-fonts{gap:6px}
#bam-text-designer .bam-text-controls{min-width:0}
#bam-text-designer .bam-text-control-bottom{display:flex;align-items:flex-end;flex-wrap:wrap;gap:6px 10px;margin-top:2px}
#bam-text-designer .bam-text-color-row{flex:0 1 auto;gap:4px}
#bam-text-designer .bam-text-color-row>span{flex:1 0 100%;font:750 11px/1.2 system-ui,sans-serif}
#bam-text-designer .bam-text-texts{flex:1 1 210px;min-width:0}
#bam-text-designer .bam-text-items{margin:0;gap:4px}
#bam-text-designer .bam-text-items:not(:empty){margin:3px 0}
#bam-text-designer .bam-text-small-actions{gap:4px}
#bam-text-designer .bam-text-color-row button,#bam-text-designer .bam-text-small-actions button,#bam-text-designer .bam-text-chip{padding:5px 7px;min-height:34px}
#bam-text-designer .bam-text-side{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,135px);align-items:start;gap:7px 9px}
#bam-text-designer .bam-text-preview{min-width:0;align-self:start;padding:8px;max-width:360px;width:100%}
#bam-text-designer .bam-text-preview-head{margin-bottom:5px;flex-wrap:wrap;gap:2px 6px}
#bam-text-designer #bam-text-canvas{width:100%;height:auto;max-height:none;aspect-ratio:8/5;object-fit:contain}
#bam-text-designer .bam-text-preview>p{margin:5px 0 0!important;font-size:10px!important;line-height:1.3}
#bam-text-designer .bam-text-actions{display:flex;flex-direction:column;gap:6px;align-self:center;min-width:0}
#bam-text-designer .bam-text-actions button{width:100%;min-width:0;min-height:38px;padding:7px 6px;font-size:11px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
#bam-text-designer .bam-text-footer{grid-column:1/-1;margin:0;padding:5px 0 0;border-top:1px solid #c5d8da}
#bam-text-designer #bam-text-status{margin:0 0 3px!important;font-size:11px!important;line-height:1.35}
#bam-text-designer .bam-text-order-note{margin:2px 0 0!important;line-height:1.35}
@media(max-width:1100px) and (min-width:761px){
 #bam-text-designer .bam-text-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
 #bam-text-designer .bam-text-side{grid-template-columns:minmax(0,1fr) minmax(99px,112px)}
}
@media(max-width:760px){
 #bam-text-designer{padding:11px 10px}
 #bam-text-designer .bam-text-layout{grid-template-columns:1fr;gap:9px}
 #bam-text-designer .bam-text-header{margin-bottom:8px}
 #bam-text-designer h2{font-size:23px!important}
 #bam-text-designer .bam-text-editor{gap:7px}
 #bam-text-designer .bam-text-control-bottom{align-items:flex-start}
 #bam-text-designer .bam-text-color-row button,#bam-text-designer .bam-text-small-actions button,#bam-text-designer .bam-text-chip{min-height:40px}
 #bam-text-designer .bam-text-side{grid-template-columns:minmax(0,1fr) minmax(100px,116px);gap:6px}
 #bam-text-designer .bam-text-actions button{min-height:44px;font-size:11px}
 #bam-text-designer .bam-text-preview{max-width:100%;padding:7px}
 #bam-text-designer #bam-text-move{font-size:12px;min-height:40px;margin-bottom:4px}
 #bam-text-designer .bam-text-footer{padding-top:5px}
}
@media(max-width:350px){
 #bam-text-designer .bam-text-side{grid-template-columns:1fr}
 #bam-text-designer .bam-text-preview{max-width:250px;justify-self:center}
 #bam-text-designer .bam-text-actions{display:grid;grid-template-columns:1fr 1fr}
}
