/* Botões do tema preto: contraste claro igual à referência WG Esteira. */
:root {
  --montanha-dark-button-bg: #f3f0eb;
  --montanha-dark-button-text: #66635f;
  --montanha-dark-button-border: #f3f0eb;
}

html body .ui-button.ui-button--primary:not(#insideLoginSubmitClick):not(#insideRegisterSubmitClick),
html body button.ui-button--primary:not(#insideLoginSubmitClick):not(#insideRegisterSubmitClick) {
  border-color: var(--montanha-dark-button-border) !important;
  background: var(--montanha-dark-button-bg) !important;
  background-color: var(--montanha-dark-button-bg) !important;
  background-image: none !important;
  color: var(--montanha-dark-button-text) !important;
  -webkit-text-fill-color: var(--montanha-dark-button-text) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

html body .ui-button.ui-button--primary:not(#insideLoginSubmitClick):not(#insideRegisterSubmitClick) *,
html body button.ui-button--primary:not(#insideLoginSubmitClick):not(#insideRegisterSubmitClick) * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  text-shadow: none !important;
}

html body #app [class*="_btn_"]:has(#loginClick) {
  border: 1px solid var(--montanha-dark-button-border) !important;
  background: var(--montanha-dark-button-bg) !important;
  background-color: var(--montanha-dark-button-bg) !important;
  background-image: none !important;
  color: var(--montanha-dark-button-text) !important;
  box-shadow: none !important;
}

html body #app #loginClick,
html body #app [class*="_btn_"]:has(#loginClick) * {
  color: var(--montanha-dark-button-text) !important;
  -webkit-text-fill-color: var(--montanha-dark-button-text) !important;
  text-shadow: none !important;
}

html body .montanha-submit-tip-anchor .tips {
  background: var(--montanha-dark-button-bg) !important;
  color: var(--montanha-dark-button-text) !important;
  border: 1px solid rgba(102, 99, 95, .22) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22) !important;
}

html body .montanha-submit-tip-anchor .tips::before {
  border-bottom-color: var(--montanha-dark-button-bg) !important;
}

/* Modal Registro/Login: botão de ação creme #f6e4c7 */
html body #app #insideLoginSubmitClick,
html body #app #insideRegisterSubmitClick,
html body .ui-dialog[class*="_loginRegisterDialog_"] #insideLoginSubmitClick,
html body .ui-dialog[class*="_loginRegisterDialog_"] #insideRegisterSubmitClick,
html body #insideLoginSubmitClick,
html body #insideRegisterSubmitClick {
  border-color: #f6e4c7 !important;
  background: #f6e4c7 !important;
  background-color: #f6e4c7 !important;
  background-image: none !important;
  color: #5c5955 !important;
  -webkit-text-fill-color: #5c5955 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

html body #app #insideLoginSubmitClick *,
html body #app #insideRegisterSubmitClick *,
html body .ui-dialog[class*="_loginRegisterDialog_"] #insideLoginSubmitClick *,
html body .ui-dialog[class*="_loginRegisterDialog_"] #insideRegisterSubmitClick *,
html body #insideLoginSubmitClick *,
html body #insideRegisterSubmitClick * {
  color: #5c5955 !important;
  -webkit-text-fill-color: #5c5955 !important;
  text-shadow: none !important;
}

/* Navegação inferior: item Começar ativo e sua casa em branco. */
html body #app [class*="_main_gtdvm_"] .ui-tab--active,
html body #app [class*="_main_gtdvm_"] .ui-tab--active [class*="_text_"],
html body #app [class*="_main_gtdvm_"] .ui-tab--active svg,
html body #app [class*="_main_gtdvm_"] .ui-tab--active use {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

/* Cabeçalho: Login claro e Registro preto com contorno branco, como a referência. */
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#loginClick),
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#registerClickModal) {
  min-height: 28px !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  background-image: none !important;
}

html body #app [class*="_un-login_"] [class*="_btn_"]:has(#loginClick)::before,
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#loginClick)::after,
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#registerClickModal)::before,
html body #app [class*="_un-login_"] [class*="_btn_"]:has(#registerClickModal)::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html body #app [class*="_un-login_"] [class*="_btn_"]:has(#loginClick) {
  border: 1px solid #f3f0eb !important;
  background: #f3f0eb !important;
  background-color: #f3f0eb !important;
}

html body #app [class*="_un-login_"] [class*="_btn_"]:has(#registerClickModal) {
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body #app #loginClick,
html body #app #registerClickModal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body #app #loginClick {
  color: #5c5955 !important;
  -webkit-text-fill-color: #5c5955 !important;
}

html body #app #registerClickModal {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* O modal de download usa o ícone quadrado da própria MaresiaPG. */
html body #montanha-download-choice .montanha-choice-head img {
  object-fit: cover !important;
  object-position: left center !important;
}
