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

.aipkit-image-history-report-btn,
.aipkit-image-history-download-btn {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    background: rgba(7, 13, 24, 0.84);
    color: #eaf7ff;
    border: 1px solid rgba(103, 203, 255, 0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, background-color .2s, border-color .2s, transform .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: 46px;
}

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

.aipkit-image-history-report-btn:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
}

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

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

.aipkit-image-history-download-btn:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.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: 30px;
    height: 30px;
}

.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;
    }
}
