.payment-methods-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 344px;
  height: 480px;
  margin: 0 auto 6px;
  --payment-methods-font-title: 'Proxima Nova A', -apple-system, 'Roboto', Arial, sans-serif;
  --payment-methods-font-body: 'Inter', -apple-system, 'Roboto', Arial, sans-serif;
  --payment-methods-text: #282834;
  --payment-methods-surface: #ffffff;
  --payment-methods-tile: #f4f5f9;
}

.payment-methods-section__card {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--payment-methods-surface);
}

.payment-methods-section__inner {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.payment-methods-section__badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 16px;
  padding: 2px 16px 2px 2px;
  border-radius: 9999px;
  background: rgba(40, 40, 52, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.payment-methods-section__badge-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 9999px;
}

.payment-methods-section__badge-mark-surface {
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: #1f8923;
}

.payment-methods-section__badge-mark-surface img {
  display: block;
  width: 20px;
  height: 20px;
}

.payment-methods-section__badge-text {
  color: var(--payment-methods-text);
  font-family: var(--payment-methods-font-body);
  font-feature-settings: "case" 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.payment-methods-section__title {
  box-sizing: border-box;
  width: 100%;
  max-width: 344px;
  margin: 0;
  padding: 0 16px;
  color: var(--payment-methods-text);
  font-family: var(--payment-methods-font-title);
  font-feature-settings: "salt" 1, "calt" 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.28px;
  line-height: 1;
  text-align: center;
  word-break: break-word;
}

.payment-methods-section__title {
  margin-bottom: 40px;
}

.payment-methods-section__carousel-wrap {
  position: relative;
  width: 100%;
  height: 64px;
  overflow: hidden;
}

.payment-methods-section__carousel {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  transform: translateY(-50%) translateX(0);
  will-change: transform;
}

.payment-methods-section__item {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--payment-methods-tile);
}

.payment-methods-section__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.payment-methods-section__overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

.payment-methods-section__overlay--left {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.1));
}

.payment-methods-section__overlay--right {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0.1));
}

.payment-methods-section__overlay.is-visible {
  opacity: 1;
}

@media (min-width: 361px) and (max-width: 799px) {
  .payment-methods-section {
    max-width: none;
  }
}

@media (min-width: 800px) {
  .payment-methods-section {
    max-width: none;
    height: 640px;
    margin-bottom: 8px;
  }

  .payment-methods-section__card {
    height: 640px;
  }

  .payment-methods-section__badge {
    min-height: 40px;
    margin-bottom: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  .payment-methods-section__badge-mark {
    width: 36px;
    height: 36px;
  }

  .payment-methods-section__badge-mark-surface img {
    width: 22px;
    height: 22px;
  }

  .payment-methods-section__badge-text {
    font-size: 16px;
    line-height: 20px;
  }

  .payment-methods-section__title {
    max-width: calc(15em + 80px);
    margin-bottom: 80px;
    padding: 0 40px;
    font-size: 48px;
    letter-spacing: -1.92px;
  }

  .payment-methods-section__carousel-wrap {
    height: 80px;
  }

  .payment-methods-section__carousel {
    gap: 40px;
  }

  .payment-methods-section__item {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }

  .payment-methods-section__overlay {
    width: 120px;
  }

  .payment-methods-section__overlay--left {
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
  }

  .payment-methods-section__overlay--right {
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
  }
}

@media (min-width: 1366px) {
  .payment-methods-section,
  .payment-methods-section__card {
    height: 712px;
  }

  .payment-methods-section__title {
    font-size: 72px;
    letter-spacing: -2.88px;
  }
}

/* Desktop comum 1601–1920: acima de 1920 o container fica em 1904px e centraliza */
@media (min-width: 1601px) {
  .payment-methods-section {
    max-width: 1904px;
    margin-left: auto;
    margin-right: auto;
  }

  .payment-methods-section,
  .payment-methods-section__card {
    height: 904px;
  }

  .payment-methods-section__title {
    font-size: 88px;
    letter-spacing: -4.4px;
  }

  /* Carousel track narrows to 1400px and stays centered; overlays follow its edges */
  .payment-methods-section__carousel-wrap {
    max-width: 1400px;
  }
}
