.opm-hotspot {
    --opm-hotspot-point-bg: #000000;
    --opm-hotspot-icon-color: #ffffff;
    --opm-hotspot-tooltip-bg: #000000;
    --opm-hotspot-tooltip-color: #ffffff;
    --opm-hotspot-point-size: 40px;
    --opm-hotspot-tooltip-width: 270px;
    --opm-hotspot-radius: 0px;

    width: 100%;
}

.opm-hotspot__image {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.opm-hotspot--ratio-16-9 .opm-hotspot__image {
    aspect-ratio: 16 / 9;
}

.opm-hotspot--ratio-4-3 .opm-hotspot__image {
    aspect-ratio: 4 / 3;
}

.opm-hotspot--ratio-1-1 .opm-hotspot__image {
    aspect-ratio: 1 / 1;
}

.opm-hotspot--ratio-2-1 .opm-hotspot__image {
    aspect-ratio: 2 / 1;
}

.opm-hotspot__item {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.opm-hotspot__trigger {
    position: relative;
    width: var(--opm-hotspot-point-size);
    height: var(--opm-hotspot-point-size);
    padding: 0;
    border: 0;
    border-radius: var(--opm-hotspot-radius);
    background: var(--opm-hotspot-point-bg);
    cursor: pointer;
    transition: background-color 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.opm-hotspot__trigger:hover,
.opm-hotspot__trigger:focus {
    outline: none;
}

.opm-hotspot__icon {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 150ms cubic-bezier(0.2, 0.5, 0.34, 1);
}

.opm-hotspot__icon::before,
.opm-hotspot__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--opm-hotspot-icon-color);
    transform: translate(-50%, -50%);
}

.opm-hotspot__icon::before {
    width: 1px;
    height: 50%;
}

.opm-hotspot__icon::after {
    width: 50%;
    height: 1px;
}

.opm-hotspot__item.is-active .opm-hotspot__icon {
    transform: rotate(45deg);
}

.opm-hotspot__custom-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20%;
    box-sizing: border-box;
}

.opm-hotspot__custom-icon {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.opm-hotspot__box {
    position: absolute;
    top: 0;
    left: calc(var(--opm-hotspot-point-size) + 10px);
    width: var(--opm-hotspot-tooltip-width);
    padding: 16px 18px;
    background: var(--opm-hotspot-tooltip-bg);
    color: var(--opm-hotspot-tooltip-color);
    border-radius: var(--opm-hotspot-radius);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 250ms ease,
        transform 250ms ease,
        visibility 250ms ease;
}

.opm-hotspot__item.is-force-left .opm-hotspot__box {
    left: auto;
    right: calc(var(--opm-hotspot-point-size) + 10px);
}

.opm-hotspot__item.is-force-top .opm-hotspot__box {
    left: 0;
    top: auto;
    bottom: calc(var(--opm-hotspot-point-size) + 10px);
}

.opm-hotspot__item.is-force-bottom .opm-hotspot__box {
    left: 0;
    top: calc(var(--opm-hotspot-point-size) + 10px);
}

.opm-hotspot__item.is-force-right .opm-hotspot__box {
    left: calc(var(--opm-hotspot-point-size) + 10px);
    right: auto;
}

.opm-hotspot__item.is-active {
    z-index: 20;
}

.opm-hotspot__item.is-active .opm-hotspot__box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* COMPACT TOOLTIP MODE */

.opm-hotspot__item.is-compact-tooltip .opm-hotspot__box {
    min-height: var(--opm-hotspot-point-size);
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.opm-hotspot__item.is-compact-tooltip .opm-hotspot__title {
    margin-bottom: 0;
}

.opm-hotspot__item.is-compact-tooltip .opm-hotspot__description {
    margin-bottom: 0;
}

.opm-hotspot__title {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.opm-hotspot__description {
    display: block;
    font-size: 12px;
    line-height: 1.45;
}

.opm-hotspot__mobile-label {
    display: none;
}

/* ELEMENTOR FIX */

.elementor-editor-active .opm-hotspot,
.elementor-editor-active .opm-hotspot__image {
    pointer-events: auto !important;
}

.elementor-editor-active .opm-hotspot__item {
    pointer-events: none !important;
}

.elementor-editor-active .opm-hotspot__trigger {
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

.elementor-editor-active .opm-hotspot__box {
    pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .opm-hotspot__box,
    .opm-hotspot__icon,
    .opm-hotspot__trigger {
        transition: none !important;
    }
}

@media screen and (max-width: 900px) {

    .opm-hotspot__box {
        display: none;
    }

    .opm-hotspot__mobile-label {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 50;
        width: 80%;
        min-height: 60%;
        padding: 40px 24px 24px;
        transform: translate(-50%, -50%);
        background: var(--opm-hotspot-tooltip-bg);
        color: var(--opm-hotspot-tooltip-color);
        border-radius: var(--opm-hotspot-radius);
        opacity: 0;
        visibility: hidden;
        display: flex;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        transition: opacity 250ms ease;
    }

    .opm-hotspot__mobile-label.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .opm-hotspot__mobile-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .opm-hotspot__mobile-close::before,
    .opm-hotspot__mobile-close::after {
        content: "";
        position: absolute;
        left: 8px;
        top: 15px;
        width: 16px;
        height: 1px;
        background: var(--opm-hotspot-icon-color);
    }

    .opm-hotspot__mobile-close::before {
        transform: rotate(45deg);
    }

    .opm-hotspot__mobile-close::after {
        transform: rotate(-45deg);
    }

    .opm-hotspot__mobile-title {
        display: block;
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
    }

    .opm-hotspot__mobile-description {
        display: block;
        font-size: 13px;
        line-height: 1.45;
    }
}
