
/* ITM-GGPH-V1 (4 Dec 2026, Sirot: the sign-in / sign-up buttons jump while the page loads - check the Google button).
   The Google button is drawn by Google a moment after the page; before that the old red "Google Login" button (register page) showed and then vanished, so LINE/Facebook jumped up,
   and the space then sat empty until Google drew. Now: the Google spot has its place from the start with a plain white button outline that Google draws over;
   the old button stays hidden unless Google has not drawn after 7 s (html.itm-gg-fail - then everything is as before, the old button is the way in). */
html:not(.itm-gg-fail) body .regis #itm-gg-gis:not(#itm-z){display:flex !important;justify-content:center !important;width:100% !important;max-width:none !important;height:50px !important;min-height:50px;visibility:visible !important;overflow:visible !important;margin:12px 0 6px !important;position:relative} /* V1-2: full width + centred, like LINE / Facebook (was 400px wide stuck to the left on wide login cards) */
html:not(.itm-gg-fail) body .regis #itm-gg-gis:not(#itm-z)::before{content:"";position:absolute;left:50%;top:5px;width:min(100%,400px);height:40px;/* V1-1: Google's own button is 40px tall in its 44px frame - at 44px the outline showed as a double line */transform:translateX(-50%);box-sizing:border-box;border:1px solid #dadce0;border-radius:4px;background:#fff;z-index:0;pointer-events:none}
html body .regis #itm-gg-gis > *{position:relative;z-index:1}
html:not(.itm-gg-fail) body .regis #customBtn,html:not(.itm-gg-fail) body .regis #itm-gg-top{display:none !important}
html.itm-gg-fail body .regis #itm-gg-gis:not(.on){display:none !important}
/* V1-3 (Sirot: the Google spot still blinks while loading): the stand-in now looks like Google's own button (logo + the same words), and Google's frame stays invisible
   until it has been drawn for a moment (.itm-gg-ready, set by the script below), then fades in over it - one quiet change instead of empty box -> blank frame -> button */
html:not(.itm-gg-fail) body .regis #itm-gg-gis:not(#itm-z)::after{content:"ลงชื่อเข้าใช้ด้วย Google";position:absolute;left:50%;top:5px;height:40px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);box-sizing:border-box;padding-left:26px;display:flex;align-items:center;white-space:nowrap;overflow:hidden;background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cpath fill=%22%23EA4335%22 d=%22M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z%22/%3E%3Cpath fill=%22%234285F4%22 d=%22M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z%22/%3E%3Cpath fill=%22%23FBBC05%22 d=%22M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z%22/%3E%3Cpath fill=%22%2334A853%22 d=%22M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z%22/%3E%3C/svg%3E") left center/18px 18px no-repeat;font:500 14px/1 "Google Sans",Roboto,Arial,sans-serif;color:#3c4043;letter-spacing:.25px;z-index:0;pointer-events:none}
html:not(.itm-gg-fail) body .regis #itm-gg-gis:not(#itm-z)[data-old="customBtn"]::after{content:"ลงชื่อสมัครใช้ด้วย Google"}
html[lang^="en"]:not(.itm-gg-fail) body .regis #itm-gg-gis:not(#itm-z)::after{content:"Sign in with Google"}
html[lang^="en"]:not(.itm-gg-fail) body .regis #itm-gg-gis[data-old="customBtn"]:not(#itm-z)::after{content:"Sign up with Google"}
html body .regis #itm-gg-gis iframe{opacity:0;transition:opacity .18s ease}
html body .regis #itm-gg-gis.itm-gg-ready iframe,html.itm-gg-fail body .regis #itm-gg-gis iframe{opacity:1}
