/* Escopo restrito ao WooCommerce — Minha Conta. */
.woocommerce-account .woocommerce-MyAccount-navigation a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  outline: 2px solid #6b1e3b;
  outline-offset: 2px;
}

/* Respeita cabeçalho fixo e áreas seguras do dispositivo. */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account #jf-account-destination {
  scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px));
}

.woocommerce-account .woocommerce-MyAccount-content[tabindex="-1"]:focus {
  outline: none;
}

/* Marcador invisível que serve como destino de navegação. */
.woocommerce-account #jf-account-destination {
  display: block;
  height: 0;
  position: relative;
}

@media (max-width: 767px) {
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-account #jf-account-destination {
    scroll-margin-top: calc(60px + env(safe-area-inset-top, 0px));
  }
}
