#ei-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#ei-overlay.ei-visible {
  display: flex;
}

#ei-popup {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e4e9f0;
  overflow: hidden;
  width: 749px;
  height: 468px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: row;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.ei-img-wrap {
  position: relative;
  width: 358px;
  flex-shrink: 0;
  overflow: hidden;
}

.ei-img-gradient {
  position: absolute;
  width: 439px;
  height: 476px;
  left: calc(50% - 219.5px - 40px);
  top: calc(50% - 238px + 35px);
  background: linear-gradient(355.51deg, rgba(101, 170, 254, 0) 53.84%, rgba(101, 170, 254, 0.65) 187.55%);
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

.ei-img-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
}

.ei-img-mobile {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.ei-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
  gap: 24px;
  text-align: left;
}

.ei-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 46px;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #61779e;
  padding: 12px;
  z-index: 2;
}
.ei-close:hover {
  color: #333;
}

.ei-group-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.ei-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  background: #f4d06f;
  border-radius: 4px;
}

.ei-badge-label {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 2.24px;
  text-transform: uppercase;
  color: #1c1c1c;
}

.ei-headline {
  font-family: "Monda", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  color: #1c1c1c;
  margin: 0;
  width: 100%;
  border: none;
}

.ei-group-mid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.ei-sub {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: #1c1c1c;
  margin: 0;
  width: 100%;
}

.ei-save {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 68px;
  color: #29a37a;
  margin: 0;
  width: 100%;
}

.ei-cta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 40px;
  width: 153px;
  height: 60px;
  background: #005efd;
  border-radius: 999px;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.ei-cta:hover {
  background: #0049d4;
}

.ei-rated {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ei-rated-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.ei-rated-text {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #1c1c1c;
}

.ei-macworld {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #61779e;
}

.ei-stars {
  color: #61779e;
  font-size: 14px;
  letter-spacing: 2px;
}

@media (max-width: 767px) {
  #ei-popup {
    flex-direction: column;
    width: 360px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  .ei-img-wrap {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
  }
  .ei-img-desktop {
    display: none;
  }
  .ei-img-mobile {
    display: block;
  }
  .ei-img-gradient {
    display: none;
  }
  .ei-content {
    padding: 24px 20px;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  .ei-group-top,
  .ei-group-mid,
  .ei-rated,
  .ei-rated-row {
    align-items: center;
  }
  .ei-headline {
    font-size: 24px;
    line-height: 30px;
  }
  .ei-save {
    font-size: 40px;
    line-height: 48px;
  }
  .ei-cta {
    width: 100%;
  }
}
