
/* V46 - Màu / Chất liệu / Size: one-screen mobile layout */
@media(max-width:600px){
  /* modal itself */
  #modal .sheet:has(.attrsMaster41),
  #modal .sheet:has(.attrsAllEditor){
    width:calc(100vw - 10px)!important;
    max-width:calc(100vw - 10px)!important;
    height:calc(100dvh - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    margin:6px auto!important;
    padding:8px!important;
    border-radius:14px!important;
    overflow:hidden!important;
  }

  #modal .sheet:has(.attrsMaster41) .sheetHead,
  #modal .sheet:has(.attrsAllEditor) .sheetHead{
    min-height:38px!important;
    height:38px!important;
    padding:0 2px 5px!important;
  }
  #modal .sheet:has(.attrsMaster41) .sheetHead h3,
  #modal .sheet:has(.attrsAllEditor) .sheetHead h3{
    font-size:16px!important;
    line-height:1!important;
    margin:0!important;
  }
  #modal .sheet:has(.attrsMaster41) .sheetHead button,
  #modal .sheet:has(.attrsAllEditor) .sheetHead button{
    width:32px!important;
    height:32px!important;
    min-height:32px!important;
  }

  #modal .sheet:has(.attrsMaster41) #modalBody,
  #modal .sheet:has(.attrsAllEditor) #modalBody{
    height:calc(100% - 40px)!important;
    max-height:none!important;
    overflow:hidden!important;
    padding:0!important;
  }

  .attrsMaster41,
  .attrsAllEditor{
    height:100%!important;
    display:grid!important;
    grid-template-rows:auto 1fr 1fr 1fr auto auto!important;
    gap:5px!important;
    overflow:hidden!important;
  }

  .attrsMaster41 .hero41,
  .attrsAllEditor .storeSettingIntro35,
  .attrsAllEditor>.hint{
    min-height:0!important;
    padding:6px 8px!important;
    border-radius:10px!important;
    margin:0!important;
  }

  .attrsMaster41 .hero41>span{
    width:30px!important;
    height:30px!important;
    flex-basis:30px!important;
    font-size:17px!important;
    border-radius:9px!important;
  }
  .attrsMaster41 .hero41 b{font-size:11px!important}
  .attrsMaster41 .hero41 small{font-size:8px!important}

  /* each of 3 attribute groups */
  .attrsMaster41 .attrGroup,
  .attrsAllEditor .attrGroup{
    min-height:0!important;
    margin:0!important;
    padding:6px 8px!important;
    border-radius:11px!important;
    display:grid!important;
    grid-template-rows:auto 1fr auto!important;
    gap:4px!important;
    overflow:hidden!important;
  }
  .attrsMaster41 .attrGroup h4,
  .attrsAllEditor .attrGroup h4{
    font-size:11px!important;
    line-height:1!important;
    margin:0!important;
    min-height:14px!important;
  }

  .attrsMaster41 .attrTags,
  .attrsAllEditor .attrTags{
    display:flex!important;
    flex-wrap:wrap!important;
    align-content:flex-start!important;
    gap:3px!important;
    overflow:hidden!important;
    max-height:50px!important;
    padding:0!important;
    margin:0!important;
  }
  .attrsMaster41 .attrTags>span,
  .attrsAllEditor .attrTags>span{
    min-height:22px!important;
    height:22px!important;
    padding:2px 7px!important;
    border-radius:999px!important;
    font-size:8.5px!important;
    line-height:16px!important;
    margin:0!important;
  }
  .attrsMaster41 .attrTags>span button,
  .attrsAllEditor .attrTags>span button{
    width:16px!important;
    height:16px!important;
    min-height:16px!important;
    padding:0!important;
    margin-left:3px!important;
    font-size:9px!important;
    line-height:14px!important;
  }

  .attrsMaster41 .attrAddLine,
  .attrsAllEditor .attrAddLine{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 88px!important;
    gap:5px!important;
    min-height:34px!important;
    margin:0!important;
  }
  .attrsMaster41 .attrAddLine input,
  .attrsAllEditor .attrAddLine input{
    min-height:34px!important;
    height:34px!important;
    padding:5px 8px!important;
    font-size:10px!important;
    border-radius:9px!important;
  }
  .attrsMaster41 .attrAddLine button,
  .attrsAllEditor .attrAddLine button{
    min-height:34px!important;
    height:34px!important;
    padding:4px 7px!important;
    font-size:10px!important;
    border-radius:9px!important;
  }

  .attrsMaster41 .saveHint41,
  .attrsAllEditor .settingsReturnNote{
    min-height:0!important;
    margin:0!important;
    padding:4px 6px!important;
    font-size:7.5px!important;
    line-height:1.1!important;
    border-radius:8px!important;
  }

  .attrsMaster41 .footerActions41,
  .attrsAllEditor .settingActions{
    position:static!important;
    display:grid!important;
    grid-template-columns:1fr 1.35fr!important;
    gap:5px!important;
    padding:5px 0 0!important;
    margin:0!important;
    background:#fff!important;
    min-height:40px!important;
  }
  .attrsMaster41 .footerActions41 button,
  .attrsAllEditor .settingActions button{
    min-height:38px!important;
    height:38px!important;
    padding:5px 6px!important;
    font-size:9px!important;
    border-radius:9px!important;
    white-space:nowrap!important;
  }
}

@media(max-width:390px){
  .attrsMaster41 .attrTags,
  .attrsAllEditor .attrTags{
    max-height:44px!important;
  }
  .attrsMaster41 .attrTags>span,
  .attrsAllEditor .attrTags>span{
    font-size:8px!important;
    padding:2px 6px!important;
  }
  .attrsMaster41 .attrAddLine,
  .attrsAllEditor .attrAddLine{
    grid-template-columns:minmax(0,1fr) 78px!important;
  }
}
