.max-elements-image-hotspots-container {
    position: relative;
    width: fit-content;
}

.max-elements-image-hotspots-items {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.max-elements-hotspot-item {
    position: absolute;
    display: flex;
    justify-content: center;
}

.max-elements-image-hotspots-image {
    overflow: hidden;
}

.max-elements-hotspot-content {
    display: flex;
    justify-content: center;

    i {
        display: flex;
        align-self: center;
        flex-flow: column;
    }
}

.max-elements-hotspot-icon-text {
    display: flex;
    align-self: center;
    flex-flow: column;
}

.max-elements-hotspot-content i {
    text-align: center;
}

.max-elements-hotspot-icon-text-position-right .max-elements-has-hotspot-icon-text:not(.max-elements-has-hotspot-icon-reverse),
.max-elements-hotspot-icon-text-position-left .max-elements-has-hotspot-icon-text.max-elements-has-hotspot-icon-reverse {
    flex-flow: row-reverse;
}

.max-elements-hotspot-tooltip-content {
    &:before {
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 0;
        content: "";
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        border-width: 5px;
        border-top-style: solid;
        border-top-color: #222222;
        border-right-style: solid;
        border-right-color: transparent;
        border-left-style: solid;
        border-left-color: transparent;
    }

    position: absolute;
    top: 0;
    visibility: hidden;
    margin-top: -5px;
    transition: opacity 0.15s ease-in,
    top 0.15s ease-in,
    width 0.15s ease-in,
    min-width 0.15s ease-in;
    opacity: 0;
    background-color: transparent;
}

.max-elements-hotspot-item {

    &.max-elements-hotspot-tooltip-always-show .max-elements-hotspot-tooltip-content,
    &:hover .max-elements-hotspot-tooltip-content {
        top: -5px;
        visibility: visible;
        transform: translate(0%, -100%);
        opacity: 1;
        background-color: #222222;
        z-index: 1;
    }

    &.max-elements-hotspot-tooltip-always-show .max-elements-hotspot-tooltip-content {
        animation: none;
        transition: none;
    }
}

.max-elements-hotspot-animation-simple .max-elements-hotspot-item {

    &.max-elements-hotspot-tooltip-always-show .max-elements-hotspot-tooltip-content,
    &:hover .max-elements-hotspot-tooltip-content {
        animation: max-elements-hotspot-animation-simple 300ms ease-out;
    }
}

.max-elements-hotspot-animation-shake .max-elements-hotspot-item {

    &.max-elements-hotspot-tooltip-always-show .max-elements-hotspot-tooltip-content,
    &:hover .max-elements-hotspot-tooltip-content {
        animation: max-elements-hotspot-animation-shake 500ms ease-in-out forwards;
    }
}

.max-elements-hotspot-animation-double-shake .max-elements-hotspot-item {

    &.max-elements-hotspot-tooltip-always-show .max-elements-hotspot-tooltip-content,
    &:hover .max-elements-hotspot-tooltip-content {
        animation: max-elements-hotspot-animation-double-shake cubic-bezier(0.36, 0.07, 0.19, 0.97) 1000ms forwards;
    }
}

.max-elements-hotspot-animation-stretch .max-elements-hotspot-item {

    &.max-elements-hotspot-tooltip-always-show .max-elements-hotspot-tooltip-content,
    &:hover .max-elements-hotspot-tooltip-content {
        animation: max-elements-hotspot-animation-stretch 1s ease-out;
    }
}

.max-elements-hotspot-animation-floating .max-elements-hotspot-item {

    &.max-elements-hotspot-tooltip-always-show .max-elements-hotspot-tooltip-content,
    &:hover .max-elements-hotspot-tooltip-content {
        animation: max-elements-hotspot-animation-floating 1s ease-in-out infinite alternate;
    }
}

@keyframes max-elements-hotspot-animation-simple {
    0% {
        transform: translate(0%, -80%);
    }

    50% {
        transform: translate(0%, -100%);
    }

    100% {
        transform: translate(0%, -100%);
    }
}

@keyframes max-elements-hotspot-animation-shake {
    0% {
        transform: translate(0%, -80%) rotate(2deg);
    }

    50% {
        transform: translate(0%, -100%) rotate(-3deg);
    }

    70% {
        transform: translate(0%, -100%) rotate(3deg);
    }

    100% {
        transform: translate(0%, -100%) rotate(0deg);
    }
}

@keyframes max-elements-hotspot-animation-double-shake {
    0% {
        transform: translate(0%, -100%) rotate(0deg);
    }

    50% {
        transform: translate(0%, -100%) rotate(5deg);
    }

    60% {
        transform: translate(0%, -100%) rotate(-5deg);
    }

    70% {
        transform: translate(0%, -100%) rotate(5deg);
    }

    80% {
        transform: translate(0%, -100%) rotate(-5deg);
    }

    100% {
        transform: translate(0%, -100%) rotate(0deg);
    }
}

@keyframes max-elements-hotspot-animation-stretch {
    0% {
        transform: translate(0%, 0%) scale(1, 1);
    }

    10% {
        transform: translate(0%, -50%) scale(1.1, 0.9);
    }

    30% {
        transform: translate(0%, -100%) scale(0.9, 1.1);
    }

    50% {
        transform: translate(0%, -100%) scale(1.05, 0.95);
    }

    100% {
        transform: translate(0%, -100%) scale(1, 1);
    }
}

@keyframes max-elements-hotspot-animation-floating {
    0% {
        transform: translate(0%, -100%) translateY(5px);
    }

    100% {
        transform: translate(0%, -100%) translateY(0px);
    }
}

.max-elements-hotspot-item-animation-yes .max-elements-hotspot-item {

    &:before,
    &:after {
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
        content: '';
        opacity: 0.6;
    }

    &:before {
        animation: max-elements-hotspot-item-animation 3s ease-out infinite;
    }

    &:after {
        animation: max-elements-hotspot-item-animation 3s 1.5s ease-out infinite;
    }
}

@keyframes max-elements-hotspot-item-animation {
    100% {
        transform: scale(2);
        opacity: 0;
    }
}