/* Kontech teaser module */
:root {
  --teaser-size: 200px;
  --teaser-side-offset: 20px;
  --teaser-vertical-offset: 20px;
  --teaser-close-zone-size: 170px;
}

.teaser {
  position: fixed;
  width: var(--teaser-size);
  height: var(--teaser-size);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.30);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 1s, transform 1s, box-shadow 0.2s;
  z-index: 9999;
  cursor: grab;
  outline: none;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.teaser.show {
  opacity: 1;
  transform: scale(1);
}

.teaser.is-dragging {
  cursor: grabbing;
  transition: opacity 0.15s, box-shadow 0.15s;
  z-index: 10001;
}

.teaser img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 2s;
  transform: scale(0.90);
  transform-origin: center center;

  /* Soft edge fade, but with a larger/dominant product image area.
     The image remains fully visible in the center and fades only close to its outer rectangle. */
  -webkit-mask-image: radial-gradient(ellipse 90% 64% at center,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0.96) 82%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
          mask-image: radial-gradient(ellipse 90% 64% at center,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0.96) 82%,
    rgba(0,0,0,0) 100%
  );
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: cover;

  border-radius: 10%;
  filter: blur(1px);
  pointer-events: none;
}

.teaser img.active {
  opacity: 1;
}

.teaser-caption-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.teaser-caption-text {
  fill: #ffffff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  stroke: #000000;
  stroke-width: 2px;
  paint-order: stroke fill;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.teaser-close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(190, 0, 0, 0.92);
  color: #fff;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0,0,0,0.30);
}

.teaser-close-drop-zone {
  position: fixed;
  left: 50%;
  top: 50%;
  width: var(--teaser-close-zone-size);
  height: var(--teaser-close-zone-size);
  transform: translate(-50%, -50%) scale(0.75);
  border-radius: 50%;
  background: rgba(190, 0, 0, 0.84);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 9px rgba(190,0,0,0.14), 0 12px 28px rgba(0,0,0,0.24);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.teaser-close-drop-zone.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.teaser-close-drop-zone.is-over {
  background: rgba(220, 0, 0, 0.96);
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 10px rgba(220,0,0,0.22), 0 14px 30px rgba(0,0,0,0.28);
}

.teaser-close-drop-x {
  display: block;
  font-size: 58px;
  line-height: 0.75;
  font-weight: 800;
}

.teaser-close-drop-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  :root {
    --teaser-size: 140px;
    --teaser-side-offset: 12px;
    --teaser-vertical-offset: 12px;
    --teaser-close-zone-size: 130px;
  }

  .teaser-caption-text {
    font-size: 10px;
  }

  .teaser-close-drop-x {
    font-size: 44px;
  }

  .teaser-close-drop-label {
    font-size: 12px;
  }
}
