/* SDFood — redesign visual da carteira, isolado da lógica e das integrações. */

/* Fundo branco e remoção do acabamento roxo do design anterior. */

html body #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer,
html body #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer::before,
html body #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer::after {
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  border-top: 0 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer::before,
html body #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer::after {
  content: none !important;
  display: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref {
  position: relative !important;
  isolation: isolate !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 10px 22px !important;
  background: #fff !important;
  color: #000000 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref::before,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref::after {
  content: none !important;
  display: none !important;
}

/* Cabeçalho e botão voltar preservados. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref > .sd-subpage-head {
  min-height: 46px !important;
  margin: 0 -10px 10px !important;
  padding: 0 10px !important;
  background: #fff !important;
  color: #000000 !important;
  box-shadow: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref > .sd-subpage-head .sd-subhead-text {
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .sd-subpage-back,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .sd-subpage-back svg,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .sd-subpage-back path {
  color: #000000 !important;
  stroke: currentColor !important;
}

/* Cartão de economia em dimensão ampliada, mantendo a ilustração e os dados existentes. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-card {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 15px !important;
  padding: 14px 13px 11px !important;
  overflow: hidden !important;
  border: 1px solid #e9ebf0 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #20212a !important;
  box-shadow: 0 1px 3px rgba(28, 35, 54, .04) !important;
  box-sizing: border-box !important;
  cursor: default !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  min-height: 66px !important;
  gap: 12px !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-copy {
  min-width: 0 !important;
  padding-top: 0 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-copy > small {
  display: block !important;
  color: #777984 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-value-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 5px !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref #walletBalanceValue {
  display: block !important;
  margin: 0 !important;
  color: #000000 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -.02em !important;
  white-space: nowrap !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-visibility-toggle {
  --wallet-eye-size: 16px !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-visibility-toggle .eye,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-visibility-toggle .eye-slash {
  width: 16px !important;
  height: 16px !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-coupon-art {
  display: block !important;
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 60px !important;
  margin: -2px 0 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-periods {
  display: grid !important;
  grid-template-columns: 1.18fr 1fr 1fr !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 42px !important;
  padding: 9px 0 6px !important;
  border-top: 1px solid #e8eaf0 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-period {
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 0 8px !important;
  border-left: 1px solid #e8eaf0 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-period:first-child {
  padding-left: 0 !important;
  border-left: 0 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-period small {
  display: block !important;
  color: #777984 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-period strong {
  display: block !important;
  margin-top: 3px !important;
  color: #000000 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-period-latest {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding-right: 6px !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-period-latest svg {
  flex: 0 0 17px !important;
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: #777984 !important;
  stroke-width: 1.5 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-updated {
  margin-top: 8px !important;
  color: #8c8e97 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

/* Ações mais largas e com espaço entre título, ativos e descrições. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-section-label {
  margin: 10px 0 17px !important;
  color: #000000 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref {
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 17px !important;
  padding: 0 2px !important;
  gap: 13px !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref::before,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref::after {
  content: none !important;
  display: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:hover,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:focus,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:focus-visible,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:active {
  position: relative !important;
  display: flex !important;
  flex: 1 1 0 !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-direction: column !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 132px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 9px 10px !important;
  gap: 11px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #000000 !important;
  text-align: left !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transform: none !important;
  transition: background-color .16s ease !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:focus-visible {
  outline: 2px solid #000000 !important;
  outline-offset: -2px !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action::after {
  content: "›" !important;
  position: absolute !important;
  top: 25px !important;
  right: -11px !important;
  display: block !important;
  color: #888b95 !important;
  font: 400 14px/1 "Inter", sans-serif !important;
  pointer-events: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action-icon {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #efefef !important;
  box-shadow: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action-icon img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action-text,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action > span:last-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  color: #000000 !important;
  text-align: left !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action .wallet-action-text strong {
  display: block !important;
  width: 100% !important;
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action .wallet-action-text small {
  display: block !important;
  width: 100% !important;
  color: #777984 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
}

/* Título de transações com hierarquia consistente. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-history-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 4px 0 10px !important;
  background: #fff !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-history-head h3 {
  margin: 0 !important;
  color: #000000 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

/* Peso tipográfico solicitado: 400 em todo o conteúdo da carteira. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref * {
  font-weight: 400 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref > .sd-subpage-head .sd-subhead-text,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref #walletBalanceValue,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-period strong,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-section-label,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action .wallet-action-text strong,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-history-head h3 {
  font-weight: 400 !important;
}

/* A nova imagem de economia tem formato paisagem; ampliar sua área de exibição. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-top {
  min-height: 82px !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-coupon-art {
  flex: 0 0 106px !important;
  width: 106px !important;
  height: 78px !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Ampliação responsiva do novo ativo, sem distorção nem reamostragem da imagem. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-top {
  min-height: clamp(90px, 28vw, 120px) !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-coupon-art {
  flex: 0 0 clamp(122px, 38vw, 160px) !important;
  width: clamp(122px, 38vw, 160px) !important;
  height: clamp(90px, 28vw, 120px) !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Ajuste pedido: volta à dimensão de exibição anterior do PNG e aproxima as setas dos ícones. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-top {
  min-height: 82px !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-coupon-art {
  flex: 0 0 106px !important;
  width: 106px !important;
  height: 78px !important;
  object-fit: contain !important;
  object-position: center !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action::after {
  left: 53px !important;
  right: auto !important;
  top: 25px !important;
}

/* Alinhamento final das setas: centro vertical dos ícones de cada ação. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action::after {
  top: 18px !important;
}

/* Apenas o card completo de Economia total fica branco, sem borda. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-card {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-card .wallet-economy-top,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-card .wallet-economy-periods,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-card .wallet-economy-period,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-card .wallet-economy-updated {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
/* Preserva a alternância funcional do ícone de visibilidade do saldo. */
  html body #overlay .drawer.profile-drawer:has(.wallet-ref) .wallet-visibility-toggle {
    --wallet-eye-color: #000000;
    --wallet-eye-size: 21px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--wallet-eye-size);
    width: var(--wallet-eye-size);
    height: var(--wallet-eye-size);
    margin-left: 2px;
    cursor: pointer;
    user-select: none;
    fill: var(--wallet-eye-color);
  }

  html body #overlay .drawer.profile-drawer:has(.wallet-ref) .wallet-visibility-toggle .eye,
  html body #overlay .drawer.profile-drawer:has(.wallet-ref) .wallet-visibility-toggle .eye-slash {
    position: absolute;
    width: var(--wallet-eye-size);
    height: var(--wallet-eye-size);
    animation: wallet-eye-fill .5s ease;
  }

  html body #overlay .drawer.profile-drawer:has(.wallet-ref) .wallet-visibility-toggle .eye-slash {
    display: none;
  }

  html body #overlay .drawer.profile-drawer:has(.wallet-ref) .wallet-visibility-toggle input:checked ~ .eye {
    display: none;
  }

  html body #overlay .drawer.profile-drawer:has(.wallet-ref) .wallet-visibility-toggle input:checked ~ .eye-slash {
    display: block;
  }

  html body #overlay .drawer.profile-drawer:has(.wallet-ref) .wallet-visibility-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  html body #overlay .drawer.profile-drawer:has(.wallet-ref) .wallet-visibility-toggle:focus-within {
    outline: none;
    box-shadow: none;
  }

  @keyframes wallet-eye-fill {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }


/* Carteira: fundo flat 2D da opção 03 e painel branco arredondado. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref {
  background: transparent !important;
  background-image: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -4px !important;
  left: -10px !important;
  right: -10px !important;
  height: 334px !important;
  background: #000000 url("../assets/images/wallet/wallet-background-option-03.png") center top / cover no-repeat !important;
  pointer-events: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 280px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  height: calc(100vh - 280px) !important;
  border-radius: 24px 24px 0 0 !important;
  background: #fff !important;
  pointer-events: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref > * {
  position: relative !important;
  z-index: 1 !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-card {
  margin-bottom: 60px !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref > .sd-subpage-head {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref > .sd-subpage-head .sd-subhead-text {
  color: #fff !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .sd-subpage-back,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .sd-subpage-back svg,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .sd-subpage-back path {
  color: #fff !important;
  stroke: currentColor !important;
}

/* Ajuste para revisão: centraliza o conteúdo das três ações sem alterar a estrutura. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action {
  align-items: center !important;
  text-align: center !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action-icon {
  margin-right: auto !important;
  margin-left: auto !important;
}
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action-text,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action > span:last-child {
  align-items: center !important;
  text-align: center !important;
}

/* Ajuste para revisão: borda discreta nos três botões de Ações. */
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:hover,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:focus,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:focus-visible,
html body #overlay.sd-profile-overlay:has(.wallet-ref) .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:active {
  border: 1px solid #e4e4e4 !important;
}
