﻿.hotspot-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px;
}

    .hotspot-wrapper img {
        display: block;
        max-width: 100%;
        border-radius: 6px;
    }

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #555;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: #0dcaf0;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.topbar {
    position: absolute;
    top: -40px;
    left: 8px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    z-index: 10;
}

    .topbar span {
        margin-left: 6px;
        font-size: 13px;
    }

.hotspot {
    position: absolute;
    border: 2px dashed #0dcaf0;
    border-radius: 8px;
    cursor: pointer;
    display: none;
}

.hotspot-wrapper.show-hotspots .hotspot {
    display: block;
}

.ihs-tooltip {
    position: absolute;
    background: #222;
    color: #eee;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    max-width: 200px;
    display: none;
    z-index: 2000;
}

    .ihs-tooltip.show {
        display: block;
    }

.tooltip-label {
    font-weight: bold;
    background: #0dcaf0;
    color: #111;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.tooltip-desc {
    font-size: 12px;
    line-height: 1.4;
}
