/**
 * Image Hotspot Widget Styles
 */

.wml-image-hotspot {
    position: relative;
}

.wml-image-hotspot .wml-hotspot-figure {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.wml-image-hotspot .wml-hotspot-image {
    width: 100%;
    height: auto;
    display: block;
}

.wml-image-hotspot .wml-hotspot-close {
    display: none;
}

.wml-image-hotspot .wml-hotspot-content-wrapper {
    position: relative;
}

/* Popup Content */
.wml-image-hotspot .wml-hotspot-content {
    background: #131313;
    border-radius: 5px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.22);
    color: #fff;
    opacity: 0;
    position: absolute;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    width: 360px;
    z-index: 4;
}

.wml-image-hotspot .wml-hotspot-content .wml-hotspot-content-wrapper {
    padding: 20px;
}

.wml-image-hotspot .wml-hotspot-content .wml-hotspot-title {
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.wml-image-hotspot .wml-hotspot-content p {
    font-size: 13px;
    margin: 0;
    padding: 0;
}

/* Hidden Checkbox Input */
.wml-image-hotspot .wml-hotspot-input {
    height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    text-indent: -9999px;
    width: 0;
    z-index: -1;
}

/* Hotspot Marker Label */
.wml-image-hotspot .wml-hotspot-input+.wml-hotspot-label {
    background: #ec2256;
    border-radius: 50%;
    cursor: pointer;
    height: 20px;
    position: absolute;
    transition: all 300ms ease;
    width: 20px;
    z-index: 2;
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
    .wml-image-hotspot .wml-hotspot-input+.wml-hotspot-label {
        height: 30px;
        width: 30px;
    }
}

/* Plus icon on hotspot */
.wml-image-hotspot .wml-hotspot-input+.wml-hotspot-label::before,
.wml-image-hotspot .wml-hotspot-input+.wml-hotspot-label::after {
    background: #fff;
    content: "";
    cursor: pointer;
    display: block;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.wml-image-hotspot .wml-hotspot-input+.wml-hotspot-label::before {
    height: 2px;
    width: 40%;
}

.wml-image-hotspot .wml-hotspot-input+.wml-hotspot-label::after {
    height: 40%;
    width: 2px;
}

/* Overlay (for closing popup) */
.wml-image-hotspot .wml-hotspot-input~.wml-hotspot-overlay {
    display: none;
    height: 100%;
    left: 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 3;
}

/* Checked state - rotate marker to X */
.wml-image-hotspot .wml-hotspot-input:checked+.wml-hotspot-label {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Checked state - show popup */
.wml-image-hotspot .wml-hotspot-input:checked~.wml-hotspot-content {
    opacity: 1;
    visibility: visible;
}

/* Checked state - show overlay */
.wml-image-hotspot .wml-hotspot-input:checked~.wml-hotspot-overlay {
    display: block;
}

/* Hotspot Modal Container */
.wml-image-hotspot .wml-hotspot-modal {
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1;
}

/* Blur Effect State */
.wml-image-hotspot.wml-hotspot-blur .wml-hotspot-figure {
    -webkit-filter: blur(2px);
    -moz-filter: blur(2px);
    -o-filter: blur(2px);
    -ms-filter: blur(2px);
    filter: blur(2px);
}

.wml-image-hotspot.wml-hotspot-blur .wml-hotspot-input {
    display: none;
}

.wml-image-hotspot.wml-hotspot-blur .wml-hotspot-input+.wml-hotspot-label {
    opacity: 0.5;
    pointer-events: none;
}

.wml-image-hotspot.wml-hotspot-blur .wml-hotspot-input:checked {
    display: inline-block;
}

.wml-image-hotspot.wml-hotspot-blur .wml-hotspot-input:checked+.wml-hotspot-label {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Responsive - Center Popup */
@media (max-width: 768px) {
    .wml-image-hotspot .wml-hotspot-content {
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 90vw;
    }

    .wml-image-hotspot .wml-hotspot-close {
        background: #ec2256;
        border-radius: 50%;
        cursor: pointer;
        display: block;
        height: 20px;
        right: -5px;
        position: absolute;
        top: -5px;
        transition: all 300ms ease;
        transform: rotate(45deg);
        width: 20px;
        z-index: 5;
    }

    .wml-image-hotspot .wml-hotspot-close::before,
    .wml-image-hotspot .wml-hotspot-close::after {
        background: #fff;
        content: "";
        cursor: pointer;
        display: block;
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .wml-image-hotspot .wml-hotspot-close::before {
        height: 2px;
        width: 40%;
    }

    .wml-image-hotspot .wml-hotspot-close::after {
        height: 40%;
        width: 2px;
    }
}