/* =========================================================
   "Olá, [Nome]" — forçar em 1 linha e centralizado
   (mantido do seu arquivo original)
   ========================================================= */
.elementor .elementor-widget-shortcode .vs-account-link {
  display: inline-flex !important;     /* coloca tudo na mesma linha */
  align-items: center !important;
  gap: 6px !important;                 /* espaço entre emoji e texto */
  white-space: nowrap !important;      /* impede quebra de linha */
  line-height: 1.2 !important;

  background: #fff;
  border-radius: 24px;
  padding: 6px 12px;
  box-shadow: 0 0 3px rgba(0,0,0,.1);
  color: #111 !important;
  text-decoration: none !important;

  /* remove “puxão” para a esquerda e centraliza o bloco */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Emoji dentro do link */
.elementor .elementor-widget-shortcode .vs-account-link img.emoji {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* Em telas pequenas, mantém compacto e central */
@media (max-width: 767px) {
  .elementor .elementor-widget-shortcode .vs-account-link {
    font-size: 14px !important;
    padding: 5px 10px !important;
    gap: 5px !important;
  }
}

/* =========================================================
   Footer SAFE em Carrinho/Checkout
   — evita que regras de carrinho “forcem” modo mobile no rodapé
   — escopo apenas para /cart e /checkout (não afeta o resto)
   ========================================================= */
body.woocommerce-cart,
body.woocommerce-checkout {
  min-height: 100vh;
}

body.woocommerce-cart #page,
body.woocommerce-checkout #page,
body.woocommerce-cart .site,
body.woocommerce-checkout .site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* conteúdo cresce, footer fica no fim */
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content,
body.woocommerce-cart main,
body.woocommerce-checkout main {
  flex: 1 0 auto;
}

/* rodapé não encolhe nem “vira mobile” por herança indevida */
body.woocommerce-cart .elementor-location-footer,
body.woocommerce-checkout .elementor-location-footer,
body.woocommerce-cart .site-footer,
body.woocommerce-checkout .site-footer {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  clear: both;
  margin-top: 24px; /* respiro do conteúdo do carrinho */
}

/* garante container centralizado do footer */
body.woocommerce-cart .elementor-location-footer .elementor-section,
body.woocommerce-checkout .elementor-location-footer .elementor-section {
  max-width: var(--e-global-content-width, 1140px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* neutraliza algum display:flex herdado no container do footer */
body.woocommerce-cart .elementor-location-footer .elementor-container,
body.woocommerce-checkout .elementor-location-footer .elementor-container {
  display: block; /* ajuste para seu footer; use grid se preferir */
}

/* se a barra de cookies estiver visível, dá respiro para o rodapé */
#vsCookieBar[style*="display: block"] ~ .site-footer,
#vsCookieBar[style*="display:block"] ~ .site-footer {
  padding-bottom: 70px; /* ajuste conforme a altura da sua barra */
}

/* Hardening: evita estouro horizontal por 100vw/overflow */
body.woocommerce-cart .elementor-location-footer *,
body.woocommerce-checkout .elementor-location-footer * {
  max-width: 100%;
  box-sizing: border-box;
}
/* ==== Footer em linha (desktop) só no Carrinho/Checkout ==== */
@media (min-width: 1025px) {
  /* garante container central e largura de desktop */
  body.woocommerce-cart .elementor-section.elementor-section-boxed > .elementor-container,
  body.woocommerce-checkout .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--e-global-content-width, 1140px);
    margin-left: auto;
    margin-right: auto;
  }

  /* força o footer a usar linhas de desktop (não “coluna”) */
  body.woocommerce-cart .elementor-location-footer .elementor-container,
  body.woocommerce-checkout .elementor-location-footer .elementor-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
  }

  /* cada coluna ocupa fração igual (ajuste se tiver 4 colunas = 25%) */
  body.woocommerce-cart .elementor-location-footer .elementor-column,
  body.woocommerce-checkout .elementor-location-footer .elementor-column {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* segurança: evita algum 100vw/overflow empurrar o layout */
body.woocommerce-cart .elementor-location-footer *,
body.woocommerce-checkout .elementor-location-footer * {
  max-width: 100%;
  box-sizing: border-box;
}

/* mantém o rodapé visível acima de camadas do carrinho */
body.woocommerce-cart .elementor-location-footer,
body.woocommerce-checkout .elementor-location-footer {
  position: relative;
  z-index: 1;
}
