.mx-hotspot-figure {
    margin: 0 0 1.5em;
    container-type: inline-size;
}

.mx-hotspot-stage {
    position: relative;
}

.mx-hotspot-inline {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.mx-hotspot-inline.aligncenter { display: table; }

.mx-hotspot-inline > .mx-hotspot-stage,
.mx-hotspot-inline > .mx-hotspot-stage > :is(a, picture) { display: block; }

.mx-hotspot-inline > .mx-hotspot-stage img {
    display: block;
    max-width: 100%;
}

.mx-hotspot-inline > .mx-hotspot-stage img:is(.alignleft, .alignright, .aligncenter) {
    float: none;
    margin: 0;
}

.mx-hotspot-stage .mx-hotspot-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.mx-hotspot-area {
    position: absolute;
    z-index: 1;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.mx-hotspot-area:active { background-color: rgb(6 87 168 / 16%); }

.mx-hotspot-area:focus-visible {
    z-index: 2;
    outline: 2px solid #0657a8;
    outline-offset: -2px;
    background: rgb(6 87 168 / 8%);
}

.mx-hotspot-arrow {
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: #fff;
    line-height: 1.2;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: rgb(6 87 168 / 65%);
    border-radius: 50%;
    border: 1px solid #fff;
    font-size: 15px;
}

.mx-hotspot-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .mx-hotspot-area:hover {
        z-index: 2;
        outline: 2px solid #0657a8;
        outline-offset: -2px;
        background: rgb(6 87 168 / 8%);
    }

    .mx-hotspot-label {
        inset: auto 4px 32px auto;
        width: auto;
        height: auto;
        max-width: calc(100% - 8px);
        padding: 4px 7px;
        border-radius: 4px;
        background: #0657a8;
        color: #fff;
        font-size: 13px;
        line-height: 1.2;
        overflow: visible;
        overflow-wrap: anywhere;
        white-space: normal;
        clip-path: none;
        opacity: 0;
    }

    .mx-hotspot-area:is(:hover, :focus-visible) .mx-hotspot-label {
        opacity: 1;
    }
}

.mx-hotspot-mobile-links {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.mx-hotspot-mobile-links.mx-hotspot-always-visible { display: grid; }

.mx-hotspot-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 44px;
    height: 100%;
    padding: 6px 10px;
    border: 1px solid #b8cee4;
    border-radius: 5px;
    color: #06457f;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.mx-hotspot-mobile-links a:hover,
.mx-hotspot-mobile-links a:focus-visible {
    border-color: #0657a8;
    background: #eef6ff;
    color: #06457f;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    @container (max-width: 620px) {
        .mx-hotspot-figure .mx-hotspot-mobile-links { display: grid; }
    }
}

@container (max-width: 380px) {
    .mx-hotspot-arrow {
        width: 19px;
        height: 19px;
        font-size: 12px;
    }
}
