.rkit-image-hotspot-wrapper {
  display: flex;
	padding: 0;
}

.rkit-image-hotspot-inner {
  position: relative;
  width: var(--rkit-img-width);
  height: var(--rkit-img-height);
}

.rkit-image-hotspot-base-image {
  /* height: auto;
  width: auto; */
  object-fit: fill; 
  border-radius: 5px;
  max-width: 100% !important;
  min-width: 100% !important;
}

.rkit-image-hotspot-spot-item {
	position: absolute;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.rkit-image-hotspot-spot-button {
  overflow: hidden;
}

.rkit-image-hotspot-spot-button.pulse {
	height: calc(22px + 8px);
  width: calc(22px + 8px);
  padding: 0px;
  border-radius: 100%;
  border: 2px solid #ff6000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
  animation: button-pulse 3s ease-in-out infinite;
  cursor: pointer;
}

.rkit-image-hotspot-spot-button .thumb-image {
  position: relative;
  z-index: 2;
  height: calc(22px + 8px);
  width: calc(22px + 8px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rkit-image-hotspot-spot-button.pulse:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  content: "";
  display: block;
  height: calc(12px + 8px);
  width: calc(12px + 8px);
  border-radius: 100%;
  border: 2px solid white;
  background-color: #ff6000;
  transition: border-color 1s linear;
}

.rkit-image-hotspot-spot-button.ripple {
  height: calc(12px + 8px);
  width: calc(12px + 8px);
  background-color: #ff6000;
  padding: 0px;
  border-radius: 100%;
  border: 2px solid white;
  z-index: 2;
  cursor: pointer;
}

.rkit-image-hotspot-spot-button.ripple:after {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  content: "";
  display: block;
  height: calc(12px + 8px);
  width: calc(12px + 8px);
  border-radius: 100%;
  background-color: #ff6000;
  animation: ripple 2s ease-in-out infinite forwards;
  z-index: -1;
}

.rkit-image-hotspot-spot-button svg,
.rkit-image-hotspot-spot-button i {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.rkit-image-hotspot-spot-button svg {
  width: 8px;
  fill: #fff;
}

.rkit-image-hotspot-spot-button i {
  width: 10px;
  color: #fff;
}

body .rkit-image-hotspot-content-inner {
	min-width: 15rem;
  overflow: hidden;
  position: relative;
}

body .rkit-image-hotspot-content-inner .text-container {
  line-height: normal;
}

body .rkit-image-hotspot-content-inner .woo-price {
  display: flex;
  gap: 5px;
  justify-content: start;
  font-size: 18px;
}

body .rkit-image-hotspot-content-inner .woo-price:has(ins) {
  flex-direction: row-reverse;
}

body .rkit-image-hotspot-content-inner .woo-price ins {
  text-decoration: none;
  font-weight: 600;
}

body .rkit-image-hotspot-content-inner .woo-price del {
  color: #777;
}

body .rkit-image-hotspot-content-inner .woo-btn-wrapper {
  display: flex;
  justify-content: start;
}

body .rkit-image-hotspot-content-inner .woo-product-btn {
  padding: 8px 16px;
  color: #fff;
  background: #00cea6;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
}

body .rkit-image-hotspot-content-inner h4,
body .rkit-image-hotspot-content-inner p {
	padding: 0;
	margin: 0;
}

body .rkit-image-hotspot-content-inner h4 {
	font-size: 26px;
	font-weight: 600;
}

body .rkit-image-hotspot-content-inner a {
  color: inherit;
  text-decoration: none;
}

body .rkit-image-hotspot-content-inner .editor-edit-post {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  background: #f0abfc;
  border: none;
  padding: 5px 8px;
  color: #1d1d1d;
  font-size: 12px;
  border-radius: 0;
  border-bottom-left-radius: 3px;
}

.rkit-image-hotspot-spot-image-wrapper {
  width: 100%;
}

.rkit-image-hotspot-spot-image {
  object-fit: cover;
  width: 100%;
  height: 100% !important;
}

/* Modified tippy as popup for mobile */
.rkit-image-hotspot-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 40px;
  overflow: auto;
}

.rkit-image-hotspot-popup.open {
  display: flex;
  align-items: center;
}

body.rkit-popup-open {
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  /* .rkit-image-hotspot-spot-button.pulse {
    height: calc(22px + 8px) !important;
    width: calc(22px + 8px) !important;
  }

  .rkit-image-hotspot-spot-button.pulse:after,
  .rkit-image-hotspot-spot-button.ripple,
  .rkit-image-hotspot-spot-button.ripple:after {
    height: calc(12px + 8px) !important;
    width: calc(12px + 8px) !important;
  }

  .rkit-image-hotspot-spot-button svg {
    width: 8px !important;
  }

  .rkit-image-hotspot-spot-button i {
    width: 10px !important;
  } */
}

@keyframes button-pulse {
  0% {
    transform: scale(1, 1);
    opacity: 1;
  }
  40% {
    transform: scale(1.15, 1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    opacity: 1;
  }
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Tippy customize style */
.tippy-box,
.tippy-box[data-theme~='light'],
.tippy-box[data-theme~='custom'] {
  box-shadow: -5px 6px 38px -14px rgba(0,0,0,0.2);
  line-height: 0;
}

.tippy-box[data-theme~='light'],
.tippy-box[data-theme~='custom'],
.rkit-image-hotspot-popup-container.light,
.rkit-image-hotspot-popup-container.custom {
  background: #fff;
  color: #060400;
}

.tippy-box[data-theme~='light'][data-placement^="right"] > .tippy-arrow::before,
.tippy-box[data-theme~='custom'][data-placement^="right"] > .tippy-arrow::before {
  border-right-color: #fff;
}

.tippy-box[data-theme~='light'][data-placement^="left"] > .tippy-arrow::before,
.tippy-box[data-theme~='custom'][data-placement^="left"] > .tippy-arrow::before {
  border-left-color: #fff;
}

.tippy-box[data-theme~='light'][data-placement^="top"] > .tippy-arrow::before,
.tippy-box[data-theme~='custom'][data-placement^="top"] > .tippy-arrow::before {
  border-top-color: #fff;
}

.tippy-box[data-theme~='light'][data-placement^="bottom"] > .tippy-arrow::before,
.tippy-box[data-theme~='custom'][data-placement^="bottom"] > .tippy-arrow::before {
  border-bottom-color: #fff;
}

.tippy-content {
  border-radius: inherit;
  overflow: hidden;
  padding: 0;
}

.rkit-image-hotspot-popup-container {
  width: 100%;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
  box-shadow: 1px 1px 90px 16px rgba(51,51,51,0.36);
  -webkit-box-shadow: 1px 1px 90px 16px rgba(51,51,51,0.36);
  -moz-box-shadow: 1px 1px 90px 16px rgba(51,51,51,0.36);
}