.pagamentos__root {
  box-sizing: border-box;
  width: calc(100% - 16px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 8px;
  --font-primary: 'Proxima Nova A', -apple-system, 'Roboto', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Roboto', Arial, sans-serif;
  --pagamentos-color-brand-fill: #ffe600;
  --pagamentos-color-text-primary: #282834;
  --pagamentos-color-text-inverse: #ffffff;
  --pagamentos-stage-h: min(712px, 90svh);
  --andes-color-accent: #3483fa;
}

@media (min-width: 1920px) {
  .pagamentos__root {
    max-width: 1904px;
  }
}

.pagamentos__track {
  display: contents;
}

.pagamentos__carousel {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 20px;
  overflow: hidden;
  min-height: var(--pagamentos-stage-h);
  background-image: url('https://http2.mlstatic.com/storage/pog-cm-admin/calm-assets/pagamentos-Carousel_Background_Image_mobile--688x1424--e3223427.webp');
  background-size: cover;
  background-position: top center;
}

.pagamentos__column--left {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pagamentos__title-container {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  height: 344px;
  background-color: transparent;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pagamentos__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1;
  font-size: 32px;
  letter-spacing: -1.28px;
  color: var(--pagamentos-color-text-inverse);
  font-feature-settings: "salt" 1, "calt" 0;
}

.pagamentos__cards {
  position: relative;
  z-index: 2;
  flex: 0 0 344px;
  height: 344px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  list-style: none;
  margin: 0 -8px 0 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pagamentos__cards::-webkit-scrollbar {
  display: none;
}

.pagamentos__card {
  position: relative;
  flex: 0 0 95%;
  min-width: 95%;
  box-sizing: border-box;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--pagamentos-color-brand-fill);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease-out;
  user-select: none;
}

.pagamentos__card-image {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagamentos__image {
  width: 100%;
  height: 100%;
  max-width: 591px;
  object-fit: contain;
  border-radius: 8px;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.pagamentos__card-text {
  box-sizing: border-box;
  width: 100%;
}

.pagamentos__text {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1;
  font-size: 24px;
  letter-spacing: -0.96px;
  color: var(--pagamentos-color-text-primary);
  font-feature-settings: "salt" 1, "calt" 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pagamentos__carousel {
    background-image: url('https://http2.mlstatic.com/storage/pog-cm-admin/calm-assets/pagamentos-Carousel_Background_tablet--1520x1424--7e8a9bd0.webp');
    background-position: top center;
  }

  .pagamentos__title {
    font-size: 48px;
    letter-spacing: -1.92px;
  }

  .pagamentos__card {
    flex: 0 0 42.39%;
    min-width: 42.39%;
  }

  .pagamentos__card-image {
    flex: 0 0 190px;
  }
}

@media (min-width: 1024px) {
  .pagamentos__root {
    margin-top: calc(224px - 300svh);
  }

  .pagamentos__track {
    display: block;
    position: relative;
    width: 100%;
    height: calc(var(--pagamentos-stage-h) / 0.25);
  }

  .pagamentos__carousel {
    position: sticky;
    top: 72px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    height: calc(100svh - 80px);
    min-height: 0;
    padding: 0;
    border-radius: 20px;
    background-image: none;
    overflow: hidden;
  }

  .pagamentos__column--left {
    flex: 0 0 calc(50% - 4px);
    min-width: 0;
    overflow: visible;
    border-radius: 20px;
    padding: 32px;
    justify-content: flex-start;
  }

  .pagamentos__column--left::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: calc(200% + 8px);
    height: 100%;
    border-radius: 20px;
    background-image: url('https://http2.mlstatic.com/storage/pog-cm-admin/calm-assets/pagamentos-whide-1366--2025x1068--4cc8182d.webp');
    background-size: cover;
    background-position: left top;
    pointer-events: none;
  }

  .pagamentos__column--left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: calc(200% + 8px);
    height: 100%;
    border-radius: 20px;
    background-image: linear-gradient(180deg, rgba(20, 16, 10, 0.45) 0%, rgba(20, 16, 10, 0) 40%);
    pointer-events: none;
  }

  .pagamentos__title-container {
    height: auto;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    gap: 32px;
    width: auto;
  }

  .pagamentos__title {
    font-size: 72px;
    letter-spacing: -2.88px;
    color: var(--pagamentos-color-text-inverse);
  }

  .pagamentos__cards {
    flex-direction: column;
    flex: 0 0 calc(50% - 4px);
    height: 100%;
    min-width: 0;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: none;
  }

  .pagamentos__card {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    min-height: 0;
    padding: 32px;
    gap: 32px;
    scroll-snap-align: none;
  }

  .pagamentos__card-text {
    padding-right: 64px;
  }

  .pagamentos__text {
    font-size: 48px;
    letter-spacing: -1.92px;
  }
}

@media (min-width: 1920px) {
  .pagamentos__title {
    font-size: 88px;
    letter-spacing: -3.52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pagamentos__card {
    transition: none;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .pagamentos__track {
    height: auto;
  }

  .pagamentos__carousel {
    position: static;
    height: auto;
    align-items: flex-start;
    overflow: visible;
  }

  .pagamentos__column--left {
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: var(--pagamentos-stage-h);
  }

  .pagamentos__cards {
    height: auto;
    overflow-x: visible;
    overflow-y: visible;
  }

  .pagamentos__card {
    flex: none;
    height: var(--pagamentos-stage-h);
  }
}
