/* OrthoPattes UK – size guide pop-up (checkout + landing). Scoped to .osg-* only. */
html.osg-lock{overflow:hidden}
.osg-dlg{border:0;padding:0;margin:auto;width:min(980px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border-radius:18px;background:#fff;color:#61172a;box-shadow:0 24px 70px rgba(97,23,42,.35);font-family:Poppins,system-ui,sans-serif;font-size:14px;line-height:1.5;overflow:hidden}
.osg-dlg[open]{display:flex;flex-direction:column;animation:osgIn .18s ease-out}
.osg-dlg::backdrop{background:rgba(60,14,26,.55)}
@keyframes osgIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.osg-dlg[open]{animation:none}}
.osg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid #f0d9bf;background:#fff;flex:0 0 auto}
.osg-head h2{margin:0;font-family:Fredoka,Poppins,sans-serif;font-weight:600;font-size:24px;color:#61172a;line-height:1.2}
.osg-x{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:2px solid #fff;background:#de4508;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:rgba(97,23,42,.28) 0 4px 12px;padding:0}
.osg-x:hover{background:#b93a06}
.osg-x svg{width:18px;height:18px;stroke:#fff;stroke-width:3.2;stroke-linecap:round;fill:none}
.osg-dlg :focus-visible{outline:3px solid #faad1d;outline-offset:2px}
.osg-body{padding:18px 20px 22px;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.osg-finder{border:2px solid #de4508;border-radius:14px;padding:16px 18px;background:#fff8ef;margin-bottom:18px}
.osg-finder h3,.osg-card h3{margin:0 0 2px;font-family:Fredoka,Poppins,sans-serif;font-weight:600;font-size:19px;color:#61172a}
.osg-sm{font-size:12.5px;color:#7a4a55;margin:0}
.osg-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.osg-row label{display:block;font-weight:600;font-size:13px;margin-bottom:5px}
.osg-row input,.osg-apply select{width:100%;box-sizing:border-box;height:46px;border:1.5px solid #f0d9bf;border-radius:10px;padding:0 12px;font:inherit;font-size:16px;color:#61172a;background:#fff}
.osg-row input:focus,.osg-apply select:focus{border-color:#de4508;outline:none;box-shadow:0 0 0 3px rgba(222,69,8,.18)}
.osg-out{margin-top:10px;min-height:0}
.osg-out:empty{display:none}
.osg-out p{margin:0 0 8px}
.osg-out .ok{color:#b93a06;font-weight:700}
.osg-out .warn{color:#8a5a00}
.osg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:0;border-radius:10px;background:#de4508;color:#fff;font-family:Fredoka,Poppins,sans-serif;font-weight:600;font-size:16px;cursor:pointer;box-shadow:rgba(97,23,42,.22) 0 4px 12px}
.osg-btn:hover{background:#b93a06}
.osg-apply{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:13px;font-weight:600}
.osg-apply[hidden]{display:none}
.osg-apply select{width:auto;min-width:150px;height:40px;font-size:14px}
.osg-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:18px;align-items:start}
.osg-card{background:#fbeedc;border:1px solid #f0d9bf;border-radius:14px;padding:16px 18px}
.osg-card svg{display:block;width:100%;max-width:300px;height:auto;margin:6px auto 4px}
.osg-steps{margin:8px 0 0;padding-left:20px}
.osg-steps li{margin:0 0 8px}
.osg-tbl{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #f0d9bf;border-radius:14px;overflow:hidden;background:#fff}
.osg-tbl th,.osg-tbl td{padding:10px 12px;text-align:left;border-bottom:1px solid #f0d9bf;vertical-align:middle}
.osg-tbl tr:last-child td{border-bottom:0}
.osg-tbl thead th{background:#fde8c8;font-size:12px;letter-spacing:.4px;text-transform:uppercase;font-weight:600}
.osg-tbl td:first-child{font-family:Fredoka,Poppins,sans-serif;font-weight:600;font-size:16px}
.osg-tbl td small{color:inherit;font-size:inherit;white-space:nowrap}
.osg-tbl tr.rec td{background:#fff1e3}
.osg-tbl tr.rec td:first-child{box-shadow:inset 4px 0 0 #de4508}
.osg-tbl tr.cur td:first-child::after{content:" ✓";color:#de4508}
.osg-pick{background:none;border:0;padding:8px 2px;min-height:40px;font:inherit;font-weight:700;color:#b93a06;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.osg-pick:hover{color:#de4508}
.osg-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.osg-note{font-size:12.5px;color:#7a4a55;margin:10px 0}
.osg-warnbox{background:#fff6dd;border:1px solid #f3d58a;border-radius:12px;padding:12px 14px;font-size:13.5px;color:#61172a}
.osg-foot{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.osg-foot a{color:#61172a;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.osg-foot summary{cursor:pointer;font-weight:700;color:#61172a;min-height:32px;display:flex;align-items:center}
.osg-foot details img{display:block;width:100%;max-width:560px;height:auto;margin-top:10px;border-radius:12px;border:1px solid #f0d9bf}
@media (max-width:760px){
 .osg-dlg{width:100vw;max-width:100vw;max-height:94dvh;margin:auto 0 0;border-radius:18px 18px 0 0}
 .osg-head{padding:12px 14px 12px 16px}
 .osg-head h2{font-size:20px}
 .osg-body{padding:14px 14px calc(20px + env(safe-area-inset-bottom))}
 .osg-grid{grid-template-columns:1fr}
 .osg-tbl th,.osg-tbl td{padding:9px 8px;font-size:13px}
 .osg-tbl td small{display:block}
}
@media (max-width:380px){.osg-row{grid-template-columns:1fr}}
/* v9: prominent size guide button at the top of the size picker */
.sg-cta{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:9px 12px;border:2px solid #de4508;background:#fff3e8;color:#61172a;border-radius:12px;font:600 15.5px/1.25 Fredoka,Poppins,sans-serif;cursor:pointer;text-align:left;box-shadow:0 3px 10px rgba(222,69,8,.16);transition:background .2s,color .2s}
.sg-cta svg{flex:0 0 auto;width:32px;height:32px;padding:6px;box-sizing:border-box;border-radius:50%;background:#de4508;stroke:#fff;fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.sg-cta b{font-weight:700;color:#de4508;text-transform:uppercase;letter-spacing:.3px}
.sg-cta .sg-go{margin-left:auto;flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:#de4508;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;padding-bottom:2px;box-sizing:border-box}
.sg-cta:hover{background:#de4508;color:#fff}
.sg-cta:hover b{color:#fff}
.sg-cta:hover svg,.sg-cta:hover .sg-go{background:#fff;stroke:#de4508;color:#de4508}
.sg-cta:focus-visible{outline:3px solid #faad1d;outline-offset:2px}
@keyframes sgPulse{0%{box-shadow:0 0 0 0 rgba(222,69,8,.55)}70%{box-shadow:0 0 0 12px rgba(222,69,8,0)}100%{box-shadow:0 3px 10px rgba(222,69,8,.16)}}
html:not(.sg-seen) .sg-cta{animation:sgPulse 1.4s ease-out .8s 2}
@media (prefers-reduced-motion:reduce){html:not(.sg-seen) .sg-cta{animation:none}.sg-cta{transition:none}}
