/**
 * Popups Bolt - Frontend Styles
 */

/* Popup Overlay */
.salloq-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: popupFadeIn 0.3s ease;
}

.salloq-popup-overlay.active {
  display: flex;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Popup Container */
.salloq-popup {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.salloq-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 10;
}

.salloq-popup-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

/* Age Verification Specific */
.salloq-popup.age-verification {
  max-width: 450px;
}

.salloq-popup.age-verification .salloq-popup-close {
  display: none;
}

/* Popup Content Area */
.salloq-popup-content {
  padding: 0;
}

/* Helper Classes for Popup Content */
.popup-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111;
}

.popup-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0 0 20px;
}

.popup-body {
  padding: 24px;
}

.popup-footer {
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

/* Form Styles inside Popup */
.salloq-popup input[type="email"],
.salloq-popup input[type="text"],
.salloq-popup input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.salloq-popup input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.salloq-popup button[type="submit"],
.salloq-popup .popup-btn {
  width: 100%;
  padding: 14px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.salloq-popup button[type="submit"]:hover,
.salloq-popup .popup-btn:hover {
  background: #1d4ed8;
}

.salloq-popup .popup-btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.salloq-popup .popup-btn-secondary:hover {
  background: #d1d5db;
}

.salloq-popup .popup-btn-success {
  background: #059669;
}

.salloq-popup .popup-btn-success:hover {
  background: #047857;
}

/* Coupon Code Display */
.popup-coupon-box {
  background: #f3f4f6;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin: 16px 0;
}

.popup-coupon-code {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #111;
}

/* Mobile Styles */
@media (max-width: 480px) {
  .salloq-popup-overlay {
    padding: 16px;
    align-items: flex-end;
  }
  
  .salloq-popup {
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    animation: popupSlideUp 0.3s ease;
  }
  
  @keyframes popupSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* No-scroll when popup is open */
body.salloq-popup-open {
  overflow: hidden;
}

/* Transition for closing */
.salloq-popup-overlay.closing {
  animation: popupFadeOut 0.2s ease forwards;
}

.salloq-popup-overlay.closing .salloq-popup {
  animation: popupSlideOut 0.2s ease forwards;
}

@keyframes popupFadeOut {
  to {
    opacity: 0;
  }
}

@keyframes popupSlideOut {
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}
