/* Correção compacta do padrão Lucam para login e páginas da conta. */
body:is(.pagina-login,.pagina-cadastro,.pagina-conta,.pagina-conta-endereco,.pagina-pedido-listar,.pagina-pedido,.pagina-favorito-listar):not(.carrinho-checkout){
  --checkout-primary:#4B136C;
  --checkout-primary-hover:#3B0D55;
  --checkout-text:#172b4d;
  --checkout-muted:#718198;
  --checkout-page-bg:#f2f8ff;
  --checkout-surface:#fff;
  --checkout-surface-subtle:#f2f7fd;
  --checkout-border:#dce7f4;
  background:#f2f8ff!important;
  color:#172b4d!important;
}
body:is(.pagina-login,.pagina-cadastro,.pagina-conta,.pagina-conta-endereco,.pagina-pedido-listar,.pagina-pedido,.pagina-favorito-listar):not(.carrinho-checkout) #cabecalho{
  background:#4B136C!important;
  border:0!important;
  box-shadow:none!important;
}
body:is(.pagina-login,.pagina-cadastro,.pagina-conta,.pagina-conta-endereco,.pagina-pedido-listar,.pagina-pedido,.pagina-favorito-listar):not(.carrinho-checkout) :is(.botao.principal,button.principal,input[type=submit],#id_botao_login){
  background:#4B136C!important;
  border-color:#4B136C!important;
  color:#fff!important;
}
body:is(.pagina-conta,.pagina-conta-endereco,.pagina-pedido-listar,.pagina-pedido,.pagina-favorito-listar):not(.carrinho-checkout) :is(.conta-menu .nome-usuario i,.conta-menu .menu-simples a i,.abas-conta a i,.caixa-dados fieldset legend i){
  color:#4B136C!important;
}
body:is(.pagina-conta,.pagina-pedido-listar,.pagina-pedido,.pagina-favorito-listar):not(.carrinho-checkout) .abas-conta{
  background:#f2f7fd!important;
  border-color:#dce7f4!important;
}
body:is(.pagina-conta,.pagina-pedido-listar,.pagina-pedido,.pagina-favorito-listar):not(.carrinho-checkout) .abas-conta li.active a{
  background:#fff!important;
  color:#172b4d!important;
}

/* Checkout nativo: fallback mesmo quando a plataforma não adiciona .clean-layout. */
body.carrinho-checkout{
  --checkout-primary:#0b68e8;
  --checkout-primary-hover:#0758c9;
  --checkout-text:#172b4d;
  --checkout-muted:#718198;
  --checkout-page-bg:#f2f8ff;
  --checkout-surface:#fff;
  --checkout-border:#dce7f4;
  margin:0!important;
  background:#f2f8ff!important;
  color:#172b4d!important;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.carrinho-checkout #cabecalho{
  position:relative;
  background:#4b136c!important;
  border:0!important;
  box-shadow:none!important;
}
body.carrinho-checkout #cabecalho::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  z-index:2;
  height:4px;
  background:linear-gradient(90deg,#37cde4,#0877ed 28%,#b72cdf 54%,#f02c91 72%,#ffbd3f 86%,#22bf91);
  pointer-events:none;
}
body.carrinho-checkout #cabecalho .cabecalho-safety{
  border-color:#d6e6f7!important;
  background:#ffffffa8!important;
  color:#172b4d!important;
}
body.carrinho-checkout #cabecalho .cabecalho-safety p{color:#172b4d!important}
body.carrinho-checkout #cabecalho .cabecalho-safety i{color:#18b981!important}
body.carrinho-checkout #cabecalho .cabecalho-conteudo{
  display:grid!important;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  min-height:47px;
}
body.carrinho-checkout #cabecalho .cabecalho-logo{
  grid-column:2;
  justify-self:center;
}
body.carrinho-checkout #cabecalho .cabecalho-disclaimer{
  grid-column:3;
  justify-self:end;
}
body.carrinho-checkout #cabecalho .cabecalho-logo h1{margin:0;line-height:0}
body.carrinho-checkout #cabecalho .cabecalho-logo h1 a,
body.carrinho-checkout #cabecalho .cabecalho-logo h1 a img{
  width:176px;
  height:68px;
  object-fit:contain;
  object-position:center;
}
body.carrinho-checkout #corpo{padding-top:0!important}
body.carrinho-checkout #corpo>.conteiner{padding:0 20px 44px}
body.carrinho-checkout #corpo>.conteiner::before{
  content:"1  DADOS   »   2  ENTREGA   »   3  PAGAMENTO";
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  margin:0 -20px 20px;
  background:#e8f3ff;
  color:#172b4d;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.carrinho-checkout :is(#formularioCheckout>.row-fluid>.span4,.resumo-compra){
  box-sizing:border-box;
  border:1px solid #dce7f4!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 8px 24px -16px #172b4d66!important;
}
body.carrinho-checkout #formularioCheckout>.row-fluid>.span4{padding:18px 16px 20px}
body.carrinho-checkout #formularioCheckout :is(.titulo,legend.titulo){color:#172b4d!important}
body.carrinho-checkout :is(#listaEndereco .accordion-group,#formasEnvio .accordion-group,#formasPagamento .li-box-payment){
  border-color:#dce7f4!important;
  border-radius:10px!important;
  background:#fff!important;
}
body.carrinho-checkout :is(#listaEndereco,#formasEnvio,#formasPagamento) .accordion-heading{color:#172b4d!important}
body.carrinho-checkout :is(input,select,textarea){border-color:#dce7f4!important;color:#172b4d!important;background:#f2f8ff!important}
body.carrinho-checkout :is(input[type=radio],input[type=checkbox]){accent-color:#0b68e8}
body.carrinho-checkout #finalizarCompra{
  display:flex!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden;
  min-height:48px!important;
  margin:18px 0 12px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:10px!important;
  background:#12b981!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:0 8px 18px -8px #12b981!important;
}
body.carrinho-checkout #finalizarCompra:hover{background:#0e9f6e!important}
body.carrinho-checkout #rodape{
  background:#172b4d!important;
  border-top:3px solid #0b68e8!important;
  color:#fff!important;
}
body.carrinho-checkout #rodape :is(a,p,span,small){color:#fff!important}

@media (max-width:767px){
  body.carrinho-checkout #cabecalho .cabecalho-conteudo{
    position:relative;
    display:flex!important;
    justify-content:center;
    min-height:58px;
    padding:0 8px;
  }
  body.carrinho-checkout #cabecalho .cabecalho-logo{
    display:block!important;
    grid-column:auto;
    margin:0 auto;
  }
  body.carrinho-checkout #cabecalho .cabecalho-logo h1 a,
  body.carrinho-checkout #cabecalho .cabecalho-logo h1 a img{
    display:block!important;
    width:120px;
    height:52px;
  }
  body.carrinho-checkout #cabecalho .cabecalho-disclaimer{
    position:absolute;
    top:50%;
    right:8px;
    grid-column:auto;
    transform:translateY(-50%);
  }
  body.carrinho-checkout #cabecalho .cabecalho-safety{
    gap:5px!important;
    padding:5px 8px!important;
    font-size:9px!important;
    white-space:nowrap;
  }
  body.carrinho-checkout #corpo>.conteiner{
    overflow:hidden;
    padding:0 12px 40px;
  }
  body.carrinho-checkout #formularioCheckout>.row-fluid>[class*=span]{
    float:none!important;
    width:100%!important;
    margin:0 0 14px!important;
  }
  body.carrinho-checkout .tabela-carrinho{
    display:block;
    width:100%;
    font-size:13px;
  }
  body.carrinho-checkout .tabela-carrinho thead{display:none}
  body.carrinho-checkout .tabela-carrinho :is(tbody,tfoot){display:block}
  body.carrinho-checkout .tabela-carrinho tr{
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:0 8px;
    min-height:52px;
    padding:7px 12px;
    box-sizing:border-box;
    border-bottom:1px solid #dce7f4;
  }
  body.carrinho-checkout .tabela-carrinho td{
    display:block;
    min-width:0;
    padding:0;
    border:0;
  }
  body.carrinho-checkout .tabela-carrinho .produto-info{
    min-width:0;
    overflow:hidden;
    font-size:12px;
    line-height:1.35;
  }
  body.carrinho-checkout .tabela-carrinho tr:not(:has(.conteiner-qtd)){
    display:flex;
    justify-content:space-between;
    min-height:0;
    padding:6px 12px;
    border:0;
  }
  body.carrinho-checkout .tabela-carrinho tr:last-child:not(:has(.conteiner-qtd)){
    margin-top:6px;
    padding:12px;
    background:#172b4d;
    color:#fff;
  }
  body.carrinho-checkout .tabela-carrinho tr:last-child:not(:has(.conteiner-qtd)) td{color:#fff}
}

/* Avaliações: reduzir a altura da seção sem deixar o depoimento mais longo esticar tudo. */
.customer-reviews{
  margin-block:1rem!important;
  padding:1rem 0!important;
}
.customer-reviews__layout{
  align-items:start!important;
  grid-template-columns:minmax(12rem,.72fr) minmax(0,2.28fr)!important;
}
.customer-reviews__intro{
  padding:1rem 1.5rem 1rem 0!important;
}
.customer-reviews__description{
  margin:.5rem 0 .75rem!important;
  font-size:.82rem!important;
  line-height:1.45!important;
}
.customer-reviews__carousel .embla,
.customer-reviews__carousel .embla__container,
.customer-reviews__carousel .embla__slide{
  height:auto!important;
}
.customer-reviews__carousel .embla__container{
  align-items:flex-start!important;
}
.customer-reviews__carousel .embla__slide{
  align-self:flex-start!important;
}
.customer-review-card{
  height:auto!important;
  min-height:0!important;
  max-height:22rem!important;
  padding:1rem!important;
}
.customer-review-card.is-expanded{
  max-height:none!important;
  overflow:visible!important;
}
.customer-review-card__avatar{
  width:2.5rem!important;
  height:2.5rem!important;
}
.customer-review-card__meta{
  margin:.7rem 0 .55rem!important;
}
.customer-review-card__text{
  display:-webkit-box!important;
  max-height:8.7em!important;
  margin:0 0 .65rem!important;
  overflow:hidden!important;
  font-size:.82rem!important;
  line-height:1.45!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:6!important;
}
.customer-review-card.is-expanded .customer-review-card__text{
  display:block!important;
  max-height:none!important;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
}
.customer-review-card__footer{
  padding-top:.6rem!important;
}

@media (max-width:767px){
  .customer-reviews{
    margin-block:.75rem!important;
    padding:.75rem 0!important;
  }
  .customer-reviews__layout{
    grid-template-columns:1fr!important;
    gap:1rem!important;
  }
  .customer-reviews__intro{
    padding:0!important;
  }
  .customer-review-card{
    max-height:19rem!important;
  }
  .customer-review-card__text{
    max-height:8.7em!important;
    -webkit-line-clamp:6!important;
  }
}
