/* Web layouts adapt to the available space; app-only UI remains separate. */
.wp-cart-favorite{display:none!important}
@media(min-width:521px) and (max-width:999px){
 html:not(.meiai-native) body.single{display:block;padding:0;overflow:hidden}
 html:not(.meiai-native) body.single .all-board{width:100%;max-width:none;padding:0}
 html:not(.meiai-native) body.single .single-toolbar{display:none}
 html:not(.meiai-native) body.single .screen-grid,html:not(.meiai-native) body.single .screen-card{width:100%;height:auto}
 html:not(.meiai-native) body.single .phone{width:100%;height:100dvh;border:0;border-radius:0;box-shadow:none}
 html:not(.meiai-native) body.single #items .nd-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px;padding-inline:16px}
 html:not(.meiai-native) body.single #items .nd-copy h3{font-size:13px;line-height:1.6}
 html:not(.meiai-native) body.single #items .np-banner{margin-inline:16px}
 html:not(.meiai-native) body.single .cat-scroll{max-width:720px;width:100%;margin-inline:auto}
}
@media(min-width:1000px) and (hover:hover) and (pointer:fine){
 html:not(.meiai-native) .ss-stepper>.wp-cart-favorite{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;min-height:36px;max-width:none;margin-left:auto;padding:6px 10px;border:1px solid var(--line,#dfdbe2);border-radius:18px;background:transparent;color:inherit;white-space:nowrap;font-size:11px;cursor:pointer}
 html:not(.meiai-native) .wp-cart-favorite::before{content:'☆';font-size:16px;line-height:1}
 html:not(.meiai-native) .wp-cart-favorite[aria-pressed=true]::before{content:'★'}
 html:not(.meiai-native) .ss-stepper>.wp-cart-favorite+.ss-cart-options{margin-left:0}
 html:not(.meiai-native) .wp-cart-favorite:focus-visible{outline:2px solid #8bb9bb;outline-offset:3px}
 html:not(.meiai-native) .b7-buy-sheet{top:50%!important;transform:translateY(-50%);max-height:calc(100dvh - 48px)!important}
 html:not(.meiai-native) .b7-buy-sheet .b7-buy-header{padding:18px 22px 12px}
 html:not(.meiai-native) .b7-buy-sheet .b7-buy-scroll{padding:18px 22px}
 html:not(.meiai-native) .b7-buy-sheet .b7-buy-footer{padding:14px 22px 18px}
 html:not(.meiai-native) .b7-buy-choice:hover:not(:disabled){border-color:#a8c7cc}
}
@media(max-width:999px){
 html:not(.meiai-native) .checkout-flow :is(input,select,textarea){font-size:16px}
 html:not(.meiai-native) .mp-quickview-button::after{content:'';position:absolute;inset:-6px;border-radius:50%}
}

/* 2026-09-27 review: keep search visible and remove duplicated navigation. */
html:not(.meiai-native) #items .app-header .ec-search{display:flex!important;align-items:center;gap:8px;min-height:40px;flex:1;max-width:540px;border:1px solid #e4e4eb;border-radius:14px;background:#f8f6fa;color:#535864;padding:8px 12px}
html:not(.meiai-native) #items .app-header .ec-search span{display:block!important;font-size:13px;white-space:nowrap}
html:not(.meiai-native) #items .px-header-search{display:none!important}
html:not(.meiai-native) #items .app-header.bh-header{gap:14px}
html:not(.meiai-native) #items .ec-search input{width:100%;min-width:0;border:0;outline:none;background:transparent;font:inherit;color:inherit}
html:not(.meiai-native) #items .ec-search button{border:0;background:transparent;color:inherit;min-width:44px;min-height:40px}
.wp-brand-all{margin-left:auto;font-size:13px;color:#555e6a;white-space:nowrap;min-height:44px;display:flex;align-items:center}
@media(min-width:1000px){
 .dn-header{grid-template-columns:auto auto minmax(160px,1fr) auto;gap:20px}
 .wp-header-search{display:flex;align-items:center;gap:8px;min-width:0;max-width:540px;justify-self:stretch;border:1px solid #e4e4eb;border-radius:14px;background:#f8f6fa;color:#535864;padding-left:12px}
 .wp-header-search input{width:100%;min-width:0;border:0;outline:none;background:transparent;font:inherit;font-size:13px;color:inherit}
 .wp-header-search:focus-within{outline:2px solid #977193;outline-offset:2px}
 .wp-header-search button{display:grid;place-items:center;flex:none;border:0;background:transparent;color:inherit;width:44px;height:44px;border-radius:12px;cursor:pointer}
 .wp-header-search svg{width:20px;height:20px}
 html:not(.meiai-native) #items .app-header .bh-lockup{flex:none}
 html:not(.meiai-native) #items .app-header .ec-search{margin-inline:auto}
}
html[data-theme=dark] .wp-header-search{background:#303b49;color:#e1e5e7;border-color:#556373}
@media(max-width:600px){
 html:not(.meiai-native) #items .app-header .bh-icon{display:none}
 html:not(.meiai-native) #items .app-header .bh-wordmark{width:64px}
 html:not(.meiai-native) #items .app-header.bh-header{gap:10px;padding-inline:14px}
 html:not(.meiai-native) #items .app-header .ec-search span{font-size:12px}
 html:not(.meiai-native) #items .cr-category-strip{display:none}
 html:not(.meiai-native) #items .sh-shop-intro{margin-block:8px 0}
 html:not(.meiai-native) #items .lv-editorial .mb-hero{height:202px;min-height:202px}
 html:not(.meiai-native) #items .lv-hero-brand{top:10px;left:18px}
 html:not(.meiai-native) #items .lv-hero-brand>.lv-hero-logo{width:70px}
 html:not(.meiai-native) #items .lv-hero-brand>span,html:not(.meiai-native) #items .mb-hero-copy>p,html:not(.meiai-native) #items .mb-hero-copy>span{display:none}
 html:not(.meiai-native) #items .lv-editorial .mb-hero-copy{left:18px;bottom:40px;max-width:56%}
 html:not(.meiai-native) #items .mb-hero-copy>h2{font-size:18px!important;line-height:1.4;margin:4px 0}
 html:not(.meiai-native) #items .mb-hero-copy>b{margin-top:6px}
 html:not(.meiai-native) #items .bc-brand-marquee{margin-block:6px;padding-block:0}
 html:not(.meiai-native) #items .bc-marquee-heading p{display:none}
 html:not(.meiai-native) #items .bc-marquee-heading{min-height:32px}
 html:not(.meiai-native) #items .bc-wordmark-group a{min-height:38px}
 html:not(.meiai-native) #items .np-banner{min-height:34px;padding-block:5px;margin-block:4px}
}
html:not(.meiai-native)[data-theme=dark] #items .app-header .ec-search{background:#303b49;color:#e1e5e7;border-color:#556373}
html[data-theme=dark] .wp-brand-all{color:#d4dce6}
@media(max-width:999px){
 html:not(.meiai-native) #items .bc-marquee-viewport.wp-brand-keyboard .bc-marquee-track{transform:none!important;animation-play-state:paused}
 html:not(.meiai-native) :is(#mypage,#mypage_guest) .b16-shopping-guide .ah-guide-title>a{display:inline-flex;align-items:center;min-height:44px}
}
