@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&amp;display=swap");

#popup_overlay_referrush {
  display: none; /* Initially hidden */
  align-items: flex-end;
  justify-content: center;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Blackout overlay */
  z-index: 2147483647; /* Place it behind the popup, but in front of everything else */
  padding: 10px;
}

/* Popup Content Styling */
#popup_content_referrush {
  display: none;
  width: 350px;
  background-color: #fff;
  padding: 15px;
  position: fixed; /* Changed to fixed for modal positioning */
  top: 50%; /* Center the popup vertically */
  left: 50%; /* Center the popup horizontally */
  transform: translate(-50%, -50%); /* Offset the positioning by 50% */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  text-align: center; /* Center all content */
  padding: 10px 15px 25px; /* Add padding to the top and bottom */
  border-radius: 0.75rem;
}

#referrush_error_state {
  display: none;
}

/* Fullscreen on Mobile */
@media (max-width: 768px) {
  #popup_content_referrush {
    position: relative;
    width: 100%; /* Full width on mobile */
    bottom: 0;
    right: 0;
    left: 0; /* Full width on mobile */
    top: auto;
    transform: none;
  }
}

/* Title Styling */
#popup_content_referrush h3 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 600; /* font-semibold */
  font-size: 20px; /* text-sm equivalent (14px) */
  line-height: 1; /* leading-none */
  letter-spacing: -0.015em; /* tracking-tight */
  color: rgb(18, 18, 18);
  text-transform: none;
}

/* Description Styling */
.content-description {
  font-family: "Inter", sans-serif;
  font-size: 16px; /* text-sm equivalent (14px) */
  color: #6c757d; /* text-muted-foreground */
  margin-bottom: 12px;
}

/* Description Styling */
.referrush-footer-text {
  font-family: "Inter", sans-serif;
  font-size: 14px; /* text-sm equivalent (14px) */
  color: #6c757d; /* text-muted-foreground */
  margin-top: 12px;
  margin-bottom: 12px;
}

#close-popup {
  cursor: pointer;
  font-size: 20px;
  line-height: 20px;
}

/* Powered by ReferRush Styling */
.powered-by-popup {
  font-family: "Inter", sans-serif !important;
  font-size: 0.75rem !important;
  color: #6c757d !important;
  margin-top: 10px !important;
}

.powered-by-popup a {
  color: #2563eb !important;
  text-decoration: underline !important;
}

#loading_spinner_container {
  height: 100px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#loading_spinner_referrush {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #333;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto; /* Center the spinner */
  display: block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#popup_text_referrush {
  display: none; /* Initially hide the text */
}

#referrush_gift_icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover; /* Ensures the image covers the entire area */
  object-position: center; /* Centers the image */
  margin-left: auto;
  margin-right: auto;
}

.referrush-primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  transition: background-color 0.2s ease;
  margin-top: 20px;
  width: 100%;
  border-radius: 5px;
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* Hover effect for buttons */
.referrush-primary-button:hover {
  transform: scale(1.01);
}

.referrush-primary-button-text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  display: inline-block;
  align-items: center;
  max-width: 100%;
}

/* Container Styling */
.copy-referral-container {
  max-width: 100%;
  width: 100%;
  background-color: rgb(236, 238, 241); /* Equivalent to bg-gray-100 */
  border-radius: 0.5rem; /* Rounded corners */
  font-family: "Inter", sans-serif;
  font-size: 14px; /* Equivalent to text-sm */
  font-weight: 500; /* Equivalent to font-medium */
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 20px;
}

/* Referral Link Styling */
.referral-code {
  font-family: "Inter", sans-serif;
  font-size: 14px; /* text-sm equivalent (14px) */
  font-weight: 700; /* Equivalent to font-medium */
  color: rgb(18, 18, 18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 15px;
  padding-right: 10px;
  flex: 1; /* Make the referral link take up available space */
  max-width: calc(100% - 80px);
}

/* Copy Button Styling */
.copy-referral-button {
  background-color: #000; /* Equivalent to bg-neutral-800 */
  color: #fff; /* White text */
  padding: 10px 10px; /* Spacing inside the button */
  border: none;
  border-radius: 0 0.5rem 0.5rem 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 80px;
}

.copy-referral-button:hover {
  background-color: #6c757d; /* Equivalent to hover:bg-gray-400 */
}

#close_button_referrush {
  text-align: right; /* Aligns the button to the right within its row */
  font-size: 30px;
  font-weight: 500; /* Use numeric font-weight */
  color: #333;
  cursor: pointer;
  margin-bottom: 30;
  padding: 0; /* Removes padding if necessary */
  line-height: 1; /* Ensure no extra vertical spacing */
}
#close_button_referrush:hover {
  color: #000; /* Change color on hover */
}
