/* Estilos para o módulo Reactivate Customers - Popup Modal */

/* Backdrop - fundo escuro */
.rc-modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9040;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: none;
  transition: opacity 0.3s ease;
}

/* Modal principal */
.rc-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9050;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  transition: opacity 0.3s ease;
}

/* Container do modal */
.rc-modal-dialog {
  position: relative;
  width: 95%;
  max-width: 500px;
  margin: 50px auto;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

/* Quando o modal está visível, anima a entrada */
.rc-modal.show .rc-modal-dialog {
  transform: translateY(0);
}

/* Conteúdo do modal */
.rc-modal-content {
  position: relative;
  background-color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background-clip: padding-box;
  outline: 0;
  overflow: hidden;
}

/* Cabeçalho do modal */
.rc-modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #f1f1f1;
  background-color: #fcfcfc;
  position: relative;
}

/* Título do modal */
.rc-modal-title {
  margin: 0;
  line-height: 1.5;
  font-size: 20px;
  color: #333;
  font-weight: 600;
}

/* Corpo do modal */
.rc-modal-body {
  position: relative;
  padding: 25px;
}

/* Botão fechar */
.rc-close {
  float: right;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #999;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
  transition: all 0.2s;
}

.rc-close:hover {
  opacity: 1;
  color: #333;
  background-color: #ffffff;
  border-color: #ffffff
}

/* Descrição do popup */
.popup-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* Área de desconto */
.popup-discount.well {
  background-color: #f8f9fa;
  border-color: #eee;
  border-radius: 6px;
  padding: 20px;
  box-shadow: none;
  text-align: center;
}

/* Código de desconto */
.discount-code {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #28a745;
  background: #f0fff0;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 4px;
  border: 1px dashed #28a745;
}

/* Valor do desconto */
.discount-value {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555;
}

/* Indicador de primeira compra */
.first-purchase-note, .any-purchase-note {
  margin-bottom: 15px;
  font-size: 13px;
  border-radius: 4px;
  padding: 4px 8px;
  display: inline-block;
}

.first-purchase-note {
  background-color: #fff7e6;
  color: #cc8800;
  border: 1px solid #ffcc80;
}

.any-purchase-note {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* Container de cópia de código */
.copy-code-container .input-group {
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Input do código de desconto */
#discount-code-input {
  height: 46px;
  font-size: 16px;
  border-color: #ddd;
}

/* Botão de cópia */
#copy-discount-code {
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  padding-left: 20px;
  padding-right: 20px;
}

/* Estilos para popup de carrinho */
.popup-cart.well {
  background-color: #f8f9fa;
  border-color: #eee;
  border-radius: 6px;
  padding: 20px;
  box-shadow: none;
}

.popup-cart h4 {
  margin-top: 0;
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
}

.popup-cart .list-group {
  margin-bottom: 0;
}

.popup-cart .list-group-item {
  border-color: #eee;
  font-size: 15px;
  padding: 12px 15px;
}

/* Estilos para formulário newsletter */
.popup-newsletter .form-group {
  margin-bottom: 15px;
}

#popup-email {
  height: 46px;
  font-size: 16px;
}

/* Estilos para botões */
.rc-modal .btn {
  padding: 12px 20px;
  font-size: 16px;
  transition: all 0.2s;
}

.rc-modal .btn-primary {
  background-color: #3850e0;
  border-color: #2840d0;
}

.rc-modal .btn-primary:hover {
    color: #ffffff;
}

.rc-modal .btn-success {
  background-color: #28a745;
  border-color: #218838;
}

.rc-modal .btn-success:hover {
    color: #ffffff;
}

/* Alerta de sucesso */
.rc-modal .alert-success {
  background-color: #dff8e7;
  border-color: #c9f0d6;
  color: #28a745;
  padding: 15px 20px;
  border-radius: 6px;
  text-align: center;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-30px); }
  to { transform: translateY(0); }
}

.rc-modal.show .rc-modal-content {
  animation: slideDown 0.3s ease-out forwards;
}

.rc-modal-backdrop.show {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Responsividade */
@media (max-width: 767px) {
  .rc-modal-dialog {
    margin: 20px auto;
    width: 95%;
  }
  
  .rc-modal-body {
    padding: 20px 15px;
  }
  
  .rc-modal-header {
    padding: 15px 20px;
  }
  
  .discount-code {
    font-size: 20px !important;
  }
} 