.unitive-product-hotspots {
    overflow: clip;
    color: var(--color-ink, #2f1a5b);
    background: transparent;
}

.unitive-product-hotspots__layout {
    display: grid;
    grid-template-columns:
        minmax(150px, 220px)
        minmax(0, 680px)
        minmax(150px, 220px);
    gap: clamp(24px, 3vw, 48px);
    align-items: stretch;
    justify-content: center;

    margin-top: 32px;
}

.unitive-product-hotspots__details {
    display: flex;
    flex-direction: column;
    gap: 48px;
    justify-content: space-around;

    min-width: 0;
    padding: 36px 0;
}

.unitive-product-hotspots__details:empty {
    display: none;
}

.unitive-product-hotspots__detail {
    color: var(--color-ink, #2f1a5b);
    text-align: center;
}

.unitive-product-hotspots__detail-media {
    overflow: hidden;

    box-sizing: border-box;
    width: 119px;
    height: 119px;
    margin: 0 auto 18px;
    border: 2px solid transparent;
    border-radius: 50%;

    background: #ddd;
    box-shadow: 0 0 0 0 rgb(255 151 0 / 0%);

    transition:
        border-color 260ms ease,
        box-shadow 420ms ease;
}

.unitive-product-hotspots__detail-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    filter: grayscale(1);

    transition:
        filter 420ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.unitive-product-hotspots__detail.is-previewed .unitive-product-hotspots__detail-media,
.unitive-product-hotspots__detail.is-selected .unitive-product-hotspots__detail-media {
    border-color: #ff9700;
    box-shadow:
        0 0 0 5px rgb(255 151 0 / 10%),
        0 14px 30px rgb(47 26 91 / 12%);
    animation: unitive-hotspot-media-reveal 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.unitive-product-hotspots__detail.is-previewed .unitive-product-hotspots__detail-media img,
.unitive-product-hotspots__detail.is-selected .unitive-product-hotspots__detail-media img {
    transform: scale(1.025);
    filter: grayscale(0);
}

.unitive-product-hotspots__detail h3,
.unitive-product-hotspots__detail-content,
.unitive-product-hotspots__detail-content p {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

.unitive-product-hotspots__detail h3 {
    font-weight: 700;
}

.unitive-product-hotspots__detail-content {
    font-weight: 400;
}

.unitive-product-hotspots__detail-content > * + * {
    margin-top: 4px;
}

.unitive-product-hotspots__stage {
    position: relative;

    display: grid;
    place-self: center center;

    width: fit-content;
    max-width: 100%;
}

.unitive-product-hotspots__media {
    display: block;
    grid-area: 1 / 1;

    width: auto;
    max-width: 100%;
    max-height: 620px;

    object-fit: scale-down;
}

.unitive-product-hotspots__markers {
    pointer-events: none;

    position: relative;
    z-index: 2;

    grid-area: 1 / 1;

    width: 100%;
    height: 100%;
}

.unitive-product-hotspots__marker {
    pointer-events: auto;
    position: absolute;
    top: var(--hotspot-y);
    left: var(--hotspot-x);
}

.unitive-product-hotspots__trigger {
    cursor: pointer;

    position: relative;
    transform: translate(-50%, -50%);

    display: grid;
    place-items: center;

    box-sizing: border-box;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 50%;

    color: #fff;

    background: rgb(248 248 248 / 0.2);

    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.unitive-product-hotspots__trigger::before {
    pointer-events: none;
    content: "";

    position: absolute;
    inset: -1px;
    transform: scale(0.88);

    border: 1px solid rgb(255 151 0 / 58%);
    border-radius: inherit;

    opacity: 0;
    box-shadow: 0 0 14px rgb(255 151 0 / 12%);

    animation: unitive-hotspot-cta-pulse 3.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.unitive-product-hotspots__marker:nth-child(3n + 2) .unitive-product-hotspots__trigger::before {
    animation-delay: -1.13s;
}

.unitive-product-hotspots__marker:nth-child(3n) .unitive-product-hotspots__trigger::before {
    animation-delay: -2.26s;
}

.unitive-product-hotspots__symbol {
    position: relative;

    display: grid;
    place-items: center;

    box-sizing: border-box;
    width: 25px;
    height: 25px;
    border: 1px solid currentcolor;
    border-radius: 50%;
}

.unitive-product-hotspots__symbol::before,
.unitive-product-hotspots__symbol::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 11px;
    height: 1px;

    background: currentcolor;
}

.unitive-product-hotspots__symbol::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.unitive-product-hotspots__trigger.has-icon .unitive-product-hotspots__symbol::before,
.unitive-product-hotspots__trigger.has-icon .unitive-product-hotspots__symbol::after {
    display: none;
}

.unitive-product-hotspots__symbol img {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.unitive-product-hotspots__trigger:hover,
.unitive-product-hotspots__trigger:focus-visible,
.unitive-product-hotspots__marker.is-previewed .unitive-product-hotspots__trigger,
.unitive-product-hotspots__marker.is-selected .unitive-product-hotspots__trigger {
    color: #ff9700;
    background: #f8f8f8;
}

.unitive-product-hotspots__trigger:hover::before,
.unitive-product-hotspots__trigger:focus-visible::before,
.unitive-product-hotspots__marker.is-previewed .unitive-product-hotspots__trigger::before,
.unitive-product-hotspots__marker.is-selected .unitive-product-hotspots__trigger::before {
    animation: none;
}

.unitive-product-hotspots__trigger:focus-visible {
    outline: 2px solid #ff9700;
    outline-offset: 3px;
}

@keyframes unitive-hotspot-cta-pulse {
    0%,
    58%,
    100% {
        transform: scale(0.88);
        opacity: 0;
    }

    8% {
        opacity: 0.42;
    }

    36% {
        transform: scale(1.62);
        opacity: 0;
    }
}

@keyframes unitive-hotspot-media-reveal {
    0% {
        transform: scale(0.985);
    }

    52% {
        transform: scale(1.018);
    }

    100% {
        transform: scale(1);
    }
}

@media (width <= 1024px) {
    .unitive-product-hotspots__layout {
        grid-template-columns:
            minmax(130px, 180px)
            minmax(0, 1fr)
            minmax(130px, 180px);
        gap: 24px;
    }

    .unitive-product-hotspots__detail-media {
        width: 104px;
        height: 104px;
    }

    .unitive-product-hotspots__detail h3,
    .unitive-product-hotspots__detail-content,
    .unitive-product-hotspots__detail-content p {
        font-size: 18px;
    }
}

@media (width <= 820px) {
    .unitive-product-hotspots__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-top: 24px;
    }

    .unitive-product-hotspots__details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 24px;

        width: 100%;
        padding: 0;
    }

    .unitive-product-hotspots__details--left {
        grid-row: 1;
    }

    .unitive-product-hotspots__stage {
        grid-row: 2;
        width: fit-content;
        max-width: min(72vw, 420px);
    }

    .unitive-product-hotspots__details--right {
        grid-row: 3;
    }

    .unitive-product-hotspots__detail-media {
        width: 88px;
        height: 88px;
        margin-bottom: 12px;
    }

    .unitive-product-hotspots__detail h3,
    .unitive-product-hotspots__detail-content,
    .unitive-product-hotspots__detail-content p {
        font-size: 16px;
    }
}

@media (width <= 560px) {
    .unitive-product-hotspots__layout {
        gap: 24px;
    }

    .unitive-product-hotspots__details {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
        gap: 16px;
    }

    .unitive-product-hotspots__stage {
        max-width: min(78vw, 340px);
    }

    .unitive-product-hotspots__detail-media {
        width: 72px;
        height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .unitive-product-hotspots__trigger::before {
        animation: none;
    }

    .unitive-product-hotspots__trigger,
    .unitive-product-hotspots__detail-media,
    .unitive-product-hotspots__detail-media img {
        transition: none;
        animation: none;
    }
}
