/* SDFood — correção final das abas do perfil DESKTOP.
   Escopo intencional: somente body.sd-desktop + media query desktop.
   Não aplicar em mobile. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay > .drawer.profile-drawer,
  html body.sd-desktop #overlay.sd-delivery-overlay > .drawer.sd-delivery-drawer {
    width: min(430px, 100vw) !important;
    max-width: 430px !important;
    min-width: 0 !important;
    height: 100% !important;
    max-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
    background: #fff !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-notif-page,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 18px 20px 28px !important;
    gap: 14px !important;
    overflow-x: hidden !important;
    background: #fff !important;
    color: #000000 !important;
    font-family: "Inter", sans-serif !important;
  }

  /* Cabeçalho igual ao Histórico: título legível, sem corte e sem faixa roxa. */
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage-head,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-head,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-head,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subhead-text,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-subhead-text {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    color: #000000 !important;
    font: 600 17px/1.25 "Inter", sans-serif !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage-back,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-back {
    position: static !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f3f3f3 !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage-back svg,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-back svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
  }

  /* STATUS DO PEDIDO — largura estável e texto sem esmagamento. */
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page {
    display: block !important;
    padding-top: 18px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-notif-body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-status-section-title {
    margin: 0 0 10px !important;
    color: #000000 !important;
    font: 400 14px/1.3 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-order,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-order.is-pinned {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 14px !important;
    padding: 12px 0 14px !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeef !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-order-head {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 9px !important;
    margin: 0 0 10px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-store-copy {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-store,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-availability,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-eta-text,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-eta-label,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-eta-text strong {
    max-width: 100% !important;
    color: #5f6065 !important;
    font: 400 14px/1.3 "Inter", sans-serif !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-store { color: #000000 !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-progress {
    width: 100% !important;
    height: 2px !important;
    margin: 0 0 8px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    min-height: 42px !important;
    gap: 8px !important;
    margin: 8px 0 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-action {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #000000 !important;
    color: #fff !important;
    font: 400 14px/1.25 "Inter", sans-serif !important;
    white-space: normal !important;
  }

  /* CARTEIRA — mesma cadência do Histórico, sem fundos decorativos. */
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref * {
    box-sizing: border-box !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px 20px 28px !important;
    overflow-x: hidden !important;
    background: #fff !important;
    background-image: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref::before,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref::after,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref *::before,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref *::after {
    animation: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-economy-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 14px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-economy-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 72px !important;
    gap: 12px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-coupon-art {
    width: 76px !important;
    height: 58px !important;
    object-fit: contain !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-actions-ref {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-actions-ref .wallet-action {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 16px !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 60px !important;
    padding: 10px 12px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-action-icon {
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #f0f0f0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-action-text {
    min-width: 0 !important;
    text-align: left !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-action-text strong {
    display: block !important;
    color: #000000 !important;
    font: 600 14px/1.2 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-action-text small {
    display: block !important;
    color: #000000 !important;
    font: 400 12px/1.3 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-history-head h3,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-section-label {
    margin: 0 !important;
    color: #000000 !important;
    font: 600 15px/1.3 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .wallet-history-card,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref .sd-hist-card {
    width: 100% !important;
    min-width: 0 !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px !important;
    background: #faf9fc !important;
    box-shadow: none !important;
  }

  /* CÓDIGO DE ENTREGA — sem hero/Lottie/background; código atual e Seus pedidos. */
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen {
    display: block !important;
    padding: 18px 20px 28px !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-hero-card,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-hero-card::before,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-hero-card::after,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-lottie,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-hero-copy,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-label-hero,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-howto {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: none !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    transform: none !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 64px !important;
    margin: 0 0 14px !important;
    padding: 10px 12px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 14px !important;
    background: #faf9fc !important;
    box-shadow: none !important;
    transform: none !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-digit {
    width: 34px !important;
    min-width: 28px !important;
    height: 40px !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #000000 !important;
    font: 600 16px/1 "Inter", sans-serif !important;
    letter-spacing: 0 !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-store-block {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    text-align: left !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-store-name {
    width: auto !important;
    color: #000000 !important;
    font: 600 14px/1.3 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-status-pill {
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: #f0f0f0 !important;
    color: #000000 !important;
    font: 400 13px/1.2 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-orders {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-orders h3 {
    margin: 0 0 10px !important;
    color: #000000 !important;
    font: 600 15px/1.3 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-orders .sd-hist-tabs {
    margin: 0 0 10px !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-order-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px !important;
    background: #faf9fc !important;
    box-shadow: none !important;
  }
}

/* Reforço de especificidade contra as folhas legadas do hero de entrega. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-hero-card,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-hero-card::before,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-hero-card::after,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-lottie,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-hero-copy,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-label-hero {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: none !important;
  }
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen .sd-delivery-code-body {
    margin-top: 14px !important;
    transform: none !important;
  }
}

/* Endereços: preservar o visual limpo, mas devolver respiro entre blocos e campos. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage:has(#favoriteAddressForm) {
    display: block !important;
    padding: 24px 26px 36px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage:has(#favoriteAddressForm) .sd-subpage-head {
    margin-bottom: 16px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage:has(#favoriteAddressForm) > .upload-note {
    margin: 0 0 22px !important;
    color: #000000 !important;
    font: 400 14px/1.5 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressesList {
    display: grid !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressesList .favorite-address-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 0 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeef !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressesList .favorite-address-copy {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressesList .favorite-address-copy strong {
    color: #000000 !important;
    font: 600 14px/1.25 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressesList .favorite-address-copy span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: #5f6065 !important;
    font: 400 14px/1.35 "Inter", sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressesList .favorite-address-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressesList .favorite-address-actions button {
    min-width: 78px !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
    border: 1px solid #dadada !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    font: 400 14px/1 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage:has(#favoriteAddressForm) .profile-section-title {
    margin: 26px 0 16px !important;
    color: #000000 !important;
    font: 600 15px/1.3 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm {
    display: grid !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm .field {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm .field label {
    color: #000000 !important;
    font: 600 13px/1.2 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm .field input {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 13px !important;
    border: 1px solid #dadada !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    font: 400 14px/1 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm .map-help,
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm .upload-note {
    margin: 0 !important;
    color: #000000 !important;
    font: 400 12px/1.4 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressMapWrap {
    margin: 0 0 2px !important;
    border-radius: 12px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm .two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm button.primary {
    min-height: 46px !important;
    margin-top: 4px !important;
    border-radius: 12px !important;
  }
}

/* Padrão único de todas as abas do perfil desktop: referência Endereços. */
@media (min-width: 769px) {
  /* Superfície branca e remoção de temas decorativos/efeitos antigos. */
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-notif-page,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-screen,
  html body.sd-desktop #overlay.sd-order-track-detail-active .sd-order-track-detail-screen {
    background: #fff !important;
    background-image: none !important;
    color: #000000 !important;
    font-family: "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen::before,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen::after,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage::before,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage::after,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page::before,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page::after,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-notif-page::before,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-notif-page::after,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref::before,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen *,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage *,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page *,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-notif-page *,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-ref * {
    font-family: "Inter", sans-serif !important;
  }

  /* Tipografia comum. */
  html body.sd-desktop #overlay.sd-profile-overlay h1,
  html body.sd-desktop #overlay.sd-profile-overlay h2,
  html body.sd-desktop #overlay.sd-profile-overlay h3,
  html body.sd-desktop #overlay.sd-delivery-overlay h1,
  html body.sd-desktop #overlay.sd-delivery-overlay h2,
  html body.sd-desktop #overlay.sd-delivery-overlay h3 {
    color: #000000 !important;
    letter-spacing: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay p,
  html body.sd-desktop #overlay.sd-profile-overlay span,
  html body.sd-desktop #overlay.sd-profile-overlay small,
  html body.sd-desktop #overlay.sd-delivery-overlay p,
  html body.sd-desktop #overlay.sd-delivery-overlay span,
  html body.sd-desktop #overlay.sd-delivery-overlay small {
    line-height: 1.4 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .upload-note,
  html body.sd-profile-overlay .deposit-intro,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-subtitle {
    color: #000000 !important;
    font: 400 14px/1.5 "Inter", sans-serif !important;
  }

  /* Cards sem preenchimento colorido: apenas separação leve e espaço. */
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-game,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-track-order,
  html body.sd-desktop #overlay.sd-profile-overlay .favorite-address-card,
  html body.sd-desktop #overlay.sd-profile-overlay .terms-option,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-economy-card,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-action,
  html body.sd-delivery-overlay .sd-delivery-order-card {
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-game {
    border: 0 !important;
    border-bottom: 1px solid #eeeeef !important;
    border-radius: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item {
    min-height: 62px !important;
    padding: 12px 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu {
    gap: 0 !important;
  }

  /* Todos os formulários seguem o mesmo ritmo da tela Endereços. */
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid {
    display: grid !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid .field {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid label {
    color: #000000 !important;
    font: 600 13px/1.2 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid select,
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid textarea {
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    padding: 10px 13px !important;
    border: 1px solid #dadada !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    font: 400 14px/1.35 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid textarea { min-height: 92px !important; }
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid .map-help,
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid .upload-note {
    margin: 0 !important;
    color: #000000 !important;
    font: 400 12px/1.4 "Inter", sans-serif !important;
  }

  /* Botões: mesma linguagem dos botões Usar/Excluir de Endereços. */
  html body.sd-desktop #overlay.sd-profile-overlay button.small-outline,
  html body.sd-desktop #overlay.sd-profile-overlay button.outline,
  html body.sd-desktop #overlay.sd-profile-overlay button.sd-track-action,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-track-action,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-action,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-copy {
    border: 1px solid #dadada !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    box-shadow: none !important;
    font: 400 14px/1.2 "Inter", sans-serif !important;
    transform: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay button.small-outline,
  html body.sd-desktop #overlay.sd-profile-overlay button.outline {
    min-height: 42px !important;
    padding: 8px 12px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-track-action {
    min-height: 42px !important;
    padding: 8px 12px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-track-action:hover,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-track-action:focus,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-track-action:active,
  html body.sd-desktop #overlay.sd-profile-overlay button.small-outline:hover,
  html body.sd-desktop #overlay.sd-profile-overlay button.outline:hover {
    border-color: #f3f4f6 !important;
    background: #fff !important;
    color: #000000 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-action {
    border: 0 !important;
    background: #000000 !important;
    color: #fff !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-action:hover,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-action:focus,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-status-page .sd-track-action:active {
    border-color: transparent !important;
    background: #000000 !important;
    color: #fff !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid button.primary,
  html body.sd-desktop #overlay.sd-profile-overlay button[type="submit"] {
    min-height: 46px !important;
    margin-top: 4px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #000000 !important;
    color: #fff !important;
    font: 600 14px/1.2 "Inter", sans-serif !important;
    box-shadow: none !important;
  }

  /* Abas/filtros também ficam planos, com a mesma borda dos botões. */
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-tabs,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-history-tabs {
    display: flex !important;
    gap: 8px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-tab,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-history-tab {
    min-height: 38px !important;
    padding: 8px 12px !important;
    border: 1px solid #dadada !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    font: 400 14px/1.2 "Inter", sans-serif !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-tab.is-active,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-history-tab.is-active {
    border-color: #000000 !important;
    background: #fff !important;
    color: #000000 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }

  /* Mensagens vazias sem bloco lilás decorativo. */
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-empty,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-history-empty,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-delivery-orders-empty {
    margin: 0 !important;
    padding: 22px 14px !important;
    border: 1px solid #eeeeef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    text-align: center !important;
  }
}

/* Ajuste final solicitado: Carteira minimalista e margens internas consistentes. */
@media (min-width: 769px) {
  /* O painel não fica mais colado na borda: cada tela controla seu próprio respiro. */
  html body.sd-desktop #overlay.sd-profile-overlay > .drawer.profile-drawer {
    padding: 0 !important;
    overflow: hidden !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-notif-page {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 100% !important;
    padding: 24px 26px 36px !important;
    overflow-x: hidden !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage-head,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-head {
    margin: 0 0 18px !important;
  }

  /* Carteira: remover economia, atualizar, usar, transações e qualquer fundo roxo. */
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer::before,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer::after,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref::before,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref::after,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref *::before,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref *::after {
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref::before,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref::after,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref *::before,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref *::after {
    display: none !important;
    content: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-economy-card,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-section-label,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref #walletRefreshBtn,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref #walletUseBtn,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-history-head,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref #walletHistoryFilters,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref #walletDepositHistory {
    display: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 100% !important;
    padding: 24px 26px 36px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref > .sd-subpage-head {
    align-self: stretch !important;
    margin: 0 0 48px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref {
    display: flex !important;
    width: 100% !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:hover,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref .wallet-action:focus {
    display: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref #walletDepositBtn {
    display: flex !important;
    width: min(100%, 300px) !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 auto !important;
    padding: 12px 20px !important;
    border: 1px solid #dadada !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    box-shadow: none !important;
    font: 600 14px/1.2 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref #walletDepositBtn .wallet-action-icon {
    display: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref #walletDepositBtn .wallet-action-text {
    display: block !important;
    text-align: center !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref #walletDepositBtn .wallet-action-text strong {
    color: #000000 !important;
    font: 600 14px/1.2 "Inter", sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref #walletDepositBtn .wallet-action-text small {
    display: none !important;
  }

  /* Histórico: margem igual a Endereços e área vazia centralizada. */
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page {
    display: block !important;
    padding: 24px 26px 36px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subpage-head {
    margin-bottom: 16px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-subtitle {
    margin: 0 0 22px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tabs {
    width: 100% !important;
    margin: 0 0 22px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-list-wrap,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-list {
    width: 100% !important;
    margin: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-empty {
    min-height: 130px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  /* Dados pessoais: mesmo recuo, tipografia e ritmo de Endereços. */
  html body.sd-desktop #overlay.sd-profile-overlay .sd-subpage:has(#profileForm) {
    display: block !important;
    padding: 24px 26px 36px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #profileForm {
    margin-top: 6px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay #profileForm .sd-checkout-block-note {
    margin: 0 0 20px !important;
    padding: 12px 14px !important;
    border: 1px solid #dadada !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    font: 400 13px/1.45 "Inter", sans-serif !important;
  }
}

/* Override de especificidade: neutraliza definitivamente o tema antigo da Carteira. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-economy-card,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-section-label,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref #walletRefreshBtn,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref #walletUseBtn,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-history-head,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref #walletHistoryFilters,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref #walletDepositHistory {
    display: none !important;
    visibility: hidden !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref * {
    background: #fff !important;
    background-image: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref .wallet-actions-ref #walletDepositBtn {
    display: flex !important;
    visibility: visible !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* O fundo roxo vinha do pseudo-elemento legado wallet-ref::before. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref::before,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) > .drawer.profile-drawer:has(.wallet-ref) .wallet-ref::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}

/* Bordas da referência Endereços em todo o perfil desktop. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item {
    box-sizing: border-box !important;
    margin: 0 0 10px !important;
    padding: 12px 14px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px !important;
    background: #fff !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item:last-child {
    margin-bottom: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item:hover,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-menu-item:focus-visible {
    border-color: #f3f4f6 !important;
    background: #fff !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-game,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-card,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-history-card,
  html body.sd-desktop #overlay.sd-profile-overlay .terms-option,
  html body.sd-profile-overlay .sd-notification-item,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-order-card,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-code-card,
  html body.sd-desktop #overlay.sd-order-track-detail-active .sd-order-track-items,
  html body.sd-desktop #overlay.sd-order-track-detail-active .sd-order-track-store-row {
    box-sizing: border-box !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-account-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-summary-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-game {
    padding: 14px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-card,
  html body.sd-desktop #overlay.sd-profile-overlay .wallet-history-card,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-order-card {
    margin: 0 0 12px !important;
    padding: 14px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .terms-option {
    min-height: 56px !important;
    margin: 0 0 10px !important;
    padding: 12px 14px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .terms-list,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-list,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-orders-list {
    gap: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay:has(.wallet-ref) .wallet-ref .wallet-actions-ref #walletDepositBtn {
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid .field input,
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid .field select,
  html body.sd-desktop #overlay.sd-profile-overlay .form-grid .field textarea,
  html body.sd-desktop #overlay.sd-profile-overlay #favoriteAddressForm input {
    border: 1px solid #e9e9e9 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-checkout-block-note {
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px !important;
  }
}

/* Correção de especificidade para o menu legado e cards das subabas. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen .profile-menu-item.sd-profile-menu-item {
    width: calc(100% - 20px) !important;
    min-height: 66px !important;
    margin: 0 10px 10px !important;
    padding: 12px 14px !important;
    border: 1px solid #dadada !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen .profile-menu-item.sd-profile-menu-item:last-child {
    margin-bottom: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-profile-screen .sd-profile-account-card {
    margin: 0 10px 16px !important;
    width: calc(100% - 20px) !important;
    border: 1px solid #dadada !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-card,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-empty,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-list-wrap,
  html body.sd-desktop #overlay.sd-delivery-overlay .sd-delivery-order-card,
  html body.sd-desktop #overlay.sd-order-track-detail-active .sd-order-track-items,
  html body.sd-desktop #overlay.sd-order-track-detail-active .sd-order-track-store-row {
    border: 1px solid #dadada !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-card {
    margin: 0 0 12px !important;
    padding: 14px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-empty {
    padding: 22px 14px !important;
  }
}

/* Histórico: contorno visível igual ao da referência enviada. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tabs .sd-hist-tab,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-list-wrap > .sd-hist-empty,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-list-wrap > .sd-hist-list {
    border: 1px solid #cfcfcf !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tabs .sd-hist-tab {
    min-height: 40px !important;
    background: #fff !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-list-wrap > .sd-hist-empty {
    display: flex !important;
    min-height: 132px !important;
    margin: 0 !important;
    padding: 22px 16px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
}

/* Histórico v8: borda explícita no elemento real gerado por profileOrdersListHtml. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page #profileOrdersList .sd-hist-empty {
    display: flex !important;
    width: 100% !important;
    min-height: 132px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 22px 16px !important;
    border: 1px solid #c3c3c3 !important;
    border-radius: 12px !important;
    outline: 1px solid rgba(195, 195, 195, .45) !important;
    outline-offset: -1px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tabs .sd-hist-tab {
    border: 1px solid #c3c3c3 !important;
    outline: 1px solid rgba(195, 195, 195, .28) !important;
    outline-offset: -1px !important;
  }
}

/* Histórico v10: override final do desktop/profile-tabs-fix.css. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tabs.sd-hist-tabs {
    border: 1px solid #c3c3c3 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 4px !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab.is-active,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab[aria-selected="true"] {
    border: 1px solid #c3c3c3 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
}

/* Histórico v11: acabamento limpo igual à aba Endereços. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page {
    display: block !important;
    width: 100% !important;
    padding: 24px 26px 36px !important;
    overflow-x: hidden !important;
    background: #fff !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subpage-head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subpage-head::before,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subpage-head::after,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subhead-text::before,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subhead-text::after,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subpage-back::before,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subpage-back::after {
    content: none !important;
    display: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subpage-back {
    position: static !important;
    display: grid !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f3f3f3 !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subpage-back svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-subhead-text {
    display: block !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
    color: #000000 !important;
    font: 600 17px/1.25 Inter, sans-serif !important;
    white-space: nowrap !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-subtitle {
    display: block !important;
    margin: 0 0 22px !important;
    color: #000000 !important;
    font: 400 14px/1.5 Inter, sans-serif !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tabs {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab.is-active,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab[aria-selected="true"] {
    display: flex !important;
    flex: 1 1 0 !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #000000 !important;
    font: 400 14px/1.2 Inter, sans-serif !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab.is-active,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab[aria-selected="true"] {
    color: #000000 !important;
    font-weight: 600 !important;
  }
}

/* Histórico v12: não duplicar a borda do grupo com a borda de cada filtro. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tabs.sd-hist-tabs {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab.is-active,
  html body.sd-desktop #overlay.sd-profile-overlay .sd-hist-page .sd-hist-tab[aria-selected="true"] {
    border: 1px solid #d8d8d8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}
