#resultado {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
  padding: 10px;
  border: 1px #444 solid;
}

.resultoff {
  display: none !important;
}

.resulton {
  display: block;
}

#ytImgVideo {
  width: 160px !important;
  height: 90px !important;
}

#instImgPost {
  width: 160px;     
  height: 160px;     
  object-fit: cover;           
  border-radius: 8px;           
  display: block;             
}

#tkImgPost {
  width: 180px;      
  height: 200px;      
  object-fit: cover;
  border-radius: 8px;
  display: block;
}


#instImgProfile,
#tkImgProfile,
#ytImgChannel {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Fundo escuro com desfoque leve */
#popupPedido {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Conteúdo principal */
#popupPedido .popup-content {
  background-color: #1a1a1a;
  padding: 32px 28px;
  border-radius: 12px;
  width: 90%;
  max-width: 460px;
  max-height: 90vh; /* altura máxima 90% da tela */
  overflow-y: auto; /* permite rolagem vertical */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #f5f5f5;
  border: 1px solid #292929;
  animation: slideUp 0.3s ease;
  scroll-behavior: smooth; /* rolagem suave */
}

/* Custom scrollbar */
#popupPedido .popup-content::-webkit-scrollbar {
  width: 8px;
}

#popupPedido .popup-content::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 6px;
}

#popupPedido .popup-content::-webkit-scrollbar-thumb {
  background: #ff0033;
  border-radius: 6px;
}

/* Animação de subida */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Botão de fechar */
#popupPedido .close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #ff0033;
  cursor: pointer;
  transition: transform 0.2s;
}

#popupPedido .close-btn:hover {
  transform: scale(1.1);
}

/* Título */
#popupTitulo {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: bold;
  color: #ff0033;
  text-align: center;
}

/* Labels */
#popupPedido label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  color: #ccc;
}

/* Inputs e Selects */
#popupPedido input,
#popupPedido select {
  width: 100%;
  padding: 10px 12px;
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

#popupPedido #quantidade,
#popupPedido .linkoff {
  margin-bottom: 18px;
}

#popupPedido input:focus,
#popupPedido select:focus {
  border-color: #ff0033;
  outline: none;
}

/* Preço */
#priceContainer {
  margin-bottom: 18px;
  text-align: center;
}

#precoOriginal {
  color: #888;
  font-size: 14px;
}

#precoDesconto {
  font-size: 18px;
  font-weight: bold;
  color: #00e676;
}

/* Botão principal */
#popupPedido button.prosseguir {
  background: linear-gradient(to right, #ff0033, #ff3344);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 15px;
}

#popupPedido button.prosseguir:hover {
  background: linear-gradient(to right, #e60029, #ff0033);
}

/* Oferta container */
.oferta-container {
  position: relative;
  max-height: 273px; /* ajuste conforme o card maior */
  overflow: hidden;
}


.oferta-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  padding: 8px 0;
  margin-bottom: 5px;
  font-size: 14px;
}

.icone-oferta {
  font-size: 16px;
  margin-right: 5px;
}

.oferta-info {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #252525;
  color: #fff;
}

.oferta-navegacao {
  display: flex;
  gap: 6px;
}

.oferta-navegacao .btn-nav {
  background: #252525;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease-in-out;
}

.oferta-navegacao .btn-nav:hover {
  background: #363636;
  transform: scale(1.08);
}

.oferta-navegacao .btn-nav svg {
  pointer-events: none;
}

.oferta-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #252525;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
}

.oferta-header {
  display: flex;
  align-items: center;
}

.oferta-card hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  width: calc(100% - 10px);
  margin: 5px auto;
}

.oferta-icone {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 8px;
}

.oferta-titulo {
  font-weight: bold;
  font-size: 15px;
}

.oferta-precos {
  font-size: 14px;
}

.preco-antigo {
  text-decoration: line-through;
  color: gray;
  margin-right: 5px;
}

.preco-novo {
  color: #00b919;
  font-weight: bold;
}

.oferta-descricao {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  margin-bottom: 12px;
  gap: 3px;
}

.btn-oferta {
  width: 100%;
  padding: 10px;
  background: linear-gradient(to right, #ff0033, #ff3344);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.btn-oferta:hover {
  background: linear-gradient(to right, #e60029, #ff0033);
}


.btn-oferta.adicionado {
    background: #4CAF50; /* verde */
    color: #fff;               /* texto branco */
    border: 1px solid #4CAF50;
}

.ordebumpOff {
  display: none;
}

.ordebumpOn {
  display: block;
}


/* Container da barra */
.progress-container {
  width: 100%;
  max-width: 300px;
  height: 25px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin: 15px auto;
  position: relative;
}

/* Barra de progresso */
.progress-bar {
  height: 100%;
  width: 0;
  background: #ff0033; /* Vermelho */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; /* Texto branco */
  font-size: 14px;
  font-weight: bold;
  transition: width 0.3s ease;
  white-space: nowrap;
}

#checkout-modal-overlay.mostrar {
  display: flex;
}

#checkout-modal-overlay.mostrar {
  opacity: 1;
  pointer-events: all;
}


/* Fundo escuro com desfoque */
#checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

#checkout-modal-overlay.mostrar {
  display: flex;
}

/* Modal principal */
#checkout-modal {
  background-color: #1a1a1a;
  padding: 32px 28px;
  border-radius: 12px;
  width: 90%;
  max-width: 460px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #f5f5f5;
  border: 1px solid #292929;
  animation: slideUp 0.3s ease;
}

.modal__close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #ff0033;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal__close-btn:hover {
  transform: scale(1.1);
}

.modal__title {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: bold;
  color: #ff0033;
  text-align: center;
}

.modal__field {
  margin-bottom: 18px;
}

.modal__field label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  color: #ccc;
}

.modal__input {
  width: 100%;
  padding: 10px 12px;
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.modal__input:focus {
  border-color: #ff0033;
  outline: none;
}

.modal__actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

/* Botões */
.button {
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
  border: none;
}

.button--danger {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

.button--danger:hover {
  background-color: #444;
}

.button--primary {
  background: linear-gradient(to right, #ff0033, #ff3344);
  color: white;
}

.button--primary:hover {
  background: linear-gradient(to right, #e60029, #ff0033);
}

/* Etapas */
.modal__step {
  display: none;
}

.modal__step.active {
  display: block;
}


#paymentResult { margin-top: 1rem; padding: 1rem; border-radius: 8px; text-align: center; }
#paymentResult.success { background-color: #d1fae5; color: #065f46; }
#paymentResult.error { background-color: #fee2e2; color: #991b1b; }
#qrcode-container { display:flex; justify-content:center; padding:15px; }
.pix-copy-container { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.5rem; flex-direction: column; }
#pix-code-input { flex-grow: 1; text-align: left; }


/* Pagamento aprovado */
.thank-you-page {
  align-items: center;
}

.thank-you-page .icon {
  font-size: 64px; /* Levemente maior para destaque */
  color: #00e676;
}

.thank-you-page h2 {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
}

.thank-you-page p {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
}

.modal__thanksActions {
  display: flex;
  flex-direction: column;
}

#popupPedido,
#checkout-modal-overlay {
  opacity: 1;
  transition: opacity 0.3s ease;
}

#checkout-modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#checkout-modal-overlay.mostrar {
  opacity: 1;
  pointer-events: all;
}
