.cutout-render {
  position: relative;
  display: block;
}

.cutout-render > img,
.live-cutout-render > .cutout-layer,
.live-cutout-render > .cutout-layer > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
}

.cutout-render > .cutout-outline-outer {
  filter: url(#lovidaCutoutYellow) !important;
}

.cutout-render > .cutout-outline-inner {
  filter: url(#lovidaCutoutBlack) !important;
}

.cutout-render .cutout-photo {
  filter: contrast(1.03) saturate(1.08) !important;
}

.live-cutout-render {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Album image styles must not pad, shade or clip the cutout's alpha layers. */
.live-media-stage .cutout-render > .cutout-layer,
.live-media-stage .cutout-render > .cutout-layer > img {
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.live-media-stage .cutout-render > .cutout-layer > img {
  filter: none !important;
}
.live-media-stage .cutout-render > .cutout-photo-layer > img {
  filter: contrast(1.03) saturate(1.08) !important;
}
.live-media-stage .ae-media-slot.raw-cutout > .ae-slot-media {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
.cutout-start-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 20; width: max-content; max-width: 94%; padding: 10px 16px;
  background: #fff; color: #2856a6; border: 2px solid #a9c5ff;
  border-radius: 24px; font: 700 14px/1.4 sans-serif; cursor: pointer;
  box-shadow: 0 3px 12px #28487725; animation: cutout-invite 2.4s ease-in-out infinite;
}
.cutout-start-hint:focus-visible { outline: 3px solid #2856a6; outline-offset: 3px; }
@keyframes cutout-invite { 50% { box-shadow: 0 0 0 5px #719aff25; } }
.is-playing .cutout-start-hint,.is-exporting .cutout-start-hint { display: none !important; }
@media (prefers-reduced-motion: reduce) { .cutout-start-hint { animation: none; } }

.cutout-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cutout-render[hidden],
.cutout-stage canvas[hidden] {
  display: none !important;
}
