/* Touch Studio: responsive controls only; original design data and artwork preserved. */
.mobile59-bar,.mobile59-panel-head{display:none}
@media (max-width:760px), (max-width:1024px) and (max-height:600px) and (pointer:coarse) {
 body.studio-mobile59>.top{height:64px;min-height:64px;padding:6px 10px;gap:8px}
 body.studio-mobile59 .top #back-catalog{min-width:40px}
 body.studio-mobile59 #back-catalog img.tg-official-logo{width:44px}
 body.studio-mobile59 .top .steps{min-width:0;gap:2px}
 body.studio-mobile59 .steps button{min-height:44px;padding:4px 2px;gap:3px;font-size:9px;line-height:1.3}
 body.studio-mobile59 .steps button b{flex:none;width:18px;height:18px}
 body.studio-mobile59 .account24{font-size:10px;max-width:76px;min-height:44px;padding:6px;white-space:normal;text-align:center;flex-shrink:0}
 body.studio-mobile59>.top:has(>.tg-language){gap:4px;padding-inline:8px}
 body.studio-mobile59 .top:has(>.tg-language) .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;gap:3px}
 body.studio-mobile59 .top:has(>.tg-language) .steps button{flex-direction:column;justify-content:center;text-align:center;align-self:stretch;line-height:1.15;overflow-wrap:anywhere}
 body.studio-mobile59 .top:has(>.tg-language) .account24{max-width:64px;margin-left:0;padding-inline:5px}
 body.studio-mobile59[data-step=design]{overflow:hidden;height:100dvh}
 body.studio-mobile59[data-step=design]>.workspace{display:flex;flex-direction:column;gap:6px;padding:6px 10px;min-height:0;height:calc(100dvh - 142px - env(safe-area-inset-bottom,0px));overflow:hidden}
 body.studio-mobile59[data-step=design] .rail{order:0;display:flex;flex:none;justify-content:flex-start;gap:3px;padding:3px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity;border-radius:12px}
 body.studio-mobile59 .rail button{flex:0 0 62px;min-width:62px;min-height:54px;font-size:10px;scroll-snap-align:nearest}
 body.studio-mobile59[data-step=design] .canvas{order:1;flex:1;min-height:0;padding:0;display:flex;flex-direction:column;position:relative;overflow:hidden}
 body.studio-mobile59[data-step=design] .view-title{position:static;flex:none;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:26px;gap:5px;padding:0 2px}
 body.studio-mobile59 .view-title>span{font-size:9px}
 body.studio-mobile59 .history-buttons button{min-height:44px;min-width:44px;padding:4px}
 body.studio-mobile59[data-step=design] .canvas-sheet{flex:1;min-height:0;width:100%;height:auto;aspect-ratio:auto;display:flex;align-items:center;justify-content:center;overflow:hidden;background:transparent}
 body.studio-mobile59[data-step=design] .shirt-board{width:auto;height:100%;max-width:100%;aspect-ratio:1;flex:none}
 body.studio-mobile59[data-step=design] .shirt-board.zoom{transform:scale(1.25)}
 body.studio-mobile59[data-step=design] .notes{position:absolute;right:5px;bottom:4px;left:auto;min-height:44px;margin:0;padding:6px 10px;font-size:11px}
 body.studio-mobile59[data-step=design] .quick-add{width:160px;max-width:80%;padding:8px}
 body.studio-mobile59[data-step=design] .quick-add button{min-height:44px;font-size:12px}
 body.studio-mobile59.mobile59-open .quick-add{display:none}
 body.studio-mobile59[data-step=design] .views{order:2;display:flex;flex-direction:row;flex:none;position:static;align-items:center;justify-content:center;gap:6px;padding:0;width:100%;max-height:none}
 body.studio-mobile59[data-step=design] .views>button{flex:1;min-width:0;min-height:44px;font-size:10px;display:flex;flex-direction:row;gap:5px;align-items:center;justify-content:center;padding:4px}
 body.studio-mobile59[data-step=design] .views .mini{width:25px;height:30px;margin:0}
 body.studio-mobile59[data-step=design] .views #more-views{order:0;min-height:44px;font-size:14px;flex-direction:row}
 body.studio-mobile59 .mobile59-bar{order:3;display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
 html.studio-boot35 body.studio-mobile59[data-step=design]>.workspace:not(:has(.mobile59-bar))::after{content:"";order:3;flex:0 0 44px}
 body.studio-mobile59 .mobile59-bar>span{font-size:10px;color:#77717e}
 body.studio-mobile59 .mobile59-bar>button{min-height:44px;padding:7px 12px;font-size:12px;border-color:#d5bc7a;background:#fff8e8}
 body.studio-mobile59[data-step=design] .panel{order:4;flex:0 1 38dvh;min-height:150px;max-height:38dvh;width:100%;padding:0;border:1px solid #dedbe4;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-top:58px}
 body.studio-mobile59[data-step=design]:not(.mobile59-open) .panel{display:none}
 body.studio-mobile59[data-step=design] .panel>section{padding:14px 16px 20px}
 body.studio-mobile59 .mobile59-panel-head{display:flex;position:sticky;top:0;z-index:8;background:#fff;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;border-bottom:1px solid #e6e3eb}
 body.studio-mobile59 .mobile59-panel-head>strong{font-size:13px}
 body.studio-mobile59 .mobile59-panel-head>button{min-height:44px;min-width:80px;font-size:12px;padding:8px 12px}
 body.studio-mobile59 .panel button:not([hidden]),body.studio-mobile59 dialog button:not([hidden]){min-height:44px}
 body.studio-mobile59 .panel input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]),body.studio-mobile59 .panel textarea,body.studio-mobile59 .panel select,body.studio-mobile59 dialog input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]),body.studio-mobile59 dialog select,body.studio-mobile59 dialog textarea{font-size:16px!important;min-height:44px}
 body.studio-mobile59 input[type=range]{min-height:36px;touch-action:pan-x}
 body.studio-mobile59 .panel .palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
 body.studio-mobile59 .panel .palette button{width:100%;height:44px;border-radius:9px}
 body.studio-mobile59 .object .transform-handle{width:34px;height:34px;font-size:16px}
 body.studio-mobile59 .object{touch-action:none}
 body.studio-mobile59 .float8{max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);z-index:80}
 body.studio-mobile59>.bottom{height:calc(78px + env(safe-area-inset-bottom,0px));padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px));gap:7px}
 body.studio-mobile59>.bottom button{min-width:0;min-height:48px;font-size:11px;line-height:1.4;padding:9px 8px}
 body.studio-mobile59>.bottom #next{flex:1.25}
 body.studio-mobile59[data-step=sizes]>.workspace{display:flex;flex-direction:column;padding:12px 10px calc(96px + env(safe-area-inset-bottom,0px));gap:16px;height:auto;min-height:0}
 body.studio-mobile59[data-step=sizes] .panel{order:0;padding:18px 14px;width:100%;max-height:none;overflow:visible}
 body.studio-mobile59[data-step=sizes] .canvas{order:1;flex-direction:column;min-height:0;padding:10px;width:100%}
 body.studio-mobile59[data-step=sizes] .size-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 body.studio-mobile59[data-step=sizes] .size-grid input{width:100%;font-size:16px;min-height:46px}
 body.studio-mobile59[data-step=sizes] .size-grid label{font-size:12px}
 body.studio-mobile59[data-step=sizes]>.bottom{left:0;right:0;width:100%}
 body.studio-mobile59[data-step=review] .review25-actions{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
 body.studio-mobile59[data-step=review] .enquiry-submit43{min-height:48px;font-size:16px}
 body.studio-mobile59 dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto}
}
@media(max-width:359px){body.studio-mobile59 .rail button{flex-basis:58px;min-width:58px}body.studio-mobile59 .steps button{font-size:8px}body.studio-mobile59 .account24{max-width:66px;font-size:9px}body.studio-mobile59 .mobile59-bar>span{font-size:9px}}
@media (max-width:760px) and (max-height:600px), (max-width:1024px) and (max-height:600px) and (pointer:coarse) {body.studio-mobile59[data-step=design]{overflow:auto;height:auto}body.studio-mobile59[data-step=design]>.workspace{height:auto;overflow:visible;padding-bottom:90px}body.studio-mobile59[data-step=design] .canvas{flex:none;height:280px}body.studio-mobile59[data-step=design] .panel{flex:none;max-height:65dvh}body.studio-mobile59 .rail{position:sticky;top:0;z-index:12}}

.mobile59-bar[hidden],.mobile59-panel-head[hidden]{display:none!important}

@media (max-width:760px), (max-width:1024px) and (max-height:600px) and (pointer:coarse) {
 body.studio-mobile59.mobile59-open .mobile59-bar{display:none}
 body.studio-mobile59[data-step=design] .shirt-board{width:var(--mobile59-board,280px);height:var(--mobile59-board,280px);max-width:100%;aspect-ratio:1}
 body.studio-mobile59.mobile59-open .notes{display:none}
}

@media (max-width:760px), (max-width:1024px) and (max-height:600px) and (pointer:coarse) {
 body.studio-mobile59:not(.mobile59-handles) .object .transform-handle{display:none}
 body.studio-mobile59 .mobile59-bar>button[aria-pressed=true]{background:#2b2b3a;color:#fff}
 body.studio-mobile59 .mobile59-bar>[hidden]{display:none!important}
}

@media (max-width:760px), (max-width:1024px) and (max-height:600px) and (pointer:coarse) {
 body.studio-mobile59>.workspace{min-width:0;max-width:100%}
 body.studio-mobile59[data-step=design] .rail{width:100%;max-width:100%;min-width:0;align-self:stretch}
 body.studio-mobile59[data-step=design] .canvas{min-width:0;max-width:100%}
}

@media (max-width:760px), (max-width:1024px) and (max-height:600px) and (pointer:coarse) {
 body.studio-mobile59 dialog{overscroll-behavior:contain;scroll-padding-block:12px}
 body.studio-mobile59 .try-on{padding:0}
 body.studio-mobile59 .try-on-stage{height:min(62dvh, max(110px, calc(100dvh - 160px)))}
 body.studio-mobile59 .quantity-head .try-on-launch{white-space:normal;text-align:center}
 body.studio-mobile59 .custom-garment-form{min-width:0}
 body.studio-mobile59 .custom-garment-form :is(input,select,textarea){max-width:100%;box-sizing:border-box}
}
