/* Discount Popup Styles */
.discount-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.discount-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.discount-popup-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.discount-popup {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  width: 100%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.discount-popup-overlay.show .discount-popup {
  transform: scale(1) translateY(0);
}

.discount-popup-overlay.hide .discount-popup {
  transform: scale(0.9) translateY(20px);
}

.discount-popup-content {
  padding: 24px;
  position: relative;
}

.discount-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: currentColor;
}

.discount-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.discount-popup-header {
  margin-bottom: 16px;
  padding-right: 40px;
}

.discount-popup-headline {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discount-popup-body {
  margin-bottom: 24px;
}

.discount-popup-message {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  opacity: 0.95;
}

.discount-popup-code {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.discount-code-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.discount-code {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.discount-popup-footer {
  text-align: center;
}

.discount-popup-button {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: currentColor;
  backdrop-filter: blur(10px);
  min-width: 140px;
}

.discount-popup-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.discount-popup-button:active {
  transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .discount-popup-overlay {
    padding: 16px;
  }
  
  .discount-popup-content {
    padding: 20px;
  }
  
  .discount-popup-headline {
    font-size: 20px;
  }
  
  .discount-popup-message {
    font-size: 14px;
  }
  
  .discount-popup-code {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Animation keyframes */
@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes popupSlideOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
}
