.aipkit-icon {
    display: block;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.aipkit-image-history-report-btn,
.aipkit-image-history-download-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, background-color .2s;
    z-index: 3;
    text-decoration: none;
}

.aipkit-image-history-item:hover .aipkit-image-history-report-btn,
.aipkit-image-history-item:hover .aipkit-image-history-download-btn,
.aipkit-image-history-item:focus-within .aipkit-image-history-report-btn,
.aipkit-image-history-item:focus-within .aipkit-image-history-download-btn {
    opacity: 1;
    visibility: visible;
}

.aipkit-image-history-report-btn {
    top: 33px;
    right: 5px;
}

.aipkit-image-history-item--has-edit-actions .aipkit-image-history-report-btn {
    top: 61px;
}

.aipkit-image-history-report-btn:hover {
    background: #f59e0bcc;
}

.aipkit-image-history-download-btn {
    top: 61px;
    right: 5px;
    text-decoration: none;
}

.aipkit-image-history-item--has-edit-actions .aipkit-image-history-download-btn {
    top: 89px;
}

.aipkit-image-history-download-btn:hover {
    background: #2563ebcc;
}

.aipkit_shortcode_container.aipkit_image_generator_public_wrapper .aipkit_image_result .aipkit-image-history-download-btn,
.aipkit_shortcode_container.aipkit_image_generator_public_wrapper .aipkit_video_result .aipkit-image-history-download-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    padding: 0 !important;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
}

.aipkit_shortcode_container.aipkit_image_generator_public_wrapper .aipkit_image_result .aipkit-image-history-download-btn .dashicons,
.aipkit_shortcode_container.aipkit_image_generator_public_wrapper .aipkit_video_result .aipkit-image-history-download-btn .dashicons {
    display: block !important;
    margin: 0 !important;
}

.aipkit-image-history-report-btn .dashicons,
.aipkit-image-history-download-btn .dashicons {
    font-size: 16px;
    line-height: 1;
    width: 16px;
    height: 16px;
}

@media (hover: none), (pointer: coarse) {
    .aipkit-image-history-report-btn,
    .aipkit-image-history-download-btn {
        opacity: 1;
        visibility: visible;
    }
}
