/* The mascot sits beside the search border, independently of the brand lockup. */
.site-search{position:relative}
.site-search .search-mascot{position:absolute;left:-88px;bottom:-20px;width:88px;height:88px;z-index:12}
.search-mascot-link{display:block;width:100%;height:100%;border-radius:12px;touch-action:manipulation}
.search-mascot-art,.search-mascot-body,.search-mascot-arm{position:absolute;inset:0;display:block;pointer-events:none}
.search-mascot-body,.search-mascot-arm{background-image:url('../images/brand/mobigu-search-cutout-v2.webp');background-size:100% 100%;background-repeat:no-repeat}
.search-mascot-body{background-position:center;clip-path:polygon(0 0,100% 0,100% 29%,75.1% 29%,75.1% 53%,100% 53%,100% 100%,0 100%)}
.search-mascot-arm{background-position:center;clip-path:polygon(75.1% 29%,100% 29%,100% 53%,75.1% 53%);transform-origin:75.2% 47.6%;transform:rotate(0)}
.search-mascot.is-waving .search-mascot-arm{animation:mobigu-search-wave .85s ease-in-out 2}
@keyframes mobigu-search-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-18deg)}65%{transform:rotate(16deg)}}
.search-mascot-link:focus-visible{outline:2px solid #df4035;outline-offset:1px}
.search-mascot .search-mascot-bubble{position:absolute;left:62px;bottom:72px;box-sizing:border-box;width:228px;padding:12px 29px 12px 14px;border:1px solid #eaded9;border-radius:13px;background:#fff8f5;box-shadow:0 5px 18px #39282016;color:#383037;font-size:12px;line-height:1.5;white-space:normal;text-align:left}
.search-mascot .search-mascot-bubble[hidden]{display:none}
.search-mascot-bubble:after{content:"";position:absolute;left:14px;bottom:-6px;width:10px;height:10px;background:#fff8f5;border-right:1px solid #eaded9;border-bottom:1px solid #eaded9;transform:rotate(45deg)}
.search-mascot-bubble>a{display:block;width:fit-content;margin-top:4px;color:#b82d24;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.search-mascot .search-mascot-bubble .search-mascot-close{position:absolute;right:2px;top:2px;width:28px;height:28px;min-height:0;padding:0;display:grid;place-items:center;border:0;background:transparent;font-size:22px;line-height:1;color:#6d6268;cursor:pointer}
@media(min-width:901px){.search-mascot .search-mascot-bubble{bottom:3px;left:80px;transform:translateY(100%);margin-bottom:-8px}.search-mascot-bubble:after{top:-6px;bottom:auto;transform:rotate(225deg)}}
/* A separate sibling link beside the unchanged logo image on mobile. */
.brand>.search-mascot--mobile{display:none}
@media(max-width:900px){
 .header-main>.site-search{padding-left:0}
 .site-search .search-mascot{display:none}
 .header-main>.brand{gap:4px}
 .header-main>.brand>a:first-child img{width:128px}
 .brand>.search-mascot--mobile{display:block;position:relative;width:40px;height:48px;flex:0 0 40px;z-index:12}
 .search-mascot--mobile .search-mascot-art{top:4px;bottom:4px}
 .search-mascot--mobile .search-mascot-bubble{left:auto;right:-28px;top:112px;bottom:auto;width:min(228px,calc(100vw - 34px));transform:none;margin:0}
 .search-mascot--mobile .search-mascot-bubble:after{top:-6px;bottom:auto;left:auto;right:40px;transform:rotate(225deg)}
}
:is(.mobigu-checkout-page,.mobigu-order-received-page,.mobigu-payment-switch-page) .brand>.search-mascot--mobile{display:none!important}
@media(prefers-reduced-motion:reduce){.search-mascot.is-waving .search-mascot-arm{animation:none!important}}
/* Reserve the character's own space in the tighter tablet search column. */
@media(min-width:901px) and (max-width:1200px){.header-main>.site-search{margin-left:88px;min-width:0}}

/* Mobile-only frontal pose. Desktop cutout, mask, geometry and animation stay unchanged. */
@media(max-width:900px){
 .search-mascot--mobile .search-mascot-link{-webkit-tap-highlight-color:transparent}
 .search-mascot--mobile .search-mascot-body,.search-mascot--mobile .search-mascot-arm{background-image:url('../images/brand/mobigu-mobile-front-v1.webp')}
 .search-mascot--mobile .search-mascot-body{clip-path:polygon(0 0,100% 0,100% 30%,73.5% 30%,73.5% 54%,100% 54%,100% 100%,0 100%)}
 .search-mascot--mobile .search-mascot-arm{clip-path:polygon(73.5% 30%,100% 30%,100% 54%,73.5% 54%);transform-origin:73.6% 50.2%}
}

/* Desktop-only support pose: the resting hand and body never float. */
@media(min-width:901px){
 .site-search .search-mascot{left:-84px}
 .site-search .search-mascot-body,.site-search .search-mascot-arm{background-image:url('../images/brand/mobigu-desktop-rest-v1.webp')}
 .site-search .search-mascot-body{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 52%,19.8% 52%,19.8% 30%,0 30%)}
 .site-search .search-mascot-arm{clip-path:polygon(0 30%,19.8% 30%,19.8% 52%,0 52%);transform-origin:19.8% 48.6%}
 .site-search .search-mascot:not(.is-waving) .search-mascot-arm{animation:mobigu-search-desktop-idle 2.8s ease-in-out infinite}
}
@keyframes mobigu-search-desktop-idle{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@media(min-width:901px) and (prefers-reduced-motion:reduce){.site-search .search-mascot .search-mascot-arm{animation:none!important;transform:none}}

/* Eyelids sample an adjacent unprinted cardboard area from the same current asset. */
.search-mascot-eyelid{position:absolute;display:block;width:7.17703349%;height:10.52631579%;background-image:inherit;background-repeat:no-repeat;background-size:1393.333333% 950%;background-position:51.546392% 32.531194%;border-radius:50%;mask-image:radial-gradient(ellipse at center,#000 94%,transparent 100%);opacity:0;pointer-events:none;animation:mobigu-mascot-blink 4.8s linear infinite}
.search-mascot-eyelid--left{left:39.79266348%;top:30.54226475%}
.search-mascot-eyelid--right{left:58.93141946%;top:28.78787879%}
.search-mascot-eyelid>i{position:absolute;left:12%;right:12%;top:42%;height:20%;border-bottom:.6px solid #49362b;border-radius:0 0 50% 50%;transform:rotate(-6deg)}
@keyframes mobigu-mascot-blink{0%,44.99%{opacity:0}45%,48%{opacity:1}48.01%,100%{opacity:0}}
@media(max-width:900px){
 .search-mascot--mobile .search-mascot-eyelid{height:11.00478469%;background-size:1393.333333% 908.695652%;background-position:50.257732% 34.856631%;top:31.02073365%}
 .search-mascot--mobile .search-mascot-eyelid--left{left:36.12440191%}
 .search-mascot--mobile .search-mascot-eyelid--right{left:55.90111643%}
 .search-mascot--mobile .search-mascot-eyelid>i{border-bottom-width:.45px;transform:none}
}
@media(prefers-reduced-motion:reduce){.search-mascot-eyelid{animation:none!important;opacity:0!important}}
