/* Container Geral */
.roadie-pricing-section {
  --edge: 24px; /* margem lateral no modo carrossel */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.pricing-group-title {
  font-size: 1.8rem;
  font-weight: 700 !important;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
}

/* Grid - desktop (> 1024px) */
.pricing-cards-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  padding: 10px 0;
}

.pricing-card {
  flex: 1 1 300px;
  max-width: 360px;

  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 44px 24px 24px; /* topo maior: reserva o espaço do selo "Mais escolhido" */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* Setas (criadas pelo JS; só aparecem no modo carrossel) */
.pricing-nav {
  display: none;
}

.pricing-nav-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--e-global-color-accent);
  background: var(--e-global-color-accent);
  color: #ffffff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}
.pricing-nav-btn:hover:not(:disabled) {
  background: #970c23;
}
.pricing-nav-btn:disabled {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #a0aec0;
  cursor: default;
}
.pricing-nav-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* --- 1024px e menos: carrossel estilo HostGator --- */
@media (max-width: 1024px) {
  .roadie-pricing-section {
    --card-w: 300px;
  }

  .pricing-group-title {
    text-align: left;
    padding-inline: var(--edge);
  }

  .pricing-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 var(--edge) 12px;
  }
  .pricing-nav[hidden] {
    display: none;
  }

  .pricing-cards-grid {
    justify-content: flex-start;
    gap: 24px;
    padding: 10px var(--edge) 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-cards-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing-card {
    flex: 0 0 var(--card-w);
    max-width: none;
    scroll-snap-align: start;
  }
}

/* Arrastar com o rato */
@media (max-width: 1024px) and (hover: hover) and (pointer: fine) {
  .pricing-cards-grid {
    cursor: grab;
  }
  .pricing-cards-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
}

/* --- 768px e menos --- */
@media (max-width: 768px) {
  .roadie-pricing-section {
    --card-w: 270px;
    --edge: 16px;
  }

  .pricing-nav {
    justify-content: flex-start;
  }
}

/* --- Estilização interna dos cards --- */
.badge-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  /* color: #1a202c; */
  color: var(--e-global-color-accent);
}

.card-price-display {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.card-price-display .old-price del {
  color: #a0aec0;
  font-size: 0.9rem;
  margin-right: 6px;
}

.card-price-display .sale-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.pricing-discount-badge {
  background-color: var(--e-global-color-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 1rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 16px;
  line-height: 1.4;
}

.card-variation-image {
  margin-top: auto;
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.card-variation-image img {
  max-width: 140px;
  height: auto;
  object-fit: contain;
}

.card-action {
  /* margin-top: auto; */
  width: 100%;
}

.btn-card-subscribe {
  display: block;
  width: 100%;
  background-color: var(--e-global-color-accent);
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-card-subscribe:hover {
  background-color: #970c23;
}

/* --- Preço por edição / por mês --- */
.card-unit-price {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #4a5568;
}
.card-unit-price strong {
  color: #1a1a1a;
}

/* --- Renovação (texto pequeno abaixo do botão) --- */
.card-renewal {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #718096;
}

/* --- Plano em destaque --- */
.pricing-card.is-featured {
  border-color: var(--e-global-color-accent);
  box-shadow:
    0 0 0 1px var(--e-global-color-accent),
    0 12px 28px rgba(0, 0, 0, 0.12);
}

.pricing-ribbon {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  padding: 7px 10px;
  border-radius: 12px 12px 0 0;
  background: var(--e-global-color-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
