.product-category-control{
  position:relative;
  flex:1 1 360px;
  min-width:280px;
}

.product-category-trigger{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:46px;
  padding:9px 12px;
  border:1.5px solid rgba(38,56,83,.22);
  border-radius:12px;
  background:#fffdf4;
  color:var(--color-text,#263853);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
  font:inherit;
  font-size:14px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}

.product-category-trigger:hover:not(:disabled){
  border-color:rgba(168,75,63,.55);
}

.product-category-trigger:focus-visible,
.product-category-panel button:focus-visible,
.product-category-panel input:focus-visible,
.product-category-chip button:focus-visible,
.product-category-clear:focus-visible{
  outline:3px solid rgba(30,48,76,.86);
  outline-offset:2px;
}

.product-category-trigger:disabled{
  opacity:.68;
  cursor:not-allowed;
}

.product-category-trigger-text{
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.product-category-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:var(--color-primary,#a84b3f);
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.product-category-chevron{
  width:9px;
  height:9px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
  transition:transform .16s ease;
}

.product-category-control.is-open .product-category-chevron{
  transform:translateY(2px) rotate(225deg);
}

.product-category-inline-state{
  margin:6px 2px 0;
  color:#687674;
  font-size:12px;
  line-height:1.4;
}

.product-category-inline-state.is-error{
  color:#9f2f27;
}

.product-category-inline-state button{
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:900;
  text-decoration:underline;
  cursor:pointer;
}

.product-category-panel{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:250;
  display:flex;
  flex-direction:column;
  width:min(720px,calc(100vw - 32px));
  max-height:min(68vh,570px);
  overflow:hidden;
  border:1px solid rgba(38,56,83,.2);
  border-radius:18px;
  background:#fffdf8;
  box-shadow:0 22px 54px rgba(28,25,23,.2);
}

.product-category-control.opens-up .product-category-panel{
  top:auto;
  bottom:calc(100% + 8px);
}

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

.product-category-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px 12px;
}

.product-category-panel-head h2{
  margin:2px 0 0;
  color:#263853;
  font-size:20px;
  line-height:1.25;
}

.product-category-kicker{
  margin:0;
  color:#a84b3f;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.product-category-close{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#f1ede3;
  color:#263853;
  font-size:25px;
  line-height:1;
  cursor:pointer;
}

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

.product-category-search{
  width:auto!important;
  min-width:0!important;
  margin:0 20px 12px;
}

.product-category-list{
  min-height:120px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 20px 12px;
}

.product-category-group{
  padding:14px 0;
  border-top:1px solid rgba(38,56,83,.13);
}

.product-category-group:first-child{
  border-top:0;
}

.product-category-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.product-category-option{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:32px;
  color:#334155;
  font-size:14px;
  font-weight:650;
  line-height:1.35;
  cursor:pointer;
}

.product-category-option.is-root{
  color:#263853;
  font-weight:900;
}

.product-category-option input{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:0;
  accent-color:#a84b3f;
}

.product-category-group-action{
  flex:0 0 auto;
  padding:6px 8px;
  border:0;
  border-radius:8px;
  background:#f4eee4;
  color:#914238;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.product-category-children{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 16px;
  padding:9px 0 0 27px;
}

.product-category-message{
  display:grid;
  place-items:center;
  min-height:150px;
  color:#687674;
  text-align:center;
}

.product-category-message.is-error{
  color:#9f2f27;
}

.product-category-panel-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 20px;
  border-top:1px solid rgba(38,56,83,.15);
  background:#fffdf8;
  color:#475569;
  font-size:13px;
  font-weight:800;
}

.product-category-panel-foot>div{
  display:flex;
  gap:8px;
}

.product-category-backdrop{
  display:none;
}
