/* RW-3791 - badge AI (PD zdjęcia/banery, PG filmy;) */
.banner-image,
.banner-video,
.thumbnail,
.thumbnail.video-thumb,
a.photo,
.photo,
.one-photo.product-zoom-wrapper,
.video-box-content,
.cms-ai-badge-wrap,
.img.ai-badge-anchor,
.img-block.ai-badge-anchor,
.img-block a.ai-badge-anchor,
a.ai-badge-anchor,
.koszyk.pic {
    position: relative;
}

.cms-ai-badge-wrap,
.img.ai-badge-anchor,
.img-block.ai-badge-anchor,
.img-block a.ai-badge-anchor,
a.ai-badge-anchor {
    display: inline-block;
}

.cms-ai-badge-wrap {
    max-width: 100%;
}

.ai-badge {
    position: absolute;
    bottom: 0.35rem;
    right: 0.35rem;
    z-index: 12;
    width: 2.5rem !important;
    max-width: 2.5rem !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0;
    pointer-events: none;
    object-fit: contain;
    display: block;
}

/* Miniatury (koszyk, thumbs, autosuggest) */
.ai-badge--small {
    left: auto !important;
    right: 2px !important;
    bottom: 2px !important;
    width: 1.25rem !important;
    max-width: 1.25rem !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#search_block .img-block a.ai-badge-anchor {
    position: relative;
    display: inline-block;
    line-height: 0;
    max-width: 70px;
}

.koszyk.pic a.ai-badge-anchor {
    overflow: hidden;
}

/* Filmy produktu — prawy górny */
.ai-badge--video {
    top: 0.35rem !important;
    bottom: auto !important;
    right: 0.35rem !important;
}

.affiliate-video-wrapper .ai-badge--video {
    top: 1.8rem !important;
    right: 0.4rem !important;
}

.banner-image > .ai-badge,
.banner-video > .ai-badge {
    bottom: 0.4rem !important;
    right: 0.4rem !important;
}

/* Panel sprzedawcy — select oznaczenia AI */
.ai-flag-select {
    display: block;
    width: 95%;
    margin-top: 2px;
    font-size: 0.7rem;
}

.ai-flag-label {
    display: block;
    font-size: 0.55rem;
    margin: 4px 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
}

@media (max-width: 800px) {
    .ai-badge {
        width: 2.25rem !important;
        max-width: 2.25rem !important;
    }

    .ai-badge--small {
        width: 1.5rem !important;
        max-width: 1.5rem !important;
    }

    .affiliate-video-wrapper .ai-badge--video {
        top: 1.2rem !important;
    }
}
