/*
 * The plugin never changes the image's width, height or object-fit.
 * The Elementor element only becomes the positioning context for the overlay.
 */
.elementor-element.hzv-ai-labelled,
.elementor-element.hzv-ai-runtime-labelled {
    position: relative;
}

.elementor-element > .hzv-ai-label {
    position: absolute;
    right: var(--hzv-ai-label-right, max(12px, env(safe-area-inset-right)));
    bottom: var(--hzv-ai-label-bottom, max(12px, env(safe-area-inset-bottom)));
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    box-sizing: border-box;
    padding: 4px 8px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.10);
    color: #fff;
    font: 600 12px/1.2 Arial, sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 767px) {
    .elementor-element > .hzv-ai-label {
        min-height: 20px;
        padding: 3px 6px;
        font-size: 10px;
    }
}
