/* R180 - ajustes isolados em revisao. Nao modifica dados nem navegacao de historico. */

/* O carrinho precisa estar acima da ficha, cujo overlay legado usa z-index:9999.
   O header dispara #cartBtn; ambos os caminhos devem exibir o carrinho. */
#cartModal.open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 21000 !important;
  display: flex !important;
}
#cartModal.open > .modal-card {
  position: relative;
  z-index: 1;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Somente Desktop: oculta o botao textual duplicado; a seta R90 permanece.
   Nao afeta PWA, mobile, barra do Admin nem seu fluxo de historico. */
@media (min-width: 821px) {
  html.gg-profile-desktop #r159DesktopBack {
    display: none !important;
  }
  html.gg-profile-desktop #r90HeaderBack:not([hidden]),
  html.gg-profile-desktop #r90CatalogBack:not([hidden]) {
    background: linear-gradient(135deg, #b77b00 0%, #d3a526 100%) !important;
    border-color: #c99718 !important;
    color: #fff !important;
  }
  html.gg-profile-desktop #r90HeaderBack svg,
  html.gg-profile-desktop #r90CatalogBack svg {
    stroke: currentColor !important;
  }
}
