.dkLab-image-tags {
    --tooltip-box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, 0.04);
    --dklab-stitky-point-border-hover: rgba(223, 223, 223, 1);
    position: relative;
}

.dkLab-image-tags:hover .dkLab-image-tags__actions {
    opacity: 1;
    visibility: visible;
}

.dkLab-image-tags--has-hover .dkLab-image-tags__item:hover:before {
    width: 8px;
    height: 8px;
}

.dkLab-image-tags--has-overlay .dkLab-image-tags__item {
    border: 2px solid var(--dklab-stitky-point-border);
    background-color: var(--dklab-stitky-point-bg);
}

.dkLab-image-tags--has-overlay.dkLab-image-tags--has-hover .dkLab-image-tags__item:hover {
    border-color: var(--dklab-stitky-point-border-hover);
    background-color: var(--dklab-stitky-point-bg);
}

.dkLab-image-tags > img {
    max-width: none;
    width: 100%;
    height: auto;
}

.dkLab-image-tags__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    position: absolute;
    left: 8px;
    bottom: 8px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.dkLab-image-tags__btn {
    display: flex;
    align-items: center;
    height: 32px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: var(--dklab-stitky-btn-background);
    color: var(--dklab-stitky-btn-color);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.dkLab-image-tags__item {
    z-index: 2;
    position: absolute !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    translate: -50% -50%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.dkLab-image-tags__item--has-pulse {
    box-shadow: 0 0 0 0 rgb(0, 0, 0);
    animation: pulse 2s infinite;
}

.dkLab-image-tags__item:before {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    content: '';
    transition: width 0.3s ease, height 0.3s ease;
    translate: -50% -50%;
    background-color: var(--dklab-stitky-point-color);
    border-radius: 50%;
}

.dkLab-image-tags-tooltip {
    max-width: 264px;
    background-color: var(--dklab-stitky-background-color);
    box-shadow: var(--tooltip-box-shadow);
    color: var(--dklab-stitky-text-color);
}

.dkLab-image-tags-tooltip__in {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.dkLab-image-tags-tooltip__in:hover {
    color: inherit;
}

.dkLab-image-tags-tooltip__main {
    display: flex;
    align-items: center;
    column-gap: 8px;
    flex: 1;
    min-width: 1px;
}

@media (max-width: 767px) {
    .dkLab-image-tags-tooltip__main {
        padding: 8px;
    }
}

@media (min-width: 768px) {
    .dkLab-image-tags-tooltip__main {
        padding: 12px;
    }
}

.dkLab-image-tags-tooltip__image {
    width: 44px;
}

.dkLab-image-tags-tooltip__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 1px;
}

.dkLab-image-tags-tooltip__title {
    font-size: 14px;
    text-decoration: underline;
}

.dkLab-image-tags-tooltip__title:hover {
    text-decoration: none;
}

.dkLab-image-tags-tooltip__text {
    font-size: 12px;
}

.dkLab-image-tags-tooltip__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    border-left: 1px solid var(--dklab-stitky-border-color);
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%232332393F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6l6 6l-6 6" /></svg>')
        no-repeat 50% 50%;
}

@keyframes pulse {
    0% {
        scale: 0.95;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        scale: 1;
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        scale: 0.95;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.dkLab-image-tags--hidden .dkLab-image-tags__item {
    display: none;
}

/** Tippy  */
.tippy-box {
    background-color: transparent;
    box-shadow: transparent;
    border: 0px;
    color: var(--dklab-stitky-text-color);
    /* font-size: 12px; */
    /* line-height: 1.5; */
    padding: 0;
    margin: 0;
    /* border-radius: 4px; */
    z-index: 9999;
}
