/* RC7.2 — Carrinho móvel sempre acessível no Monte seu Kit */
.mk-backdrop-ig,
.mk-mobile-kitbar-ig{display:none;}

@media (max-width: 760px){
  body.mk-mobile-fixed{padding-bottom:92px;}

  body.mk-mobile-fixed .mk-mobile-kitbar-ig{
    display:block!important;
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px))!important;
    z-index:1000!important;
  }
  body.mk-mobile-fixed .mk-mobile-kitbar-ig button{
    width:100%!important;
    min-height:60px!important;
    border:0!important;
    border-radius:18px!important;
    padding:10px 16px!important;
    background:linear-gradient(135deg,#6d3cff,#5522dd)!important;
    color:#fff!important;
    box-shadow:0 16px 40px rgba(72,35,190,.38)!important;
    display:grid!important;
    grid-template-columns:24px minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    font:inherit!important;
    cursor:pointer!important;
  }
  body.mk-mobile-fixed .mk-mobile-kitbar-ig svg{width:23px!important;height:23px!important;}
  body.mk-mobile-fixed .mk-kitbar-label{
    text-align:left!important;
    font-size:.92rem!important;
    line-height:1.2!important;
    font-weight:900!important;
  }
  body.mk-mobile-fixed #mkMobileCountIG{
    min-width:30px!important;
    height:30px!important;
    padding:0 8px!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#5b2ad6!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:.9rem!important;
    font-weight:1000!important;
  }

  body.mk-mobile-fixed .mk-backdrop-ig{
    display:none;
    position:fixed!important;
    inset:0!important;
    z-index:1090!important;
    background:rgba(7,19,51,.48)!important;
    backdrop-filter:blur(2px);
  }
  body.mk-mobile-fixed .mk-backdrop-ig.open{display:block!important;}

  body.mk-mobile-fixed .mk-kit-panel-ig{
    display:block!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    z-index:1100!important;
    max-height:min(82vh,720px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    border-radius:26px 26px 0 0!important;
    padding:22px 18px calc(22px + env(safe-area-inset-bottom,0px))!important;
    transform:translateY(110%)!important;
    transition:transform .28s ease!important;
    background:#fff!important;
    border:1px solid #e7e0ff!important;
    border-top:4px solid #6d3cff!important;
    box-shadow:0 -18px 60px rgba(15,23,42,.24)!important;
  }
  body.mk-mobile-fixed .mk-kit-panel-ig.open{transform:translateY(0)!important;}
  body.mk-mobile-fixed .mk-kit-panel-ig::after{
    content:"";
    position:absolute;
    top:9px;
    left:50%;
    width:46px;
    height:5px;
    border-radius:999px;
    background:#d9d1f5;
    transform:translateX(-50%);
  }
  body.mk-mobile-fixed .mk-kit-panel-ig h3{padding-top:8px;}
}

/* RC7.3 — contraste reforçado na barra móvel */
@media (max-width:760px){
  body.mk-mobile-fixed .mk-mobile-kitbar-ig button,
  body.mk-mobile-fixed .mk-mobile-kitbar-ig button .mk-kitbar-label{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
  }
  body.mk-mobile-fixed .mk-mobile-kitbar-ig button svg{
    color:#fff!important;
    stroke:#fff!important;
    opacity:1!important;
  }
}


/* RC7.4 — persistência, ações do carrinho e visualização completa */
.mk-kit-panel-head-rc74{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:4px;
}
.mk-kit-panel-head-rc74 h3{margin:0!important;}
.mk-kit-panel-actions-rc74{display:flex;align-items:center;gap:8px;}
.mk-clear-kit-rc74,
.mk-close-kit-rc74{
  border:1px solid #e4dcff;
  background:#f7f4ff;
  color:#5b2ad6;
  border-radius:12px;
  min-height:38px;
  padding:8px 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font:inherit;
  font-size:.78rem;
  font-weight:900;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.mk-clear-kit-rc74:hover,
.mk-close-kit-rc74:hover{background:#6d3cff;color:#fff;transform:translateY(-1px);}
.mk-clear-kit-rc74 svg,
.mk-close-kit-rc74 svg{width:17px!important;height:17px!important;}
.mk-close-kit-rc74{display:none;min-width:38px;padding:8px;}

/* No desktop, o resumo acompanha a rolagem da página sem cortar os itens. */
@media (min-width:981px){
  body.mk-mobile-fixed .mk-kit-panel-ig,
  body.mk-premium-iii .mk-kit-panel-ig{
    max-height:none!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }
}

@media (max-width:760px){
  body.mk-mobile-fixed .mk-close-kit-rc74{display:inline-flex!important;}
  body.mk-mobile-fixed .mk-clear-kit-rc74 span{display:none;}
  body.mk-mobile-fixed .mk-clear-kit-rc74{min-width:38px;padding:8px;}
  body.mk-mobile-fixed .mk-kit-panel-head-rc74{
    position:sticky;
    top:-22px;
    z-index:4;
    margin:-8px -4px 10px;
    padding:16px 4px 10px;
    background:linear-gradient(#fff 78%,rgba(255,255,255,.92));
  }
}


/* RC7.5 — correção de alinhamento do cabeçalho e totais do Meu Kit */
.mk-kit-panel-head-rc74{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin:0 0 14px;
}
.mk-kit-panel-head-rc74 h3{
  min-width:0;
  margin:0!important;
  white-space:nowrap;
}
.mk-kit-panel-head-rc74 h3::after{
  display:none!important;
  content:none!important;
}
.mk-kit-panel-actions-rc74{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}
.mk-clear-kit-rc74{
  flex:0 0 auto;
  white-space:nowrap;
}
.mk-kit-panel-ig .v21-kit-header{
  width:100%;
  box-sizing:border-box;
  margin:0 0 16px!important;
  clear:both;
}
.mk-kit-panel-ig .v21-kit-metrics{
  width:100%;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.mk-kit-panel-ig .v21-kit-metrics > div{
  min-width:0;
}

@media (min-width:981px){
  body.mk-mobile-fixed .kit-builder-layout-rc6,
  body.mk-premium-iii .kit-builder-layout-rc6{
    grid-template-columns:minmax(0,1fr) 380px!important;
    gap:30px!important;
  }
  body.mk-mobile-fixed .mk-kit-panel-ig,
  body.mk-premium-iii .mk-kit-panel-ig{
    width:100%!important;
    min-width:0!important;
    padding:22px!important;
  }
}

@media (max-width:760px){
  body.mk-mobile-fixed .mk-kit-panel-head-rc74{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:10px!important;
  }
  body.mk-mobile-fixed .mk-kit-panel-actions-rc74{
    gap:6px!important;
  }
  body.mk-mobile-fixed .mk-kit-panel-ig .v21-kit-header{
    margin-bottom:14px!important;
  }
}

/* RC7.6 — alinhamento definitivo do painel Meu Kit */
@media (min-width:981px){
  body.mk-mobile-fixed .kit-builder-layout-rc6,
  body.mk-premium-iii .kit-builder-layout-rc6{
    grid-template-columns:minmax(0,1fr) 360px!important;
    gap:32px!important;
    align-items:start!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-ig,
  body.mk-premium-iii .mk-kit-panel-ig{
    position:relative!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:360px!important;
    min-width:0!important;
    box-sizing:border-box!important;
    padding:22px!important;
    overflow:visible!important;
    max-height:none!important;
    align-self:start!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-head-rc74,
  body.mk-premium-iii .mk-kit-panel-head-rc74{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    min-width:0!important;
    margin:0 0 14px!important;
    padding:0!important;
    gap:12px!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-head-rc74 h3,
  body.mk-premium-iii .mk-kit-panel-head-rc74 h3{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    color:#071333!important;
    font-size:1.32rem!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow:visible!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-actions-rc74,
  body.mk-premium-iii .mk-kit-panel-actions-rc74{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
  }

  body.mk-mobile-fixed .mk-clear-kit-rc74,
  body.mk-premium-iii .mk-clear-kit-rc74{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    margin:0!important;
    min-height:36px!important;
    padding:7px 10px!important;
    white-space:nowrap!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-ig .v21-kit-header,
  body.mk-premium-iii .mk-kit-panel-ig .v21-kit-header{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:block!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin:0 0 18px!important;
    padding:14px!important;
    clear:both!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-ig .v21-kit-metrics,
  body.mk-premium-iii .mk-kit-panel-ig .v21-kit-metrics{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    gap:10px!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-ig .v21-kit-metrics > div,
  body.mk-premium-iii .mk-kit-panel-ig .v21-kit-metrics > div{
    min-width:0!important;
    box-sizing:border-box!important;
  }

  body.mk-mobile-fixed .kit-builder-main-rc6,
  body.mk-premium-iii .kit-builder-main-rc6{
    min-width:0!important;
  }
}

@media (max-width:980px){
  body.mk-mobile-fixed .mk-kit-panel-head-rc74,
  body.mk-premium-iii .mk-kit-panel-head-rc74{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    gap:10px!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-head-rc74 h3,
  body.mk-premium-iii .mk-kit-panel-head-rc74 h3{
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
    white-space:normal!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-actions-rc74,
  body.mk-premium-iii .mk-kit-panel-actions-rc74,
  body.mk-mobile-fixed .mk-clear-kit-rc74,
  body.mk-premium-iii .mk-clear-kit-rc74{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    margin:0!important;
  }

  body.mk-mobile-fixed .mk-kit-panel-ig .v21-kit-header,
  body.mk-premium-iii .mk-kit-panel-ig .v21-kit-header{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin:0 0 16px!important;
  }
}
