/* MA Hospitalar: ajustes visuais solicitados pelo cliente em 28/09/2026. */

/* Keep the full account label visible in the fixed desktop shortcut track. */
.ma-header .header-account .jet-user-login,
.ma-header .header-account jet-user-login,
.ma-header .header-account .jet-user-login > span,
.ma-header .header-account jet-user-login > span {
  overflow: visible;
  text-overflow: clip;
}

/* Align the social links with their heading and separate payment marks. */
.ma-footer .ma-footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ma-footer .ma-footer-social > h2 {
  text-align: left;
}

.ma-footer .ma-footer-social jet-social-network {
  display: block;
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
}

.ma-footer .ma-footer-social .jet-social-network {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ma-footer .jet-social-network ul {
  width: max-content;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.ma-footer .jet-social-network li:has(a.youtube) {
  order: 1;
}

.ma-footer .jet-social-network li:has(a.facebook) {
  order: 2;
}

.ma-footer .jet-social-network li:has(a.instagram) {
  order: 3;
}

.ma-footer .jet-social-network li:has(a.linkedin) {
  order: 4;
}

.ma-footer .jet-social-network li:has(a.blogger) {
  order: 5;
}

.ma-footer .jet-social-network li:has(a.whatsapp) {
  order: 6;
}

.ma-footer .jet-social-network a.blogger {
  background-image: url('/assets/icons/footer/blog.svg');
}

.ma-footer .jet-social-network a.whatsapp {
  background-image: url('/assets/icons/footer/whatsapp.svg');
}

.ma-footer .ma-footer-payment-options {
  gap: 16px;
}

/* Keep the additional social links on a second row beside the payment column. */
@media screen and (min-width: 992px) {
  .ma-footer .ma-footer-navigation > .ma-footer-column:nth-child(4) {
    padding-right: 0;
  }

  .ma-footer .ma-footer-social .jet-social-network ul {
    display: grid;
    grid-template-columns: repeat(4, 29px);
    justify-content: start;
  }
}

/* Match the card surface while preserving JET's card-relative wishlist. */
.ma-list .ma-list-products .ma-list-product-card > .jet-card {
  border: 1px solid var(--bgBorder);
  border-radius: 8px;
  background: var(--white);
}

/* Let the native JET card place flags below the image; keep discount text legible. */
.ma-list .ma-list-products .ma-list-product-card > .jet-card .flag-discount,
.ma-list .ma-list-products .ma-list-product-card > .jet-card .jet-product-flag-discount {
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  box-sizing: border-box;
  line-height: 1.2;
  white-space: nowrap;
}

/* Keep description children within the padded native component. */
.ma-detail .ma-detail-information-content > * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

@media screen and (max-width: 991px) {
  .ma-footer .ma-footer-social {
    align-items: center;
  }

  .ma-footer .ma-footer-social > h2 {
    text-align: center;
  }

  .ma-footer .ma-footer-social jet-social-network,
  .ma-footer .ma-footer-social .jet-social-network {
    align-self: center;
    width: 100%;
  }

  .ma-footer .jet-social-network ul {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

}

/* Item 10 — ícone de WhatsApp no Atendimento. */
.ma-footer .ma-footer-accordion:nth-child(4) #ma-footer-attendance .phone::before {
  background: var(--pc);
  -webkit-mask: url("/assets/icons/whatsapp.svg") center / contain no-repeat;
  mask: url("/assets/icons/whatsapp.svg") center / contain no-repeat;
}

/* Item 18 (06/10/2026): campanha de frete grátis com meta de R$ 599,00 reativada.
   Regra de ocultação do item 14 desativada; a disponibilidade depende do CEP. */
/*
body .floating-preview .jet-cart-preview .cart-summary > .ma-cart-free-shipping {
  display: none;
}
*/

/* Espaçamento da frase mantido para quando a régua for reativada. */
.floating-preview .ma-cart-free-shipping-message > span {
  margin-inline: .25em;
}
