/* Desktop overlays use their own available width, independent of full-page layouts. */
@media (min-width:1000px) {
  html:not(.meiai-native) :is(.dn-drawer,.b7-buy-sheet) [hidden] {
    display:none!important;
  }
  html:not(.meiai-native) body.single .dn-drawer[data-panel=account] :is(#mypage,#mypage_guest)>.screen-main {
    display:block;
    min-width:0;
    overflow:auto;
  }
  html:not(.meiai-native) body.single .dn-drawer[data-panel=account] :is(#mypage,#mypage_guest) .ah-dashboard {
    display:flex;
    flex-direction:column;
    width:100%;
    max-width:none;
    height:auto!important;
    min-height:0;
    box-sizing:border-box;
    overflow:visible!important;
  }
  html:not(.meiai-native) body.single .dn-drawer[data-panel=account] :is(#mypage,#mypage_guest)>.screen-main>.me-shop-links {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    margin:0 16px 16px;
    width:auto;
    min-width:0;
  }
  html:not(.meiai-native) body.single .dn-drawer[data-panel=account] .me-shop-links>a {
    display:flex;
    align-items:center;
    box-sizing:border-box;
    min-width:0;
    min-height:44px;
    padding:12px 14px;
    border-radius:12px;
    font-size:12px;
    line-height:1.6;
    overflow-wrap:anywhere;
  }
  html:not(.meiai-native) .b7-buy-sheet {
    --b7-sheet-max-height:min(760px,calc(100dvh - 48px))!important;
  }
  html:not(.meiai-native) .b7-buy-sheet .b7-buy-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    height:auto;
    min-height:52px;
    padding:4px 12px 4px 18px;
    box-sizing:border-box;
  }
  html:not(.meiai-native) .b7-buy-sheet .b7-buy-header h2 {
    position:static;
    width:auto;
    height:auto;
    margin:0;
    overflow:visible;
    clip-path:none;
    font-size:14px;
    line-height:1.5;
    color:var(--md-ink,#3a3d42);
  }
  html:not(.meiai-native) .b7-buy-sheet .b7-buy-header .b7-buy-close {
    position:static;
    flex:none;
    width:44px;
    height:44px;
    padding:0;
    color:var(--md-ink,#3a3d42)!important;
    background:var(--md-soft,#faf9fc);
    border:1px solid var(--md-line,#ece8f0);
    border-radius:50%;
    line-height:1;
  }
}
