/* «Βρες το μέγεθός σου» popup (product/product_megethologio_shoes.twig, javascript/size_finder.js).
   Same file on every site: copy it as is. Change it -> bump ?v= in controller/product/product.php.
   Text follows the product page's scale, with the site's classes in the twig; one role = one size:
     modal title      .modal-title.h4            24px (14px on phones, product.css)  = the other modals
     the answer «44»  .h2                        32px                                = the price
     headings/labels  .font-weight-bold.text-dark 16px                               = «Διαθεσιμότητα σε κατάστημα», the brand
     text, inputs     body                       16px #667                           = description, size select
     meta, notes      .small                     ~13px                               = «για παραγγελίες άνω των…»
     button           .btn-primary.text-uppercase 16px / 600                        = «Προσθήκη»
   This file only does the layout and the colours. */

/* square corners everywhere, as the rest of the site (rounded-0) */
#myModal .modal-content, #myModal .modal-content * { border-radius:0; }

/* tabs: like the page's text buttons («Διαθεσιμότητα σε κατάστημα»): 16px / 600 */
#myModal .sf-tabs { display:inline-flex; background:#f3f2ef; padding:4px; }
#myModal .sf-tabs button { border:0; background:transparent; color:#667; font-weight:600; font-size:1rem; padding:8px 14px; min-height:40px; }
#myModal .sf-tabs button.active { background:#fff; color:var(--prim-col-normal, #000); box-shadow:0 1px 3px rgba(0,0,0,.12); }
#myModal .sf-range { width:100%; accent-color:var(--prim-col-normal, #000); height:28px; }

#myModal .sf-wear { gap:8px; }
#myModal .sf-wear select { width:auto; }
#myModal .sf-wear #sf-obrand { max-width:60%; }

#myModal .sf-stage-box { background:#f7f6f3; padding:14px 16px 10px; }
#myModal .sf-stage-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
/* horizontal: ruler underneath (0 cm at the left), heel at 0, toes to the right; size_finder.js sets the px sizes
   (width = cm on the ruler, height from the picture's proportions) and the stage height */
#myModal .sf-stage { position:relative; height:200px; margin-top:6px; }
#myModal .sf-shape { position:absolute; left:0; bottom:30px; transition:width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1); }
#myModal .sf-shape svg { display:block; width:100%; height:100%; overflow:visible; }
#myModal .sf-foot { width:72%; height:150px; }
/* where the size ends: a dashed line at its cm, its name on top; the gap from the toes to it = the room (ok/warn/bad) */
#myModal .sf-mark { position:absolute; top:22px; bottom:30px; left:75%; width:0; border-left:2px dashed var(--prim-col-normal, #000); transition:left .35s cubic-bezier(.2,.8,.2,1); }
#myModal .sf-mark-label { position:absolute; top:-22px; left:0; transform:translateX(-50%); white-space:nowrap; }
#myModal .sf-gap { position:absolute; bottom:30px; height:14px; left:72%; width:3%; background:#e5f4ea; transition:left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1); }
#myModal .sf-gap.warn { background:#fff4db; }
#myModal .sf-gap.bad { background:#fdecea; }
/* the foot: a still three-quarter render of a 3D model (image/size_finder/README.txt in the site root), 2x for sharp screens */
#myModal .sf-foot-img { width:100%; height:100%; background:url(../../../../../image/size_finder/foot_1000.webp?v=4) left bottom / 100% 100% no-repeat; background-image:-webkit-image-set(url(../../../../../image/size_finder/foot_500.webp?v=4) 1x, url(../../../../../image/size_finder/foot_1000.webp?v=4) 2x); background-image:image-set(url(../../../../../image/size_finder/foot_500.webp?v=4) 1x, url(../../../../../image/size_finder/foot_1000.webp?v=4) 2x); filter:drop-shadow(2px 4px 4px rgba(0,0,0,.22)); }
#myModal .sf-ruler { position:absolute; left:0; right:0; bottom:0; height:30px; border-top:2px solid var(--prim-col-normal, #000); }
#myModal .sf-tick { position:absolute; top:0; width:1px; background:var(--prim-col-normal, #000); }
#myModal .sf-tick span { position:absolute; top:14px; left:-10px; width:20px; text-align:center; font-size:80%; line-height:16px; }
/* size buttons: the number in the body size, the cm as <small> */
#myModal .sf-sizes { display:flex; flex-wrap:wrap; gap:8px; }
#myModal .sf-size { min-width:62px; min-height:54px; border:1px solid #cfccc6; background:#fff; color:var(--prim-col-normal, #000); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:4px 8px; line-height:1.15; }
#myModal .sf-size small { color:inherit; opacity:.75; }
#myModal .sf-size.rec { border:2px solid var(--prim-col-normal, #000); }
#myModal .sf-size.sel { background:var(--prim-col-normal, #000); color:#fff; border-color:var(--prim-col-normal, #000); }
#myModal .sf-size.out { background:#f3f2ef; color:#8c9096; border-style:dashed; }
#myModal .sf-size.out b { text-decoration:line-through; }

#myModal .sf-rec { background:#fbfaf8; border:1px solid #eceae6; padding:16px 18px; }
#myModal .sf-rec-head { gap:10px; }
#myModal .sf-rec-size { line-height:1; }
#myModal .sf-pick { font-weight:600; } /* as «Προσθήκη» */
#myModal .sf-fit { display:inline-block; padding:4px 12px; }
#myModal .sf-fit.ok { color:#0f6b3a; background:#e5f4ea; }
#myModal .sf-fit.warn { color:#8a5a00; background:#fff4db; }
#myModal .sf-fit.bad { color:#b42318; background:#fdecea; }

/* phones: the suggestion repeated under the inputs */
#myModal .sf-quick { background:#fbfaf8; border:1px solid #eceae6; padding:10px 14px; }

/* «Το νούμερό σου εδώ: 44» next to the size chart button: body text, like that button */
.sf-hint { display:inline-block; margin-left:10px; }
.sf-hint.ok { color:#0f6b3a; }
.sf-hint.warn { color:#8a5a00; }
.sf-hint-pick { font-weight:700; text-decoration:underline; color:inherit; }
