/* popup.css - Dedicated popup styles */

.store-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: flex-end;
}

.popup-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.popup-content {
  background: var(--dark-bg-color, #1a1a1a);
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 300px;
  width: auto;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color: var(--text-color, #ffffff);
}

.popup-content p {
  margin: 0 0 15px 0;
  color: var(--text-color);
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--accent-color);
  padding: 0;
  line-height: 1;
}

.close-popup:hover {
  color: var(--hover-accent);
}

.popup-body {
  padding: 1rem 0;
  text-align: center;
}

.popup-body .btn-secondary {
  display: block;
  margin: 1.5rem auto 0;
  max-width: 200px;
  padding: 12px 24px;
  font-size: 1rem;
  background: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: background var(--transition-speed);
}

.popup-body .btn-secondary:hover {
  background: var(--hover-accent);
}

@media (max-width: 768px) {
  .store-popup {
    max-width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }
  
  .popup-overlay {
    bottom: 10px;
    right: 10px;
    left: 10px;
    justify-content: center;
  }
  
  .popup-content {
    max-width: 100%;
    width: 100%;
  }
  
  .close-popup {
    top: 10px;
    right: 10px;
  }
}
