/* Favorito Delivery — Build 410
   Ações da loja no acompanhamento do pedido.
   Regra estrutural: ícone + texto nunca podem invadir a ação vizinha em desktop, tablet ou mobile. */

.consumer-order-page .consumer-order-store-card{
  min-width:0!important;
}
.consumer-order-page .consumer-order-store-card>div:not(.consumer-store-actions){
  min-width:0!important;
}
.consumer-order-page .consumer-store-actions{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(78px,1fr))!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  max-width:360px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.consumer-order-page .consumer-store-actions>a,
.consumer-order-page .consumer-store-actions>button{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:64px!important;
  margin:0!important;
  padding:8px 6px!important;
  box-sizing:border-box!important;
  border:1px solid var(--border,#e1e5ea)!important;
  border-radius:14px!important;
  background:var(--surface,#fff)!important;
  color:var(--secondary,#344054)!important;
  text-align:center!important;
  text-decoration:none!important;
  font:inherit!important;
  line-height:1!important;
  overflow:hidden!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.consumer-order-page .consumer-store-actions>a:hover,
.consumer-order-page .consumer-store-actions>button:hover{
  border-color:color-mix(in srgb,var(--primary) 32%,var(--border,#e1e5ea))!important;
  color:var(--primary)!important;
}
.consumer-order-page .consumer-store-actions :is(svg,.icon){
  position:static!important;
  display:block!important;
  flex:0 0 auto!important;
  width:21px!important;
  height:21px!important;
  max-width:21px!important;
  max-height:21px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
.consumer-order-page .consumer-store-actions>a>span,
.consumer-order-page .consumer-store-actions>button>span{
  position:static!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  overflow:hidden!important;
}

/* Desktop: identidade à esquerda e ações com largura própria à direita. */
@media (min-width:1100px){
  .consumer-order-page .consumer-order-store-card{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) minmax(270px,360px)!important;
    align-items:center!important;
    column-gap:16px!important;
    row-gap:12px!important;
  }
  .consumer-order-page .consumer-store-actions{
    grid-column:3!important;
    justify-self:end!important;
  }
}

/* Tablet: as ações descem para uma linha exclusiva e usam toda a largura segura. */
@media (min-width:641px) and (max-width:1099px){
  .consumer-order-page .consumer-order-store-card{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:14px!important;
    row-gap:14px!important;
  }
  .consumer-order-page .consumer-store-actions{
    grid-column:1/-1!important;
    justify-self:center!important;
    max-width:420px!important;
  }
}

/* Mobile: nenhuma ação fica espremida ao lado do nome da loja. */
@media (max-width:640px){
  .consumer-order-page .consumer-order-store-card{
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:11px!important;
    row-gap:12px!important;
  }
  .consumer-order-page .consumer-store-actions{
    grid-column:1/-1!important;
    justify-self:stretch!important;
    max-width:none!important;
    gap:7px!important;
  }
  .consumer-order-page .consumer-store-actions>a,
  .consumer-order-page .consumer-store-actions>button{
    min-height:62px!important;
    padding:8px 4px!important;
    border-radius:13px!important;
  }
  .consumer-order-page .consumer-store-actions :is(svg,.icon){
    width:20px!important;
    height:20px!important;
    max-width:20px!important;
    max-height:20px!important;
  }
  .consumer-order-page .consumer-store-actions>a>span,
  .consumer-order-page .consumer-store-actions>button>span{
    font-size:10px!important;
  }
}

/* Celulares muito estreitos: preserva os três atalhos sem sobreposição. */
@media (max-width:360px){
  .consumer-order-page .consumer-store-actions{
    gap:5px!important;
    grid-template-columns:repeat(auto-fit,minmax(72px,1fr))!important;
  }
  .consumer-order-page .consumer-store-actions>a,
  .consumer-order-page .consumer-store-actions>button{
    min-height:60px!important;
    padding-inline:3px!important;
  }
  .consumer-order-page .consumer-store-actions>a>span,
  .consumer-order-page .consumer-store-actions>button>span{
    font-size:9.5px!important;
  }
}
