/* Button: same look as the old ct-size-guide button (a.button_sg, skin 1), our ruler icon. */
a.ost-open{float:left;display:inline-flex;align-items:center;gap:.5em;font-weight:normal;text-decoration:none;padding:10px 15px;color:#1a1a1a;background:#fff;border:1px solid #e5e5e5;cursor:pointer}
a.ost-open:hover,a.ost-open:focus{color:#1a1a1a;text-decoration:none;border-color:#c9c9c9}
.ost-clear{clear:both;height:1em}
.woocommerce-variation-price .ost-open{display:none}
.ost-icon{flex:none;width:1.1em;height:1.1em;border:2px solid currentColor;border-radius:2px;background:linear-gradient(currentColor,currentColor) 50% 33%/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 33% 50%/2px 100% no-repeat}

/* Source block in the page HTML: hidden until JS moves it into the dialog. */
.ost-source{display:none}
.ost-noscript .ost-source{display:block}

/* Measuring scheme: square file 500x500 (= 2x), shown at 250x250; spacing via CSS only. */
.ost-scheme{margin:0 auto 1.2em;text-align:center}
.ost-scheme img{display:inline-block;width:250px;height:auto;max-width:100%;aspect-ratio:1/1}
.ost-note{margin:0 0 .8em}
.ost-title{font-size:1.05em;margin:1.2em 0 .5em}
.ost-scroll{position:relative;margin:0 0 1em}
.ost-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
/* separate borders: with border-collapse:collapse sticky cells lose/shift their borders while scrolling */
.ost-table{border-collapse:separate;border-spacing:0;width:100%;margin:0;border-top:1px solid #e5e5e5;border-left:1px solid #e5e5e5}
.ost-table th,.ost-table td{border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding:.45em .7em;text-align:center;vertical-align:middle;color:#000;background:#fff}
.ost-table td{white-space:nowrap}
.ost-table thead th{background:#f5f7f9;font-weight:600}
/* first column fixed while the rest scrolls: header cell AND body cells, same column => same width */
.ost-table th:first-child{position:sticky;left:0;z-index:1;background:#fafafa;font-weight:600;white-space:nowrap}
.ost-table thead th:first-child{z-index:2;background:#f5f7f9;white-space:normal}
.ost-scrolled .ost-table th:first-child{box-shadow:3px 0 4px -2px rgba(0,0,0,.18)}
.ost-table tr.ost-hit th,.ost-table tr.ost-hit td{background:#2C72AD;color:#fff}
/* "more to the right" cue: fade on the right edge + hint under the table (only when the table really overflows) */
.ost-scroll::after{content:"";position:absolute;top:0;right:0;width:28px;height:calc(100% - 1.9em);pointer-events:none;background:linear-gradient(to right,rgba(255,255,255,0),rgba(255,255,255,.95));opacity:0;transition:opacity .2s}
.ost-scroll.ost-more-right::after{opacity:1}
.ost-hint{display:none;margin:.4em 0 0;font-size:.85em;color:#666;text-align:right}
.ost-hint span{display:inline-block;color:#2C72AD;font-weight:700;animation:ost-nudge 1.4s ease-in-out 3}
.ost-scroll.ost-overflow .ost-hint{display:block}
.ost-scroll.ost-overflow:not(.ost-more-right) .ost-hint{visibility:hidden}
@keyframes ost-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}
@media (prefers-reduced-motion:reduce){.ost-hint span{animation:none}}

dialog.ost-dialog{border:0;padding:1.4em 1.6em;width:min(680px,94vw);max-height:90vh;box-shadow:0 10px 40px rgba(0,0,0,.3)}
dialog.ost-dialog::backdrop{background:rgba(0,0,0,.55)}
.ost-dialog .ost-source{display:block}
.ost-dialog-head{position:sticky;top:-1.4em;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:1em;margin:-1.4em -1.6em .8em;padding:.5em .6em .5em 1.6em;background:#fff;border-bottom:1px solid #eee}
.ost-heading{margin:0;font-size:1.15em;font-weight:600;line-height:1.3}
.ost-source>.ost-heading{margin:0 0 .8em}
.ost-close{flex:none;background:none;border:0;font-size:1.9em;line-height:1;cursor:pointer;padding:0 .25em;margin:0;color:#333;min-width:44px;min-height:44px}
dialog.ost-dialog{overscroll-behavior:contain}
html.ost-lock,html.ost-lock body{overflow:hidden}
/* phone: full screen; svh = height WITHOUT the browser bar, so the window does not jump when the bar hides/shows */
@media (max-width:600px){dialog.ost-dialog{width:100vw;max-width:100vw;height:100vh;height:100svh;max-height:100vh;max-height:100svh;margin:0;padding:1em}.ost-dialog-head{top:-1em;margin:-1em -1em .8em;padding:.3em .3em .3em 1em}}
