.frontend-hotspot-area {
  position: relative;
  display: inline-block;
}
.hotspot-modal {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: 220px;
  border-radius: 8px;
}
.hotspot-modal img {
  height: auto;
  border-radius: 5px;
  margin-bottom: 8px;
}
.hotspot-modal h4 {
  margin: 5px 0;
  font-size: 15px;
}
.hotspot-modal p {
  margin: 5px 0;
  font-size: 14px;
}
.hotspot-modal button {
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #0073aa;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.hotspot-modal button:hover {
  background-color: #005a87;
}
/* BLUR EFFECT FOR BACKGROUND WHEN MODAL IS OPEN */
.hotspot-blur-active>*:not(.hotspot-modal):not(.hotspot-exempt):not(.hotspot-parent-modal):not(script) {
  filter: blur(5px);
  transition: filter 0.3s ease;
  pointer-events: none;
}
.first-template-hotpot-moda {
  display: flex;
  flex-direction: column;
}
.skyblue-button {
  display: inline-block;
  background-color: #87CEEB;
  color: #000;
  padding: 5px;
  margin-top: 5px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%;
}
.skyblue-button:hover {
  background-color: #5F9EA0;
}
.frontend-hotspot-point.hotspot-icon-type {
  /* No background, clean icon */
  background: none !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}
.personal-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  max-width: 400px;
  background-color: rgb(249, 249, 249);
  border-radius: 10px;
  font-size: 10px;
}
.profile-left {
  flex-shrink: 0;
}
.contact-name {
  font-size: 1.5em;
}
.profile-right {
  display: flex;
  flex-direction: column;
}
.hotspot-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* important so polygon hover still works */
  z-index: 999999999999;
  /* ensure it's higher than the image */
}
.hotspot-hover-line {
  stroke: rgba(200, 200, 200, 0.4);
  /* transparent gray */
  stroke-width: 3;
  transition: x2 0.5s ease, y2 0.5s ease;
  /* smooth line animation */
}
.hotspot-overlay-dim {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.65);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hotspot-svg-wrapper {
  position: relative;
}
/* 🔶 Smooth line draw animation */
.hotspot-hover-line {
  stroke: rgba(211, 205, 205, 0.493);
  stroke-width: 5 !important;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 0.6s ease-out forwards;
  pointer-events: none;
}
/* ✏️ Line animation keyframes */
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}
.hotspot-product-card-wrapper {
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  padding: 10px;
}
.hotspot-product-card {
  display: flex;
  flex-direction: column;
}
.hotspot-product-card .product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.product-content,
.hotspot-product-content {
  padding: 20px;
  border-top: 1px solid #eee;
}
.product-title,
.hotspot-product-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
  line-height: 1.4;
}
.product-price,
.hotspot-product-price {
  font-size: 15px;
  font-weight: 500;
  color: #0073aa;
  margin-bottom: 20px;
}
.product-price del,
.hotspot-product-price del {
  color: #888;
  margin-left: 6px;
}
.variation-row {
  margin-bottom: 16px;
}
.variation-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}
.variation-row select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.button,
.hotspot-product-button {
  width: 100%;
  padding: 12px 16px;
  background-color: #0067b8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.button:hover,
.hotspot-product-button:hover {
  background-color: #0055a3;
}
.hotspot-product-buttons .icon-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  padding: 0.6em 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(76, 111, 255, 0.4);
}
.hotspot-product-buttons .icon-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(76, 111, 255, 0.6);
}
.hotspot-product-buttons .icon-cart:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(76, 111, 255, 0.3);
}
.hotspot-product-buttons .icon-cart::before {
  content: "🛒";
  margin-right: 0.5em;
  font-size: 1.1em;
}
@media (max-width: 480px) {
  .hotspot-modal {
    width: 95vw !important;
    padding: 12px !important;
  }
}
.animated-line {
  transition: stroke-dashoffset 0.5s ease-in-out;
}
.animated-line-top,
.animated-line-bottom,
.animated-line-left,
.animated-line-right {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.animated-line.animate {
  stroke-dashoffset: 0;
}