/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* === Estilos base do popup === */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.popup-content {
  background: #fff;
  width: 85vw;
  max-width: 550px;
  max-height: 90vh;
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* === Botão de Fechar === */
.close-popup {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 0.5;
  padding: 0;
  z-index: 1001;
  color: #134e4a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* === Corpo do popup === */
.popup-body {
  display: flex;
  gap: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.popup-left {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popup-right {
  flex: 1;                      
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  padding-left: 20px;
}

.popup-right h2 {
  font-size: 22px;
  margin: 0 0 10px 0;
  color: #134e4a;
  line-height: 1.2;
}

.popup-right p {
  font-size: 16px;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.popup-right form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.popup-right form button {
  background-color: #134e4a;
  color: #fff;
  padding: 14px;
  width: 100%;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.popup-right small {
  font-size: 12px;
  color: #666;
  margin-top: 15px;
  text-align: center;
  line-height: 1.4;
}

#vip-success {
  margin-top: 10px;
  color: green;
  font-size: 14px;
  text-align: center;
}

/* === Ícone de Presente === */
#gift-icon {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 60px; height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9998;
}

#gift-icon img {
  width: 40px; height: 40px;
}

.gift-badge {
  position: absolute;
  top: 6px; right: 6px;
  background-color: #e11d48;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* === OTIMIZAÇÕES MOBILE === */
@media (max-width: 768px) {
  .popup-content {
    width: 94vw;
    max-width: none;
    max-height: 80vh;
    border-radius: 16px;
    margin: 0 10px;
  }
  
  .popup-body {
    flex-direction: column;
    border-radius: 16px;
  }
  
  /* Mantendo a imagem no mobile, mas com altura controlada */
  .popup-left {
    display: block;
    height: 120px;
    width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    border-bottom-left-radius: 0;
    position: relative;
  }
  
  .popup-left:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(19, 78, 74, 0.5), transparent);
  }
  
  .popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .popup-right {
    padding: 15px;
    width: 100%;
  }
  
  .popup-right h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .popup-right p {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .popup-right form input {
    padding: 10px;
    font-size: 14px;
  }
  
  .popup-right form button {
    padding: 12px;
    font-size: 15px;
  }
  
  .popup-right small {
    font-size: 11px;
  }
  
  /* Ajuste do ícone em telas menores */
  #gift-icon {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  #gift-icon img {
    width: 35px;
    height: 35px;
  }
  
  .gift-badge {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}