.contact-form-container {
  display: none;
  position: fixed;
  width: 300px;
  bottom: 20px;
  left: 10px;
  z-index: 9999;
  justify-content: center; /* Centers content horizontally */
  box-sizing: border-box; /* Ensures padding is included in width */
  margin-top: 40px;
  margin-bottom: 40px;
  background-color: #fff;
  border-radius: 10px; /* Added border-radius for rounded corners */
  overflow: hidden; /* Ensures child elements don't overflow the rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  /* Styles for mobile devices */
  .contact-form-container {
    width: 100%; /* Set the container to full width */
    bottom: 0; /* Align it to the bottom of the screen */
    left: 0; /* Reset right position */
    height: auto; /* Set a specific height for the bottom sheet */
    border-radius: 10px 10px 0 0; /* Rounded corners only at the top */
    margin: 0; /* Remove top and bottom margins */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2); /* Shadow at the top */
  }

  /* Ensure the refer-and-earn button stays in its place on the right */
  .refer-and-earn-button {
    bottom: 10px; /* Adjust bottom position */
    left: 10px; /* Maintain right alignment */
    width: auto; /* Ensure it fits content */
    padding: 10px 10px; /* Adjust padding for better fit */
  }

  /* Ensure other elements within the form are adjusted */
  .contact-form-block {
    padding: 20px 15px; /* Adjust padding to match new layout */
    max-width: 100%; /* Full width */
    height: auto; /* Auto height to fit content */
  }

  /* Adjust form fields, input, and buttons */
  .contact-form-group,
  #referrush_submit_button,
  .contact-form-submit {
    width: 100%; /* Ensure all elements are full width */
  }
}

.refer-and-earn-button {
  display: none;
  position: fixed;
  /* bottom: 10px; */
  /* left: 10px; */
  z-index: 9998;
  padding: 10px 10px;
  background-color: #262626;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

/* Add new styles for myfrido */
.refer-and-earn-button.myfrido {
  background-color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid #000;
}

.refer-and-earn-button.myfrido img {
  width: 30px;
  height: 30px;
  /* display: flex;
  justify-content: center;
  align-items: center;
  object-fit: contain; */
}

#contact_form_input_referrush {
  display: block;
}

#contact_form_success_referrush {
  display: none;
}

.contact-form-block {
  display: none;
  padding: 20px;
  max-width: 500px;
  margin: 20px auto;
  box-sizing: border-box; /* Ensures padding is included in width */
  overflow: hidden; /* Prevents overflow of internal elements */
}
.contact-form-title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 18px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: rgb(18, 18, 18);
}

.contact-form-description {
  margin-bottom: 20px;
  text-align: center;
  word-wrap: break-word; /* Allow description text to wrap */
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #6c757d; /* text-muted-foreground */
}

.social-share-text {
  /* margin-bottom: 8px; */
  margin-top: 8px;
  text-align: center;
  word-wrap: break-word;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  color: #6c757d; /* text-muted-foreground */
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
}

.phone-prefix {
  padding: 0 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-right: none;
  height: 40px;
  line-height: 40px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  border-radius: 4px 0 0 4px; /* Rounded corners on the left */
  align-items: center;
}

#contact_phone_referrush {
  flex: 1;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-left: none;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  border-radius: 0 4px 4px 0; /* Rounded corners on the right */
  outline: none;
  box-sizing: border-box;
  margin: 0;
}

#contact_phone_referrush:focus {
  outline: none;
  border-color: #ccc;
  box-shadow: none;
}

.contact-form-group {
  margin-bottom: 15px;
}

.contact-form-submit {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
  width: 100%;
}

#referrush_submit_button {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  background-color: #000;
  color: #fff;
  border-radius: 4px;
  font-weight: semibold;
  border: none;
  height: 40px;
  cursor: pointer;
}

#referrush_submit_button:hover {
  transform: scale(1.01);
}

.powered-by {
  margin-top: 15px !important;
  text-align: center !important;
  font-size: 12px !important;
  font-family: "Inter", sans-serif !important;
  color: #6c757d !important;
}

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

/* Referral Link Box Styles */
.referral-link-box {
  width: 100%;
  max-width: 100%;
  background-color: #f3f4f6; /* Tailwind's bg-gray-100 */
  color: #1f2937;
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  border-radius: 6px; /* Rounded corners */
  padding: 0;
}

/* Referral Link Text */
.referral-link-text {
  flex: 1;
  min-width: 0; /* Allows the flex item to shrink */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #2563eb; /* Tailwind's text-blue-600 */
  text-decoration: underline;
  cursor: pointer;
  padding: 0 10px;
  margin: 0;
  /* Rounded corners on the left */
  border-radius: 6px 0 0 6px;
  background-color: transparent;
  height: 100%;
  line-height: 40px; /* Vertically centers the text */
  display: block; /* Ensures proper behavior for text-overflow */
}

.copy-button {
  background-color: #262626; /* Tailwind's bg-neutral-800 */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 100%;
  width: 60px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  /* Rounded corners on the right */
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Hover effect for the copy button */
.copy-button:hover {
  transform: scale(1.01);
}

#copy-icon {
  display: flex;
  align-items: center;
}

/* Social Share Buttons Container */
.social-share-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 20px;
}

/* Individual Share Buttons */
.social-share-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 7px;
  margin: 0 5px;
  transition: transform 0.2s;
}

/* Hover effect for buttons */
.social-share-btn:hover {
  transform: scale(1.1);
}

/* Restrict the size of the social media icons */
.social-share-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#merchant-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: none; /* Initially hidden, will be shown via JavaScript */
  object-fit: cover; /* Ensures the image covers the entire area */
  object-position: center; /* Centers the image */
  border-radius: 50%; /* Makes the image rounded (circular) */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a shadow effect */
  margin-left: auto;
  margin-right: auto;
}

#contact_form_loading_spinner {
  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: 100px auto; /* Center the spinner */
  display: block; /* Hide the spinner by default */
}

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

.back-button-referrush {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: black; /* Change color as needed */
}

.close-button-referrush {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: black; /* Add this line to make the button black */
}

/* General Text Styling */
.contact-form-title,
.contact-form-description,
.social-share-text,
.refer-and-earn-button,
.referral-link-text,
.copy-button,
#contact_phone_referrush,
#referrush_submit_button,
.contact-form-submit,
.phone-prefix {
  letter-spacing: normal; /* Ensures standard letter spacing */
}
