/**
 * novos-dados-faturamento.html — somente desktop (>=992px).
 * Regra: sem (max-width: 991px) neste arquivo.
 */

@media only screen and (min-width: 992px) {
  html.novos-dados-faturamento-html {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 100%;
    background: #ededed !important;
  }

  body.novos-dados-faturamento-page[data-site='ML'][data-country='BR'] {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: #ededed !important;
  }

  body.novos-dados-faturamento-page #seguro-desktop-chrome {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.novos-dados-faturamento-page
    #seguro-desktop-chrome
    > header.nav-header.nav-header-plus.ui-navigation-v2.teste-header-offline {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    max-width: none !important;
    width: 100% !important;
    height: 49px !important;
    min-height: 49px !important;
    max-height: 49px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: #ffe600 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.18) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
  }

  body.novos-dados-faturamento-page
    #seguro-desktop-chrome
    .teste-header-bounds.nav-bounds.nav-bounds-with-cart {
    display: flex !important;
    align-items: center !important;
    max-width: 1920px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
  }

  body.novos-dados-faturamento-page #seguro-desktop-chrome .teste-header-row.teste-header-row-top {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-height: 49px !important;
    overflow: hidden !important;
  }

  body.novos-dados-faturamento-page #seguro-desktop-chrome .teste-header-logo {
    margin: 0 0 0 min(28vw, 340px) !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
  }

  body.novos-dados-faturamento-page #seguro-desktop-chrome .teste-header-logo .nav-logo.nav-logo-custom,
  body.novos-dados-faturamento-page #seguro-desktop-chrome .teste-header-logo .nav-logo-custom {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    line-height: 0 !important;
  }

  body.novos-dados-faturamento-page #seguro-desktop-chrome .teste-header-logo img {
    display: block !important;
    width: 133.64px !important;
    height: 34px !important;
    max-width: 133.64px !important;
    max-height: 34px !important;
    object-fit: contain !important;
    margin: 0 !important;
  }

  body.novos-dados-faturamento-page #seguro-desktop-chrome .teste-header-exhibitor-wrap {
    margin-left: auto !important;
    margin-right: 72px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    max-height: 49px !important;
    max-width: min(283px, 38vw) !important;
    overflow: hidden !important;
  }

  body.novos-dados-faturamento-page #seguro-desktop-chrome .teste-exhibitor-pill-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    max-height: 49px !important;
    overflow: hidden !important;
  }

  body.novos-dados-faturamento-page #seguro-desktop-chrome #testeHeaderBadgeImg,
  body.novos-dados-faturamento-page #seguro-desktop-chrome .teste-exhibitor-pill-link img {
    display: block !important;
    height: 40px !important;
    width: auto !important;
    max-width: min(283px, 38vw) !important;
    max-height: 40px !important;
    object-fit: contain !important;
  }

  body.novos-dados-faturamento-page main#root-app {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 24px 24px 48px !important;
    box-sizing: border-box !important;
    background: #ededed !important;
    min-height: 0 !important;
  }

  body.novos-dados-faturamento-page .sicf-page-layout {
    padding-bottom: 24px !important;
    min-height: 0 !important;
  }

  body.novos-dados-faturamento-page .sicf-page-layout--fixed {
    max-width: 784px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  body.novos-dados-faturamento-page .si-main-content {
    padding: 0 !important;
  }

  body.novos-dados-faturamento-page .main-content-body {
    padding-top: 8px !important;
  }

  body.novos-dados-faturamento-page .si-header-page {
    margin-bottom: 20px !important;
  }

  body.novos-dados-faturamento-page .fiscal-identity-form__message {
    margin-bottom: 20px !important;
  }

  body.novos-dados-faturamento-page main#root-app .fiscal-identity-form__card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    border-radius: 8px !important;
    background: #fff !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.novos-dados-faturamento-page main#root-app .fiscal-identity-form__card .andes-card__header.fiscal-identity-form--mlb__card-header {
    padding: 32px 24px 12px 30px !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control.andes-form-control--textfield {
    padding-bottom: 24px !important;
    box-sizing: border-box !important;
  }

  body.novos-dados-faturamento-page main#root-app .fiscal-identity-form__card .andes-card__content.fiscal-identity-form--mlb__card-content {
    padding: 0 24px 20px 30px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 20px 24px !important;
    align-items: start !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin-bottom: 0 !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-bottom: 0 !important;
    align-self: start !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control.nf-nome-inline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto min-content !important;
    row-gap: 8px !important;
    align-items: start !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control.nf-nome-inline > label {
    grid-row: 1 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control.nf-nome-inline .andes-form-control__label {
    margin-bottom: 0 !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control.nf-nome-inline .andes-form-control__control {
    grid-row: 2 !important;
    min-width: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control.nf-nome-inline .andes-form-control__field {
    width: 100% !important;
    max-width: 342px !important;
  }

  body.novos-dados-faturamento-page main#root-app
    .fiscal-identity-form--mlb__card-content
    > .andes-form-control:nth-child(3) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin-bottom: 0 !important;
  }

  /* Rodapé do form fora do card (como no fonte ML) — não fixo no desktop */
  body.novos-dados-faturamento-page main#root-app .fiscal-identity-form .main-content-footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    padding: 24px 0 0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-sizing: border-box !important;
    z-index: auto !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.novos-dados-faturamento-page main#root-app #submit-button.pdp-buy-btn {
    width: auto !important;
    min-width: 160px !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  body.novos-dados-faturamento-page main#root-app #submit-button.pdp-buy-btn:disabled {
    background: rgba(0, 0, 0, 0.1) !important;
    color: rgba(0, 0, 0, 0.25) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
  }
}
