/* WHERING 4.5.3 — boné/chapéu em lateral dedicada.
   Mantém TOP/BOT/FTW nas proporções da 4.5.2 e retira HEADWEAR
   da doca genérica de acessórios, evitando que apareça perdido abaixo do calçado. */

/* ===== BANCO DE RESERVA ===== */
.saved-stage.has-headwear{
  grid-template-columns:72px minmax(0,1fr)!important;
}
.saved-stage.has-headwear.has-optionals{
  grid-template-columns:72px minmax(0,1fr) 72px!important;
}
.saved-stage.has-headwear .saved-stage-top,
.saved-stage.has-headwear .saved-stage-bottom,
.saved-stage.has-headwear .saved-stage-footwear{
  grid-column:2!important;
}
.saved-stage.has-headwear.has-optionals .saved-stage-optionals{
  grid-column:3!important;
}

.saved-stage-headwear{
  position:relative!important;
  z-index:9!important;
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:center!important;
  justify-self:center!important;
  width:64px!important;
  height:62px!important;
  min-width:64px!important;
  min-height:62px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:4px 4px 11px!important;
  overflow:hidden!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.93)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.045)!important;
}
.saved-stage-headwear img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:54px!important;
  max-height:47px!important;
  object-fit:contain!important;
}
.saved-stage-headwear span{
  position:absolute!important;
  left:3px!important;
  right:3px!important;
  bottom:2px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  text-align:center!important;
  font-size:5.7px!important;
  line-height:1!important;
  color:#7e847f!important;
  opacity:.72!important;
}

/* Meias continuam no canto inferior esquerdo, sem disputar espaço com o boné. */
.saved-stage.has-headwear .saved-stage-socks{
  left:7px!important;
}

/* ===== TROCAR LOOK ASSOCIADO ===== */
.wear-swap-card .saved-stage.has-headwear{
  grid-template-columns:60px minmax(0,1fr)!important;
}
.wear-swap-card .saved-stage.has-headwear.has-optionals{
  grid-template-columns:60px minmax(0,1fr) 64px!important;
}
.wear-swap-card .saved-stage.has-headwear .saved-stage-top,
.wear-swap-card .saved-stage.has-headwear .saved-stage-bottom,
.wear-swap-card .saved-stage.has-headwear .saved-stage-footwear{
  grid-column:2!important;
}
.wear-swap-card .saved-stage.has-headwear.has-optionals .saved-stage-optionals{
  grid-column:3!important;
}
.wear-swap-card .saved-stage-headwear{
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  padding:3px 3px 10px!important;
  border-radius:9px!important;
}
.wear-swap-card .saved-stage-headwear img{
  max-width:48px!important;
  max-height:42px!important;
}
.wear-swap-card .saved-stage-headwear span{
  font-size:5.4px!important;
}

@media(max-width:760px){
  .saved-stage.has-headwear{
    grid-template-columns:58px minmax(0,1fr)!important;
  }
  .saved-stage.has-headwear.has-optionals{
    grid-template-columns:58px minmax(0,1fr) 58px!important;
  }
  .saved-stage-headwear{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    min-height:54px!important;
    padding:3px 3px 10px!important;
  }
  .saved-stage-headwear img{
    max-width:46px!important;
    max-height:40px!important;
  }
  .saved-stage-headwear span{
    font-size:5.2px!important;
  }

  .wear-swap-card .saved-stage.has-headwear{
    grid-template-columns:54px minmax(0,1fr)!important;
  }
  .wear-swap-card .saved-stage.has-headwear.has-optionals{
    grid-template-columns:54px minmax(0,1fr) 56px!important;
  }
  .wear-swap-card .saved-stage-headwear{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
  }
  .wear-swap-card .saved-stage-headwear img{
    max-width:43px!important;
    max-height:37px!important;
  }
}
