.product-category-chips{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:-8px 0 22px;
}

.product-category-chips[hidden]{
  display:none!important;
}

.product-category-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:100%;
  padding:6px 8px 6px 11px;
  border-radius:999px;
  background:#f2e8da;
  color:#723b35;
  font-size:13px;
  font-weight:800;
}

.product-category-chip>span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.product-category-chip button{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 auto;
  border:0;
  border-radius:50%;
  background:rgba(114,59,53,.1);
  color:inherit;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.product-category-clear{
  padding:6px 8px;
  border:0;
  background:transparent;
  color:#723b35;
  font:inherit;
  font-size:13px;
  font-weight:900;
  text-decoration:underline;
  cursor:pointer;
}

.product-filter-live{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

#productGrid[aria-busy="true"]{
  cursor:progress;
}

@media(max-width:640px){
  body.product-category-modal-open{
    overflow:hidden;
  }

  .product-category-control{
    position:static;
    width:100%;
    min-width:0;
  }

  .product-category-control.is-open .product-category-backdrop{
    position:fixed;
    inset:0;
    z-index:1300;
    display:block;
    background:rgba(25,32,45,.48);
  }

  .product-category-panel{
    position:fixed;
    inset:auto 0 0;
    z-index:1301;
    width:100%;
    max-height:min(88dvh,720px);
    border-width:1px 0 0;
    border-radius:22px 22px 0 0;
    padding-bottom:env(safe-area-inset-bottom);
  }

  .product-category-panel-head{
    padding:18px 16px 12px;
  }

  .product-category-search{
    margin-right:16px;
    margin-left:16px;
  }

  .product-category-list{
    padding-right:16px;
    padding-left:16px;
  }

  .product-category-children{
    grid-template-columns:1fr;
    padding-left:27px;
  }

  .product-category-panel-foot{
    padding:12px 16px;
  }
}

@media(max-width:420px){
  .product-category-group-head,
  .product-category-panel-foot{
    align-items:flex-start;
  }

  .product-category-group-action{
    white-space:nowrap;
  }

  .product-category-panel-foot{
    flex-direction:column;
  }

  .product-category-panel-foot>div{
    width:100%;
  }

  .product-category-panel-foot .btn{
    flex:1;
  }
}

@media(prefers-reduced-motion:reduce){
  .product-category-chevron{
    transition:none;
  }
}
