#arsPopup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ars-popup-box {
  background: #fff;
  max-width: 800px;
  width: 90%;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
}

#arsClose {
  position: absolute;
  top: 3px;
  right: 12px;
  cursor: pointer;
  font-size: 22px;
}

.ars-left,
.ars-right {
  padding: 20px;
}

.ars-left img {
  max-width: 300px;
}

.ars-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.ars-card {
  /* border: 1px solid #ddd; */
  padding: 20px !important;
  text-align: center;
  border-radius: 20px !important;
}

#friendFields input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}
.arsMsg b {
  display: block;
  margin-bottom: 5px;
}
#refCode {
  background: #eee;
  padding: 5px;
  font-family: monospace;
  font-weight: bold;
}

/* Search bar of offer*/

/* .ars-search-container {
  max-width: 500px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}

#arsSearchInput {
  border: 1px solid #ccc;
  border-radius: 4px;
}

#arsSearchBtn {
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  transition: background 0.2s;
}

#arsSearchBtn:hover {
  background: #005177;
} */

@media screen and (max-width: 576px) {
  .ars-popup-box {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  div#arsImg {
    width: 62%;
    padding-bottom: 0;
  }
  div#arsDesc p {
    margin-bottom: 0;
  }
  form#arsForm {
    margin-top: 10px;
  }
  .ars-search-row #arsSearchBtn {
    /* padding: 0 !important; */
  }
}
.ars-card img {
  max-height: 220px !important;
  /* max-width: 240px !important; */
  max-width: 100% !important;
  border-radius: 12px !important;
  /* padding: 5px; */
  /* border: 1px solid #bdbdbd; */
  margin-bottom: 20px !important;
}

.ars-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
}

.ars-card p {
  margin: 0 !important;
}
.ars-card h3 {
  line-height: 1.2 !important;
  margin: 0px !important;
}

.ars-card button.ars-open {
  margin-top: 10px !important;
}
.ars-card button,
#arsForm button {
  display: inline-block;
  padding: 10px 25px;
  margin: 5px;
  border-radius: 5px;
  background: rgb(26, 188, 156);
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: background 0.3s;
  border: none;
}

.ars-popup-box {
  border-radius: 14px;
  padding: 20px 0;
}
.ars-popup-box img {
  border-radius: 10px;
}
.ars-popup-box .arsForm input {
  border: 1px solid #e5e5e5;
  padding: 5px;
  border-radius: 5px;
  background: #f7f7f7;
}
.ars-popup-box .arsForm input::placeholder {
  color: #bfbfbf;
}
.ars-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-card-container {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
