:root {
  --invite-friend-title-color: #fff;
  --invite-friend-modern-gradient: linear-gradient(135deg, #00b4d8 0%, #00b4d899 100%);
  --invite-friend-secodary-color: #64748b;
  --invite-friend-action-bg: #00b4d8;
  --invite-friend-invite-friend-modern-gradient: -webkit-linear-gradient(103deg, rgba(2, 0, 36, 1) 0%, rgb(255, 51, 125) 0%, rgb(76, 84, 115) 100%);
}

#invite-friend {
  --invite-friend-primary-color: #00b4d8;
  --invite-friend-primary-hover: #0096c7;
  --invite-friend-success-color: #22c55e;
  --invite-friend-error-color: #ef4444;
  --invite-friend-text-color: #1f2937;
  --invite-friend-bg-color: #f9fafb;
  font-family: "Poppins", -apple-system, sans-serif;
  display: flex;
  padding: 2rem 0;
  position: fixed;
  top:600px;
  /* bottom: 10%; */
  left: 10px;
  z-index: 999999;
}

.invite-friend-container {
  max-width: 1200px;
  text-align: center;
}

.invite-friend-button {
    background: #272727 !important;
    color: white !important;
    border: 1px solid #1d1e21 !important;
    padding: 12px 12px !important;
    font-size: 16px;
    border-radius: 12px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3scubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: inset 0 1.5px 0 0 #4a4e51;
    height: auto !important;
    line-height: 0 !important;
}

.invite-friend-button:hover {
    transform: none;
    gap: 10px;
    line-height: 1em !important;
}

#invite-friend-ifModal {
  z-index: 9999;
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(2px);
}

#invite-friend-ifModal.invite-friend-show {
  opacity: 1;
}

#invite-friend-ifModal .invite-friend-if-modal-content {
    background-color: #272727;
    margin: 10vh auto;
    padding: 2rem 1rem 2rem 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3scubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 1.5px 0 0 #4a4e51, 0 1.5px 0 0 #4a4e51;
}

#invite-friend-ifModal.invite-friend-show .invite-friend-if-modal-content {
  transform: translateY(0);
  opacity: 1;
}

#invite-friend-ifModal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-right: 30px;
    color: #fff;
}

#invite-friend-ifModal p {
  margin-top: 5px;
  margin-bottom: 20px;
  color: #ffffffd4;
}

.invite-friend-if-form-group {
  margin-bottom: 0.8rem !important;
  position: relative;
}

.invite-friend-if-form-group label {
  display: block;
  margin-bottom: 0.5rem !important;
  font-weight: 500;
  font-size: 0.925rem;
  color: #fff;
}

.invite-friend-if-form-group input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #b3b3b3 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    transition: border-color 0.2s;
    outline: none !important;
    height: auto !important;
    background: inherit !important;
    color: #fff !important;

}

.invite-friend-if-form-group input:focus {
  border-color: var(--invite-friend-primary-color) !important;
  box-shadow: 0 5px 5px #0000003b !important;
}

#invite-friend-ifInviteForm .invite-friend-submit-button {
    background: var(--invite-friend-primary-color);
    color: white;
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    margin-top: 20px;
    height: 50px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#invite-friend-ifInviteForm .invite-friend-submit-button:hover {
    background: var(--invite-friend-primary-hover);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 30%);
}

#invite-friend-ifSuccessMessage {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: #00b4d8;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;       
  pointer-events: none; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

#invite-friend-ifSuccessMessage.invite-friend-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;     
  pointer-events: auto;
}

#invite-friend-ifCloseModal {
    position: absolute;
    top: 0.8rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: #b3b3b3;
    z-index: 2;
}

#invite-friend-ifCloseModal svg:hover {
  color: #fff;
}

.invite-friend-error-message {
  color: #b90303;
  margin: 5px 0 !important;
}

.invite-friend-container h4 {
  font-weight: 500;
  font-size: 20px;
}

@media (max-width: 768px) {

#invite-friend-ifSuccessMessage svg{
  width:30px;
}
  .invite-friend-container h1 {
    font-size: 2em;
  }

  #invite-friend-ifModal .invite-friend-if-modal-content {
    margin: 10vh auto;
    padding: 1.5rem 0.5rem 1.5rem 1.5rem;
  }

  #invite-friend-ifSuccessMessage {
    width: 90%;
  }
}

.invite-friend-text {
  opacity: 0;
  visibility: hidden;
  width: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.invite-friend-button:hover .invite-friend-text {
  opacity: 1;
  visibility: visible;
  width: auto;
}

@media screen and (max-width: 768px) {
  .invite-friend-text {
    display: none;
  }
}



.invite-friend-add-message-button {
    background: none !important;
    border: none !important;
    color: var(--invite-friend-primary-color) !important;
    padding: 0.5rem 0 !important;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    margin: 0;
}

.invite-friend-add-message-button:hover {
    color:var(--invite-friend-primary-hover) !important;
}

#invite-friend-ifMessageContainer {
    display: none; 
    margin-top: 1rem;
}

#invite-friend-ifMessage {
    width: 100%;
    padding: 0.75rem 1rem !important;
    border: 1px solid #b3b3b3 !important;
    border-radius: 12px;
    font-size: 1rem;
    min-height: 100px;
    max-height: 200px;
    resize: vertical;
    overflow-y: auto;
    background: inherit !important;
    color: #fff; 
}

#invite-friend-ifMessage:focus {
    box-shadow: 0 5px 5px #0000003b !important;
    outline: none;
    border-color: var(--invite-friend-primary-color) !important;
}

#invite-friend-ifModal .invite-friend-scroll-container {
    max-height: calc(80vh - 4rem); 
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 1rem;
}

#invite-friend-ifModal .invite-friend-scroll-container::-webkit-scrollbar {
  width: 5px; 
}

#invite-friend-ifModal .invite-friend-scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a; 
  border-radius: 4px; 
}

#invite-friend-ifModal .invite-friend-scroll-container::-webkit-scrollbar-thumb {
  background: #b3b3b3;
  border-radius: 4px;
}

#invite-friend-ifModal .invite-friend-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #b3b3b3; 
}

.invite-friend-if-form-group input::placeholder,
.invite-friend-custom-textarea::placeholder {
    opacity: 0.4 !important;
    color: inherit !important; 
}

.invite-friend-if-form-group input::placeholder {
    color: #b3b3b3; 
}

.invite-friend-custom-textarea::placeholder {
    color: #b3b3b3; 
}

.invite-friend-if-form-group input:-webkit-autofill,
.invite-friend-if-form-group input:-webkit-autofill:hover,
.invite-friend-if-form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #272727 inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.invite-friend-if-form-group input:-moz-autofill {
  box-shadow: 0 0 0 1000px #272727 inset !important;
  -moz-text-fill-color: #fff !important;
}

.invite-friend-custom-textarea:-webkit-autofill,
.invite-friend-custom-textarea:-webkit-autofill:hover,
.invite-friend-custom-textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #272727 inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.invite-friend-custom-textarea:-moz-autofill {
  box-shadow: 0 0 0 1000px #272727 inset !important;
  -moz-text-fill-color: #fff !important;
}
@media (max-width:768px){
#invite-friend {
    top: auto;
    left: 5px;
    bottom: 20px;
}
.invite-friend-button {
    padding: 10px !important;
}
}
@media (min-width:768px){
#invite-friend {
    left: -1px;
    
}
  .invite-friend-button {
    border-radius: 0px 10px 10px 0px !important;
}
}

@media (max-width:991px){
  /* #invite-friend {
    z-index: 3 !important;
  } */
}
@media screen and (max-width: 767px) {
    body .number-of-views-block {
        bottom: 120px !important;
    }
}
  @media (max-height: 730px) and (min-width:768px){
    .invite-friend-button {
        border-radius: 10px 0px 0px 10px !important;
    }
 .invite-friend-button:hover .invite-friend-text{
         display: none !important;
   }
  }