.mt-hotspot-widget {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 1;
    transition: z-index 0s;
}

.mt-hotspot-widget.active {
    z-index: 10;
}

/* Ensure inactive widgets don't block clicks on other widgets */
.mt-hotspot-widget:not(.active) .mt-hotspot-circle {
    pointer-events: auto;
}

/* When a widget is active, ensure its content doesn't block other widgets */
.mt-hotspot-widget.active .mt-hotspot-circle {
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    cursor: default;
    pointer-events: none;
}

.mt-hotspot-widget.active .mt-hotspot-text,
.mt-hotspot-widget.active .mt-hotspot-close {
    pointer-events: auto;
}

.mt-hotspot-circle {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 2;
    position: relative;
    overflow: hidden;
    position: absolute;
    top: 0; /* Default animation direction: down */
}

/* Animation direction: up */
.mt-hotspot-animation-up .mt-hotspot-circle {
    bottom: 0;
    top: auto;
}

.mt-hotspot-plus {
    user-select: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.2s 0.1s;
    pointer-events: none;
}

.mt-hotspot-plus svg{
    display: block;
}

.mt-hotspot-close,
.mt-hotspot-text {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s 0.1s;
}

.mt-hotspot-close {
    position: absolute;
    top: 32px;
    right: 40px;
    background: none;
    border: none;
    font-size: 30px !important;
    padding: 0 !important;
    background-color: transparent !important;
    cursor: pointer;
    z-index: 11;
}

.mt-hotspot-text {
    white-space: pre-line;
    width: 80%;
    transform: scale(0);
    transition: transform 0.1s 0.05s, opacity 0.3s 0.2s;
}

.mt-hotspot-widget.active .mt-hotspot-plus {
    opacity: 0;
    transition: opacity 0.1s;
}

.mt-hotspot-widget.active .mt-hotspot-close,
.mt-hotspot-widget.active .mt-hotspot-text {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s 0.2s;
}

.mt-hotspot-widget.active .mt-hotspot-text{
    transform: scale(1);
}