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

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

@media only screen and (min-width: 992px) {
  #sp-transactional-header {
    display: none !important;
  }

  h1.sp-page-title.fe-desktop-only {
    display: block !important;
  }

  #sp-pricebox-aside.fe-desktop-only {
    display: block !important;
  }

  .sp-inner > .sp-desktop-continue.fe-desktop-only {
    display: flex !important;
  }

  .sp-left-col > .sp-navbar {
    display: none !important;
  }

  body[data-site="ML"][data-country="BR"] #root-app #attach.attach-page.sp-attach-page {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  #sp-step-root.sp-step-container {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    background-color: #ededed;
    padding: 32px 12px 40px;
  }

  #sp-main-row.sp-main-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    gap: 36px;
    min-height: 0;
  }

  .sp-left-col {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(800px, 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .sp-page-title {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.9);
    margin: 0 0 16px;
    padding: 0;
    letter-spacing: -0.02em;
  }

  .sp-method-bar.fe-desktop-only {
    display: block !important;
    width: 776px;
    max-width: 100%;
    height: 72px;
    min-height: 72px;
    box-sizing: border-box;
    margin-bottom: 16px;
  }

  .sp-desktop-white-card .sp-card-info {
    display: none !important;
  }

  .sp-method-bar__card {
    width: 100%;
    height: 100%;
    min-height: 72px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f5;
    display: flex;
    align-items: center;
    padding: 0 16px;
  }

  .sp-method-bar__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .sp-method-bar .andes-thumbnail-container {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sp-method-bar .andes-thumbnail.sp-method-bar__thumb {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .sp-method-bar .andes-thumbnail.sp-method-bar__thumb img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .sp-method-bar__label {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.9);
  }

  .sp-inner.sp-main {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .sp-desktop-white-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .sp-desktop-white-card .sp-card-info {
    margin-bottom: 0;
    border-radius: 0;
  }

  hr.sp-desk-sep {
    border: 0;
    height: 1px;
    margin: 0;
    background: rgba(0, 0, 0, 0.12);
  }

  .sp-desktop-white-card .sp-list {
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .sp-list .sp-list-item {
    position: relative;
    padding-left: 52px;
    min-height: 72px;
    height: auto;
    cursor: pointer;
  }

  .sp-list .sp-list-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.25);
    background: #fff;
    box-sizing: border-box;
  }

  .sp-list .sp-list-item.sp-item-selected::before {
    border-color: #3483fa;
    box-shadow: inset 0 0 0 4px #3483fa;
  }

  .sp-list .sp-chevron {
    display: none !important;
  }

  .sp-inner > .sp-desktop-continue.fe-desktop-only {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-top: 32px;
    padding: 0;
    box-sizing: border-box;
  }

  .sp-desktop-continue .andes-button.bf-ui-core-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 14px 28px;
    background: #3483fa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  .sp-desktop-continue .andes-button.bf-ui-core-button:hover {
    background: #2968c8;
  }

  #sp-pricebox-aside.sp-pricebox-aside {
    flex: 0 0 360px;
    width: 360px;
    max-width: 100%;
    position: sticky;
    top: 24px;
    align-self: flex-start;
    overflow: hidden;
    zoom: 0.9;
    background-color: #f5f5f5 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .sp-pricebox-aside__header {
    padding: 16px 16px 0;
  }

  .sp-aside-section-title {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.9);
    margin: 0 0 8px;
  }

  .sp-pricebox-aside__body {
    padding: 0 16px 16px;
  }

  .sp-pricebox-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.9);
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  #sp-pricebox-aside .sp-pricebox-row[data-testid='sp_aside_product_row'] {
    margin-top: 10px;
    margin-left: -16px;
    margin-right: -16px;
    padding-top: 10px;
    padding-left: 16px;
    padding-right: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .sp-pricebox-row__value {
    font-weight: 400;
    white-space: nowrap;
    text-align: right;
  }

  .sp-pricebox-row__value--positive {
    color: #00a650;
  }

  .sp-pricebox-sep {
    border: 0;
    height: 1px;
    margin: 8px 0 12px;
    background: rgba(0, 0, 0, 0.1);
  }

  .sp-aside-pay-block {
    padding: 4px 0 8px;
  }

  .sp-aside-pay-line {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.9);
  }

  .sp-aside-pay-instal {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
  }

  .sp-aside-pay-card {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
    text-align: right;
  }

  .sp-pricebox-row--total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 8px;
  }

  .sp-pricebox-row--total .sp-pricebox-row__value {
    font-weight: 700;
    font-size: 18px;
  }
}
