/**
 * adicionar-endereco.html — somente desktop (≥992px).
 * Não adicionar regras em (max-width: 991px) neste arquivo.
 */

.fe-desktop-only {
  display: none !important;
}

.fe-mobile-only {
  display: block;
}

@media only screen and (min-width: 992px) {
  .fe-mobile-only {
    display: none !important;
  }

  .fe-desktop-only.ae-desk-add-head {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
  }

  #attach.attach-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
  }

  #attach.attach-page .ae-add-step {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    background-color: #ededed;
    padding: 0 12px 48px;
  }

  #attach.attach-page .ae-add-step > .layout__container {
    width: 672px;
    max-width: 100%;
    min-height: 866.38px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .ae-desk-add-head .layout {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ae-desk-add-head .layout__container {
    width: 672px;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 0;
    box-sizing: border-box;
  }

  .ae-desk-add-head .layout__container__title {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(0, 0, 0, 0.9);
    margin: 28px 0 0;
    padding: 0;
    letter-spacing: -0.02em;
  }

  #attach.attach-page .layout__container__card {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    padding: 32px 32px 28px;
    box-sizing: border-box;
  }

  #attach.attach-page #address-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #attach.attach-page #address-form > .row {
    margin-bottom: 0 !important;
  }

  #attach.attach-page #address-form > .row.form__row--split:first-of-type {
    display: block;
  }

  #attach.attach-page .zipcode__field .andes-ui-textfield__control {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  #attach.attach-page .zipcode__field .andes-ui-textfield__field {
    flex: 1 1 auto;
    min-width: 0;
  }

  #attach.attach-page .zipcode__right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-right: 4px;
  }

  #attach.attach-page .zipcode-lookup-status.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.9);
  }

  #attach.attach-page .zipcode-lookup-status.is-visible::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    background: url('https://http2.mlstatic.com/storage/buyingflow-core-assets-web/bf-assets/svg/bf_v6_gps_pin.svg') center / contain no-repeat;
  }

  /* Rua linha inteira + Número | Complemento na mesma linha (como print) */
  #attach.attach-page #address-form .ae-desk-address-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 20px;
  }

  #attach.attach-page #address-form .ae-desk-address-fields > .row {
    display: contents;
  }

  #attach.attach-page #address-form .ae-desk-address-fields > .row:first-child > .andes-ui-textfield:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #attach.attach-page #address-form .ae-desk-address-fields > .row:first-child > .street__number {
    grid-column: 1;
    grid-row: 2;
  }

  #attach.attach-page #address-form .ae-desk-address-fields > .row:last-child > .andes-ui-textfield {
    grid-column: 2;
    grid-row: 2;
  }

  #attach.attach-page .street__number .andes-ui-textfield__control {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }

  #attach.attach-page .street__number .andes-ui-textfield__field {
    flex: 1 1 120px;
    min-width: 0;
  }

  #attach.attach-page .street__checkbox {
    flex-shrink: 0;
    white-space: nowrap;
  }

  #attach.attach-page .row.contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #attach.attach-page .contact__title-heading {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 8px;
  }

  #attach.attach-page .contact__title__delivery-message p {
    font-size: 14px;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
  }

  /* Telefone: um campo único como no print (+55 no valor, sem faixa separada) */
  #attach.attach-page .ae-phone-prefix {
    display: none !important;
  }

  #attach.attach-page .ae-phone-field #phone.andes-ui-textfield__field {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 6px;
  }

  #attach.attach-page .ae-phone-field .andes-ui-textfield__control {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  #attach.attach-page .row.form--button {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 4px;
    margin-bottom: 0;
    padding-top: 4px;
  }

  #attach.attach-page .form--button__submit {
    width: auto;
    min-width: 120px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    background: #3483fa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  #attach.attach-page .form--button__submit:hover:not(:disabled) {
    background: #2968c8;
  }

  #attach.attach-page .form--button__submit:disabled {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
    pointer-events: none;
  }

  #attach.attach-page .zipcode__button {
    font-size: 14px;
    font-weight: 600;
  }
}
