/* Modal Popup Styles */
#payment-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#payment-modal-container.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2001;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background-color: #16171d;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  z-index: 2002;
  overflow: hidden;
  animation: zoomIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 173, 84, 0.1); /* Match our green theme */
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.close-button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #ff2e2e;
}

.modal-body {
  padding: 20px;
}

.payment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #eeeeec;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
}

.payment-item:hover {
  background-color: rgba(255, 46, 46, 0.1);
  transform: translateY(-2px);
}

/* Special styling for Shoppy.gg */
.payment-item[data-payment="shoppy"] {
  background-color: rgba(0, 173, 84, 0.1);
  border: 1px solid rgba(0, 173, 84, 0.2);
}

.payment-item[data-payment="shoppy"]:hover {
  background-color: rgba(0, 173, 84, 0.2);
  border: 1px solid rgba(0, 173, 84, 0.3);
  color: #00ad54; /* Green */
}

/* Special styling for NowPayments */
.payment-item[data-payment="nowpayments"] {
  background-color: rgba(30, 136, 229, 0.1);
  border: 1px solid rgba(30, 136, 229, 0.2);
}

.payment-item[data-payment="nowpayments"]:hover {
  background-color: rgba(30, 136, 229, 0.2);
  border: 1px solid rgba(30, 136, 229, 0.3);
  color: #1e88e5; /* Blue */
}

/* Special styling for Selly.io */
.payment-item[data-payment="selly"] {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.payment-item[data-payment="selly"]:hover {
  background-color: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50; /* Green */
}

.payment-item img {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

.payment-item span {
  font-size: 16px;
  font-weight: 500;
}

/* Prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: 350px;
  }

  .modal-header h3 {
    font-size: 16px;
  }

  .payment-item {
    padding: 10px 12px;
  }

  .payment-item img {
    width: 20px;
    height: 20px;
  }

  .payment-item span {
    font-size: 14px;
  }
}
