/* Custom-size checkout: compact first screen, scoped to this editor only. */
@media(max-width:600px){
 body:has(.custom-batch) .whatsapp{display:none!important}
 html body #main-content[data-page="sur-mesure"]{padding:8px 12px 24px!important}
 html body #main-content[data-page="sur-mesure"]>.breadcrumb{display:none}
 html body .custom-print-page.custom-batch{padding:0;margin:0 auto;width:100%;max-width:100%}
 html body .custom-print-page.custom-batch>.cb-heading{min-height:0;height:auto;margin:0 0 8px;padding:0;border:0}
 html body .custom-batch>.cb-heading>p{display:none}
 html body .custom-batch>.cb-heading>h1{font-size:20px;line-height:1.2;margin:0;font-weight:700}
 html body .custom-batch>.cb-step:not(:has(.cb-photos)){padding:10px 12px;margin:8px 0;border-radius:12px}
 html body .custom-batch>.cb-step h2{font-size:20px;line-height:1.2;gap:8px;margin:0 0 6px}
 html body .custom-batch .cb-number{width:26px;height:26px;font-size:17px}
 html body .custom-batch>.cb-step>p{font-size:15px;line-height:1.3;margin:4px 0}
 html body .custom-batch #custom-dimensions>p:not([role="status"]){display:none}
 html body .custom-batch .cb-dimensions{margin:8px 0 4px;gap:8px;max-width:none}
 html body .custom-batch .cb-dimensions>.field{font-size:15px;gap:4px;margin:0}
 html body .custom-batch .cb-dimensions>span{padding-top:22px;font-size:18px}
 html body .custom-batch .cb-dimensions input{height:48px;min-height:48px;font-size:20px;padding:8px 10px;border-radius:8px}
 html body .custom-batch .cb-size{font-size:14px;line-height:1.3;padding:6px 8px;margin:6px 0}
 html body .custom-batch .cb-size span{display:inline;margin-left:4px}
 html body .custom-batch .cb-import{margin:6px 0 0}
 html body .custom-batch .cb-import>.cb-tip{display:none}
 html body .custom-batch .cb-import .upload-zone{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:48px;height:48px;padding:8px 12px;margin:0;border:0;border-radius:8px;background:#697c09;color:#fff}
 html body .custom-batch .cb-import .upload-zone>svg{width:20px;height:20px;flex-shrink:0}
 html body .custom-batch .cb-import .upload-zone>strong{font-size:16px;line-height:1.2}
 html body .custom-batch .cb-import .upload-zone>span{display:none}
 html body .custom-batch:not(:has(.cb-photos)) .primary,html body .custom-batch:not(:has(.cb-photos)) .secondary{min-height:48px;padding:9px 12px;font-size:16px;line-height:1.25}
 html body .custom-batch>.cb-step>button.primary,html body .custom-batch .cb-import>button{width:100%}
 html body .custom-batch .cb-confirm>.cb-tip{display:none}
 html body .custom-batch .cb-total{margin:6px 0;gap:8px;font-size:15px;line-height:1.2}
 html body .custom-batch .cb-total strong{font-size:23px}
 html body .custom-batch .cb-total small{display:inline;font-size:12px;margin-left:5px}
 html body .custom-batch .cb-message{margin-top:5px}
 html body .custom-batch .cb-message summary{min-height:26px;font-size:13px}

}
/* Local kiosks use the same editor with larger touch targets. */
html body.physical-kiosk .custom-print-page.custom-batch{padding:8px 18px 20px}
html body.physical-kiosk .custom-batch>.cb-heading{min-height:0;height:auto;margin:0 0 10px}
html body.physical-kiosk .custom-batch>.cb-heading>p{display:none}
html body.physical-kiosk .custom-batch>.cb-heading>h1{font-size:26px;margin:0;line-height:1.2}
html body.physical-kiosk .custom-batch>.cb-step{padding:14px 18px;margin:10px 0}
html body.physical-kiosk .custom-batch>.cb-step h2{font-size:23px;margin-bottom:8px}
html body.physical-kiosk .custom-batch #custom-dimensions>p:not([role="status"]){display:none}
html body.physical-kiosk .custom-batch .cb-dimensions{margin:8px 0;max-width:620px}
html body.physical-kiosk .custom-batch .cb-dimensions input{height:52px;padding:8px 12px}
html body.physical-kiosk .custom-batch .cb-import{margin:8px 0}
html body.physical-kiosk .custom-batch .cb-import>.cb-tip{display:none}
html body.physical-kiosk .custom-batch .cb-size{padding:8px 12px;margin:6px 0}
html body.physical-kiosk .custom-batch .cb-total{margin:8px 0}
html body.physical-kiosk .custom-batch .cb-confirm>.cb-tip{display:none}

/* Dimensions and basket on the right; photos on the left. Shared spacing and controls. */
html body:not(.physical-kiosk) .custom-batch>.cb-step{border-radius:14px}
html body:not(.physical-kiosk) .custom-batch>.cb-step h2{font-size:18px;font-weight:600;line-height:1.35;gap:8px;letter-spacing:-.3px}
html body:not(.physical-kiosk) .custom-batch .cb-number{width:26px;height:26px;font-size:15px;font-weight:600;background:#eff3e3;color:#526509}
html body:not(.physical-kiosk) .custom-batch .cb-dimensions>.field{font-size:14px;font-weight:600}
html body:not(.physical-kiosk) .custom-batch .cb-dimensions input{font-size:18px;font-weight:500;min-height:44px;height:44px;border-radius:8px}
html body:not(.physical-kiosk) .custom-batch .primary,html body:not(.physical-kiosk) .custom-batch .secondary{font-size:15px;font-weight:600;border-radius:8px;line-height:1.3}
@media(min-width:1000px) and (min-height:680px) and (orientation:landscape){
 html body:not(.physical-kiosk) #main-content[data-page="sur-mesure"]{padding:14px 24px 48px!important}
 html body:not(.physical-kiosk) #main-content[data-page="sur-mesure"]>.breadcrumb{display:none}
 html body:not(.physical-kiosk) .custom-print-page.custom-batch{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr);grid-template-rows:auto auto 1fr;gap:14px;align-items:start;max-width:1280px;width:100%;padding:0;margin:0 auto}
 html body:not(.physical-kiosk) .custom-print-page.custom-batch>.cb-heading{grid-column:1/-1;min-height:0;height:auto;max-width:none;padding:0;margin:0;border:0;background:transparent}
 html body:not(.physical-kiosk) .custom-batch>.cb-heading>p{display:none}
 html body:not(.physical-kiosk) .custom-batch>.cb-heading>h1{font-size:23px;font-weight:600;line-height:1.25;margin:0;letter-spacing:-.5px}
 html body:not(.physical-kiosk) .custom-batch>.cb-step{display:flex;flex-direction:column;min-width:0;min-height:0;margin:0;padding:16px;max-height:none;overflow:visible;background:#fff;border:1px solid #dfe5d6;box-shadow:0 3px 14px #25341f04}
 html body:not(.physical-kiosk) .custom-batch>#custom-dimensions{grid-column:2;grid-row:2}
 html body:not(.physical-kiosk) .custom-batch>#custom-dimensions+.cb-step{grid-column:1;grid-row:2/4;min-height:360px}
 html body:not(.physical-kiosk) .custom-batch>.cb-confirm{grid-column:2;grid-row:3}
 html body:not(.physical-kiosk) .custom-batch>.custom-frame-seo{grid-column:1/-1}
 html body:not(.physical-kiosk) .custom-batch>.cb-step h2{margin:0 0 12px;min-height:26px;flex-shrink:0}
 html body:not(.physical-kiosk) .custom-batch>.cb-step>p{font-size:14px;line-height:1.45;margin:6px 0}
 html body:not(.physical-kiosk) .custom-batch #custom-dimensions>p:not([role="status"]){display:none}
 html body:not(.physical-kiosk) .custom-batch .cb-dimensions{margin:4px 0 12px;gap:8px;max-width:none}
 html body:not(.physical-kiosk) .custom-batch .cb-dimensions>.field{gap:6px;margin:0}
 html body:not(.physical-kiosk) .custom-batch .cb-dimensions>span{padding-top:22px;font-size:18px}
 html body:not(.physical-kiosk) .custom-batch .cb-dimensions input{padding:8px 10px}
 html body:not(.physical-kiosk) .custom-batch .cb-dimensions input::placeholder{font-size:16px;font-weight:400}
 html body:not(.physical-kiosk) .custom-batch .cb-size{font-size:13px;line-height:1.4;padding:9px 10px;margin:6px 0;border-radius:8px;background:#f4f6ed}
 html body:not(.physical-kiosk) .custom-batch #custom-dimensions .cb-size span{display:block;margin:6px 0 0;color:#586453}
 html body:not(.physical-kiosk) .custom-batch .cb-import{margin:6px 0}
 html body:not(.physical-kiosk) .custom-batch .cb-import>.cb-tip,html body:not(.physical-kiosk) .custom-batch .cb-confirm>.cb-tip{display:none}
 html body:not(.physical-kiosk) .custom-batch>.cb-step:has(.cb-photos)>p:not(.cb-size){display:none}
 html body:not(.physical-kiosk) .custom-batch .cb-import .upload-zone{min-height:44px;margin:0;padding:8px 12px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;border-radius:8px}
 html body:not(.physical-kiosk) .custom-batch .cb-import .upload-zone>svg{width:20px;height:20px}
 html body:not(.physical-kiosk) .custom-batch .cb-import .upload-zone>strong{font-size:15px;font-weight:600}
 html body:not(.physical-kiosk) .custom-batch .cb-import .upload-zone>span{display:none}
 html body:not(.physical-kiosk) .custom-batch .cb-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:calc(100svh - 405px);overflow-y:auto;scrollbar-gutter:stable;scrollbar-width:auto;padding:2px 3px 4px 0}
 html body:not(.physical-kiosk) .custom-batch .cb-photos:not(:has(>.cb-photo:nth-child(2))){grid-template-columns:minmax(0,1fr)}
 html body:not(.physical-kiosk) .custom-batch .cb-photo{padding:10px;border-radius:10px}
 html body:not(.physical-kiosk) .custom-batch .cb-photo-title{margin:0 0 6px;font-size:14px}
 html body:not(.physical-kiosk) .custom-batch .cb-photo-title button{min-height:28px;padding:4px;font-size:12px}
 html body:not(.physical-kiosk) .custom-batch .cb-preview{height:clamp(130px,calc(100svh - 615px),240px);padding:4px}
 html body:not(.physical-kiosk) .custom-batch .cb-filename{margin:5px 0;font-size:12px}
 html body:not(.physical-kiosk) .custom-batch .primary,html body:not(.physical-kiosk) .custom-batch .secondary{min-height:42px;padding:9px 12px}
 html body:not(.physical-kiosk) .custom-batch .cb-quantity{margin-top:7px;gap:4px}
 html body:not(.physical-kiosk) .custom-batch .cb-quantity button,html body:not(.physical-kiosk) .custom-batch .cb-quantity input{height:36px;width:36px;font-size:15px}
 html body:not(.physical-kiosk) .custom-batch .cb-quantity label{font-size:13px}
 html body:not(.physical-kiosk) .custom-batch .cb-line-price{font-size:12px;margin:6px 0 0}
 html body:not(.physical-kiosk) .custom-batch .cb-message{margin-top:8px}
 html body:not(.physical-kiosk) .custom-batch .cb-message summary{min-height:30px;font-size:13px;line-height:1.4}
 html body:not(.physical-kiosk) .custom-batch .cb-total{margin:22px 0 14px;padding-top:16px;border-top:1px solid #e6e9df;font-size:15px;gap:10px}
 html body:not(.physical-kiosk) .custom-batch .cb-confirm .cb-total{margin-top:16px}
 html body:not(.physical-kiosk) .custom-batch .cb-total strong{font-size:24px;font-weight:600;white-space:nowrap}
 html body:not(.physical-kiosk) .custom-batch .cb-total small{display:block;font-size:12px;margin:3px 0 0}
 html body:not(.physical-kiosk):has(.custom-batch) .whatsapp{display:none}
}
/* Keep the original measuring photograph, then give client photos its place. */
.custom-batch .cb-measure-scene{margin:8px 0 12px;overflow:hidden;border-radius:12px;background:#f4ede3}
.custom-batch .cb-measure-scene img{display:block;width:100%;height:230px;object-fit:contain;background:#f4ede3}
.custom-batch .cb-measure-scene figcaption{font-size:12px;line-height:1.4;padding:9px 12px;color:#66644e;text-align:center;background:#faf7f0}
@media(max-width:600px){
 html body:not(.physical-kiosk) #main-content[data-page="sur-mesure"]{background:#faf8f3;padding:14px 12px 28px!important}
 html body:not(.physical-kiosk) .custom-print-page.custom-batch>.cb-heading{margin:0 2px 12px;background:transparent;box-shadow:none}
 html body:not(.physical-kiosk) .custom-batch>.cb-heading>h1{font-size:22px;font-weight:600;letter-spacing:-.6px;color:#33422e}
 html body:not(.physical-kiosk) .custom-batch>.cb-step{padding:14px;margin:12px 0;border:1px solid #eeece4;border-radius:16px;background:#fff;box-shadow:0 4px 18px #3a422008}
 html body:not(.physical-kiosk) .custom-batch>.cb-step h2{font-size:17px;font-weight:600;margin:0 0 10px;gap:8px;color:#33422e}
 html body:not(.physical-kiosk) .custom-batch .cb-number{width:24px;height:24px;font-size:14px;background:#eef2df;color:#66780d}
 html body:not(.physical-kiosk) .custom-batch>.cb-step>p{font-size:14px;line-height:1.45;color:#626957}
 html body:not(.physical-kiosk) .custom-batch .cb-dimensions>.field{font-size:13px;color:#61684f;font-weight:500;gap:6px}
 html body:not(.physical-kiosk) .custom-batch .cb-dimensions input{height:46px;min-height:46px;font-size:17px;font-weight:500;background:#fff;border-color:#ccd3bc;border-radius:9px}
 html body:not(.physical-kiosk) .custom-batch .cb-size{font-size:13px;padding:8px 10px;background:#f4f6ed;color:#566147;border-radius:9px;margin:8px 0}
 html body:not(.physical-kiosk) .custom-batch .cb-measure-scene{margin:10px 0 12px}
 html body:not(.physical-kiosk) .custom-batch .cb-measure-scene img{height:150px}
 html body:not(.physical-kiosk) .custom-batch .cb-measure-scene figcaption{font-size:11px;padding:7px 8px}
 html body:not(.physical-kiosk) .custom-batch .cb-import .upload-zone,html body:not(.physical-kiosk) .custom-batch .primary{min-height:48px;font-size:15px;line-height:1.3;border-radius:10px;background:linear-gradient(110deg,#697c09,#7a891e);box-shadow:0 3px 8px #697c0918}
 html body:not(.physical-kiosk) .custom-batch .cb-import .upload-zone>strong{font-size:15px;font-weight:600}
 html body:not(.physical-kiosk) .custom-batch .cb-photo{border-color:#e4e8db;border-radius:12px;background:#fff}
 html body:not(.physical-kiosk) .custom-batch .cb-crop{min-height:46px;background:#f5f7ef;border-color:#d6ddc8;color:#52613d}
 html body:not(.physical-kiosk) .custom-batch .cb-confirm{background:#f1f4e8;border-color:#e3e9d5;box-shadow:none}
 html body:not(.physical-kiosk) .custom-batch .cb-total{margin:12px 0;font-size:14px}
 html body:not(.physical-kiosk) .custom-batch .cb-total strong{font-size:23px;font-weight:600}
}
