.shapehost-resource-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.shapehost-resource-popup[hidden] {
  display: none !important;
}

.shapehost-resource-popup__panel {
  position: relative;
  width: 100%;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 24px 60px rgba(8, 22, 55, 0.22);
  border: 1px solid rgba(23, 92, 255, 0.14);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  outline: none;
  pointer-events: auto;
}

.shapehost-resource-popup.is-visible .shapehost-resource-popup__panel {
  transform: translateY(0);
  opacity: 1;
}

.shapehost-resource-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 16, 35, 0.06);
  color: #071023;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.shapehost-resource-popup__close:hover,
.shapehost-resource-popup__close:focus {
  background: rgba(7, 16, 35, 0.1);
}

.shapehost-resource-popup__eyebrow {
  margin: 0 0 10px;
  color: #175cff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shapehost-resource-popup__media {
  margin: 0 0 18px;
}

.shapehost-resource-popup__image-link,
.shapehost-resource-popup__image {
  display: block;
  width: 100%;
}

.shapehost-resource-popup__image-link {
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
}

.shapehost-resource-popup__image {
  aspect-ratio: 1 / 1;
  min-height: 240px;
  height: auto;
  background-color: #eef4ff;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(8, 22, 55, 0.12);
  object-fit: cover;
}

.shapehost-resource-popup__title {
  margin: 0 0 12px;
  color: #071023;
  font-size: 28px;
  line-height: 1.15;
}

.shapehost-resource-popup__message {
  margin: 0;
  color: #42526b;
  font-size: 16px;
  line-height: 1.6;
}

.shapehost-resource-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.shapehost-resource-popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.shapehost-resource-popup__button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.shapehost-resource-popup__button--primary {
  background: #175cff;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 92, 255, 0.22);
}

.shapehost-resource-popup__button--primary:link,
.shapehost-resource-popup__button--primary:visited,
.shapehost-resource-popup__button--primary:hover,
.shapehost-resource-popup__button--primary:focus,
.shapehost-resource-popup__button--primary:active {
  background: #175cff;
  color: #ffffff !important;
  text-decoration: none;
}

.shapehost-resource-popup__button--secondary {
  background: rgba(23, 92, 255, 0.08);
  color: #175cff;
}

.shapehost-resource-popup__secondary {
  margin: 14px 0 0;
  color: #66748a;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .shapehost-resource-popup {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }

  .shapehost-resource-popup__panel {
    padding: 22px 18px 18px;
  }

  .shapehost-resource-popup__title {
    font-size: 24px;
  }

}
