.ecv-transform-layer {
    position: relative;
}

.ecv-hotspot-layer {
    position: absolute;
    z-index: 7;
    inset: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.ecv-app.is-page-turning .ecv-hotspot-layer {
    opacity: 0;
    pointer-events: none;
}

.ecv-hotspot {
    position: absolute;
    display: block;
    min-width: 12px;
    min-height: 12px;
    padding: 0;
    border: 1px solid rgba(73, 130, 205, .45);
    border-radius: 4px;
    background: rgba(73, 130, 205, .035);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.ecv-hotspot::after {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(22, 33, 49, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    content: '↗';
    opacity: .82;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .26);
}

.ecv-hotspot[data-type="page"]::after { content: '→'; }
.ecv-hotspot[data-type="video"]::after { content: '▶'; }
.ecv-hotspot[data-type="phone"]::after { content: '☎'; }
.ecv-hotspot[data-type="email"]::after { content: '@'; }

.ecv-hotspot:hover,
.ecv-hotspot:focus-visible {
    border-color: rgba(82, 149, 239, .95);
    background: rgba(82, 149, 239, .14);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 0 0 3px rgba(82, 149, 239, .28);
    outline: 0;
}

.ecv-hotspot:hover::after,
.ecv-hotspot:focus-visible::after {
    opacity: 1;
    background: #2563eb;
}

.ecv-hotspot-dialog {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    background: rgba(3, 7, 14, .84);
    backdrop-filter: blur(8px);
}

.ecv-hotspot-dialog[hidden] {
    display: none !important;
}

.ecv-hotspot-dialog-card {
    width: min(100%, 1080px);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: #111318;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.ecv-hotspot-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ecv-hotspot-dialog-head strong {
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ecv-hotspot-dialog-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.ecv-hotspot-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.ecv-hotspot-video-wrap iframe,
.ecv-hotspot-video-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.ecv-hotspot-dialog-description {
    margin: 0;
    padding: 12px 18px 16px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.65;
}

@media (hover: none) {
    .ecv-hotspot {
        border-color: rgba(73, 130, 205, .62);
        background: rgba(73, 130, 205, .06);
    }

    .ecv-hotspot::after {
        width: 24px;
        height: 24px;
        opacity: .94;
    }
}

@media (max-width: 767px) {
    .ecv-hotspot {
        border-radius: 3px;
    }

    .ecv-hotspot::after {
        top: 3px;
        right: 3px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .ecv-hotspot-dialog {
        padding-right: 10px;
        padding-left: 10px;
    }

    .ecv-hotspot-dialog-card {
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecv-hotspot-layer,
    .ecv-hotspot {
        transition: none;
    }
}
