/* Overlay style */
.highlight-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    pointer-events: auto;
}

/* Tooltip-style Popup container */
.highlight-popup-box {
    position: absolute;
    z-index: 9999;
    padding: 12px 24px 12px 24px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: min(100% - 48px, 400px);
    transition: top 0.3s ease, left 0.3s ease;
}

/* Arrow */
.highlight-popup-box::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Arrow for top */
.highlight-popup-box.top::before {
    border-width: 10px 10px 0 10px;
    border-color: white transparent transparent transparent;
    bottom: -10px;
    left: calc(50% - 10px);
}

/* Arrow for bottom */
.highlight-popup-box.bottom::before {
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent white transparent;
    top: -10px;
    left: calc(50% - 10px);
}

/* Arrow for left */
.highlight-popup-box.left::before {
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
    top: calc(50% - 10px);
    right: -10px;
}

/* Arrow for right */
.highlight-popup-box.right::before {
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
    top: calc(50% - 10px);
    left: -10px;
}

/* Arrow for topleft */
.highlight-popup-box.topleft::before {
    border-width: 10px 0 0 10px;
    border-color: white transparent transparent transparent;
    bottom: -10px;
    right: 10px;
}

/* Arrow for topright */
.highlight-popup-box.topright::before {
    border-width: 10px 10px 0 0;
    border-color: white transparent transparent transparent;
    bottom: -10px;
    left: 10px;
}

/* Arrow for bottomleft */
.highlight-popup-box.bottomleft::before {
    border-width: 0 10px 10px 0;
    border-color: transparent transparent white transparent;
    top: -10px;
    right: 10px;
}

/* Arrow for bottomright */
.highlight-popup-box.bottomright::before {
    border-width: 0 0 10px 10px;
    border-color: transparent transparent white transparent;
    top: -10px;
    left: 10px;
}

/* Close button in popup (now <a> tag) */
.highlight-popup-close {
    position: absolute;
    top: 6px;
    right: 12px;
    background: none;
    color: grey;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.highlight-popup-close:hover {
    color: black;
}

/* Close button in top-right corner of the screen */
.highlight-popup-screen-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    color: grey;
    text-decoration: none;
    font-size: 4rem;
    cursor: pointer;
    z-index: 10000;
}

.highlight-popup-screen-close:hover {
    color: black;
}

/* Clone element styling */
.highlight-popup-clone {
    position: absolute !important;
    z-index: 9999 !important;
}

/*# sourceMappingURL=highlight-popup.css.map */
