/* Phone/tablet presentation, scoped to the two laboratory pages. */
@media(max-width:900px){
 body.tudtf-lab-page .go-gc-access-notice{padding:9px 16px;gap:2px 12px;align-items:center}
 body.tudtf-lab-page .go-gc-access-notice>div{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;flex-wrap:nowrap;flex-direction:row;text-align:left}
 body.tudtf-lab-page .go-gc-access-notice>div>strong{font-size:12px;line-height:1.35}
 body.tudtf-lab-page .go-gc-access-notice>div>span{display:none}
 body.tudtf-lab-page .go-gc-access-notice>div>button{font-size:12px;padding:7px 10px;min-height:36px;white-space:nowrap;margin:0}
 body.tudtf-lab-page .go-gc-access-notice>a{font-size:11px;line-height:1.4;padding:3px 0}
 #tudtf-lab{padding:20px 16px 40px}
 #tudtf-lab .tl-breadcrumb{display:none}
 #tudtf-lab .tl-product{row-gap:16px}
 #tudtf-lab .tl-config{display:contents}
 #tudtf-lab .tl-config>h1{order:0;font-size:27px;line-height:1.12;letter-spacing:-.6px;margin:0}
 #tudtf-lab .tl-config>.tl-intro{display:none}
 #tudtf-lab .tl-gallery{order:1}
 #tudtf-lab .tl-config>.tl-price-inline{order:2;margin:0;gap:7px 10px}
 #tudtf-lab .tl-config>.tl-tariff{order:3;margin:0}
 #tudtf-lab .tl-config>.tl-films{order:4;margin:0}
 #tudtf-lab .tl-config>.tl-step{order:5;margin:0}
 #tudtf-lab .tl-config>.tl-summary{order:6;margin:0}
 #tudtf-lab .tl-config>.tl-trust{order:7;margin:0;font-size:12px}
 #tudtf-lab .tl-benefits{order:8;margin-top:8px}
 #tudtf-lab .tl-advantages .tl-photo{position:relative;aspect-ratio:auto;height:clamp(220px,68vw,300px);max-height:300px;width:100%;max-width:100%;margin-inline:0;border-radius:14px;background:#f6f5f3}
 #tudtf-lab .tl-advantages .tl-photo img{display:block;width:100%;max-width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center}
 #tudtf-lab .tl-advantages .tl-photo img[data-gallery-kind=poster]{object-fit:contain;background:transparent}
 #tudtf-lab .tl-photo-finish{display:none}
 #tudtf-lab .tl-advantages .tl-thumbnails{gap:8px;margin:9px 0 0;justify-content:flex-start}
 #tudtf-lab .tl-advantages .tl-thumbnails button{max-width:48px;flex-basis:48px;border-radius:9px}
 #tudtf-lab .tl-price-inline>strong{font-size:26px;line-height:1.2}
 #tudtf-lab .tl-price-inline>span{font-size:12px}
 #tudtf-lab .tl-price-inline>.tl-price-test{font-size:11px;margin-left:auto}
 #tudtf-lab .tl-films{padding:15px 12px;border-radius:14px;box-shadow:none}
 #tudtf-lab .tl-film-heading{margin-bottom:12px;gap:6px}
 #tudtf-lab .tl-film-heading h2{font-size:17px}
 #tudtf-lab .tl-film-heading>span{font-size:11px}
 #tudtf-lab .tl-film-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #tudtf-lab .tl-film{padding:10px 5px;min-height:66px;flex-direction:column;gap:7px;text-align:center;justify-content:center;border-radius:10px}
 #tudtf-lab .tl-film-swatch{width:23px;height:23px}
 #tudtf-lab .tl-film-copy strong{font-size:12px;line-height:1.2}
 #tudtf-lab .tl-film-copy small{display:none}
 #tudtf-lab .tl-film:disabled .tl-film-copy small{display:block;font-size:10px;margin-top:3px}
 #tudtf-lab .tl-films>p{display:none}
 #tudtf-lab .tl-film-share{display:none}
 #tudtf-lab .tl-step{padding:18px 14px;border-radius:16px;border-color:#e3e3e7}
 #tudtf-lab .tl-step-head{gap:10px;margin-bottom:16px}
 #tudtf-lab .tl-step-head>span{width:28px;height:28px;font-size:14px}
 #tudtf-lab .tl-step-head h2{font-size:20px;line-height:1.2}
 #tudtf-lab .tl-step-head p{font-size:13px;line-height:1.5;margin-top:5px}
 #tudtf-lab .tl-methods{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}
 #tudtf-lab .tl-methods button,#tudtf-lab .tl-methods .tl-constructor{font-size:14px;font-weight:600;min-height:52px;border-radius:10px;padding:10px 6px;line-height:1.3}
 #tudtf-lab .tl-methods button[aria-selected=true]{background:#fff3f3;border-color:#d60000;box-shadow:inset 0 0 0 .5px #d60000}
 #tudtf-lab .tl-upload-source{padding-bottom:12px;gap:5px}
 #tudtf-lab .tl-upload-source button{font-size:13px;min-height:44px;padding:8px 6px}
 #tudtf-lab .tl-drop-design{padding:20px 15px;background:#fff5f5;border:2px dashed #e4a1a1;border-radius:14px;text-align:left}
 #tudtf-lab .tl-drop-design>.tl-drop-main{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;text-align:left}
 #tudtf-lab .tl-drop-icon{width:42px;height:42px;flex:none}
 #tudtf-lab .tl-drop-icon svg{width:24px;height:24px}
 #tudtf-lab .tl-drop-copy{flex:1;min-width:150px}
 #tudtf-lab .tl-drop-copy>strong{font-size:22px;line-height:1.2;letter-spacing:-.4px}
 #tudtf-lab .tl-drop-copy>span{font-size:14px;line-height:1.5;margin-top:5px}
 #tudtf-lab .tl-drop-main>.tl-select-files{flex-basis:100%;width:100%;min-height:56px;padding:17px 10px;margin:5px 0 0;border-radius:11px;font-size:17px;line-height:1.3}
 #tudtf-lab .tl-drop-design>.tl-drop-formats{margin-top:18px}
 #tudtf-lab .tl-drop-formats>strong{font-size:10px;margin-bottom:8px}
 #tudtf-lab .tl-format-chips{justify-content:flex-start;gap:5px}
 #tudtf-lab .tl-format-chips>span{font-size:10px;padding:5px;border:0;background:#fff}
 #tudtf-lab .tl-drop-design>small{font-size:11px;line-height:1.5;margin-top:12px}
 #tudtf-lab .tl-format-note{font-size:13px;line-height:1.6;margin-top:12px}
 #tudtf-lab .tl-small{font-size:12px;line-height:1.6}
 #tudtf-lab .tl-file-name{font-size:14px}
 #tudtf-lab .tl-file-status,#tudtf-lab .tl-file-footer,#tudtf-lab .tl-file-meters{font-size:12px}
 #tudtf-lab .tl-meter-label{font-size:15px}
 #tudtf-lab .tl-meter-control>button{min-height:50px;font-size:14px}
 #tudtf-lab .tl-summary{padding:18px 16px;border-radius:16px}
 #tudtf-lab .tl-summary dl>div{font-size:14px}
 #tudtf-lab .tl-grand-total dt,#tudtf-lab .tl-grand-total dd{font-size:16px}
 #tudtf-lab .tl-buy{min-height:56px;font-size:17px;justify-content:center}
 #tudtf-lab .tl-free-heading strong{font-size:14px}
 #tudtf-lab .tl-progress-labels{font-size:11px;flex-wrap:wrap}
 #tudtf-lab .tl-dialog-content>h2{font-size:25px}
 #tudtf-lab .tl-popup-item-name{font-size:14px;line-height:1.4}
 #tudtf-lab .tl-popup-item-price{font-size:15px}
 #tudtf-lab .tl-popup-item-files{font-size:12px}
 #tudtf-lab .tl-popup-item-actions>button{font-size:13px;min-height:44px}
 #tudtf-lab .tl-dialog-actions .tl-buy,#tudtf-lab .tl-dialog-actions .tl-secondary{font-size:14px;min-height:52px}
}
@media(max-width:360px){
 #tudtf-lab{padding-left:12px;padding-right:12px}
 #tudtf-lab .tl-config>h1{font-size:25px}
 #tudtf-lab .tl-step{padding:16px 12px}
 #tudtf-lab .tl-drop-design{padding:18px 12px}
 #tudtf-lab .tl-drop-copy{min-width:125px}
 #tudtf-lab .tl-drop-copy>strong{font-size:20px}
 #tudtf-lab .tl-methods button,#tudtf-lab .tl-methods .tl-constructor{font-size:13px}
 #tudtf-lab .tl-price-inline>.tl-price-test{margin-left:0}
}

/* Recent designs are a secondary history link on mobile, not a second method selector. */
#tudtf-lab .tl-source-mobile{display:none}
@media(max-width:900px){
 #tudtf-lab #tl-upload-panel{display:flex;flex-direction:column}
 #tudtf-lab .tl-upload-source{display:none}
 #tudtf-lab .tl-source-mobile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;order:2;margin-top:18px;padding-top:14px;border-top:1px solid var(--tl-line)}
 #tudtf-lab .tl-source-mobile-caption{font-size:12px;line-height:1.5;color:var(--tl-sub)}
 #tudtf-lab .tl-source-mobile>button{display:flex;align-items:center;gap:7px;background:none;border:0;box-shadow:none;border-radius:4px;padding:8px 0;min-height:44px;color:var(--tl-red);font-size:14px;line-height:1.4;font-weight:600;text-align:left}
 #tudtf-lab .tl-source-mobile>button>span:not([aria-hidden]){text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
 #tudtf-lab .tl-source-mobile>button>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
 #tudtf-lab .tl-source-mobile>[data-source-mobile=new]{display:none}
 #tudtf-lab #tl-upload-panel:has([data-recent-designs]:not([hidden]))>.tl-source-mobile{order:-1;margin-top:0;padding-top:0;border-top:0;padding-bottom:12px}
 #tudtf-lab #tl-upload-panel:has([data-recent-designs]:not([hidden])) .tl-source-mobile-caption,
 #tudtf-lab #tl-upload-panel:has([data-recent-designs]:not([hidden])) [data-source-mobile=recent]{display:none}
 #tudtf-lab #tl-upload-panel:has([data-recent-designs]:not([hidden])) [data-source-mobile=new]{display:flex}
 #tudtf-lab [data-new-designs]:focus,#tudtf-lab [data-recent-designs]:focus{outline:none}
}

/* Mobile cart confirmation: keep totals clear and action labels on one line. */
@media(max-width:900px){
 #tudtf-lab .tl-dialog-head{position:sticky;top:0;z-index:5;background:#fff;padding:4px 0 10px;margin-bottom:12px;border-bottom:1px solid var(--tl-line)}
 #tudtf-lab .tl-dialog-head>button{position:static;top:auto;right:auto;flex:none;min-width:40px;min-height:40px;margin-left:auto;box-shadow:none;background:#f7f7f8;border-radius:50%;display:grid;place-items:center;padding:0}
 #tudtf-lab .tl-dialog-actions{position:static;display:grid;grid-template-columns:1fr;gap:8px;padding:0;margin-top:16px;background:transparent;box-shadow:none}
 #tudtf-lab .tl-dialog-actions .tl-buy{min-height:52px;margin:0;font-size:16px;padding:13px 12px;justify-content:center;gap:10px;white-space:nowrap}
 #tudtf-lab .tl-dialog-actions .tl-buy b{white-space:nowrap}
 #tudtf-lab .tl-dialog-actions .tl-secondary{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;font-size:14px;padding:10px 12px;white-space:nowrap}
 #tudtf-lab .tl-dialog-note{font-size:12px;line-height:1.5;margin-top:9px}
 #tudtf-lab .tl-popup-edit-actions>button{font-size:14px;min-height:44px}
}
