.sto-mm-ai-media,
.sto-mm-ai-background {
    --sto-mm-ai-edge-x: 12px;
    --sto-mm-ai-edge-y: 12px;
    --sto-mm-ai-font-size: 10px;
    --sto-mm-ai-z-index: 20;
    position: relative;
    box-sizing: border-box;
}

.sto-mm-ai-media {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    vertical-align: middle;
}

.sto-mm-ai-media > img,
.sto-mm-ai-media > picture,
.sto-mm-ai-media > picture > img {
    display: block;
    max-width: 100%;
}

.sto-mm-ai-media > picture {
    width: 100%;
}

.sto-mm-ai-badge {
    position: absolute;
    z-index: var(--sto-mm-ai-z-index);
    box-sizing: border-box;
    max-width: calc(100% - (2 * var(--sto-mm-ai-edge-x)));
    max-height: calc(100% - (2 * var(--sto-mm-ai-edge-y)));
    padding: 0.3em 0.5em;
    overflow: hidden;
    border-radius: 2px;
    outline: 1px solid currentColor;
    outline-offset: 0;
    font-family: inherit;
    font-size: max(8px, var(--sto-mm-ai-font-size));
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.sto-mm-ai-badge--positive {
    color: #fff;
    background: #000;
    outline-color: #fff;
}

.sto-mm-ai-badge--negative {
    color: #000;
    background: #fff;
    outline-color: #000;
}

.sto-mm-ai-badge--upper-left {
    top: var(--sto-mm-ai-edge-y);
    left: var(--sto-mm-ai-edge-x);
}

.sto-mm-ai-badge--upper-center {
    top: var(--sto-mm-ai-edge-y);
    left: 50%;
    transform: translateX(-50%);
}

.sto-mm-ai-badge--upper-right {
    top: var(--sto-mm-ai-edge-y);
    right: var(--sto-mm-ai-edge-x);
}

.sto-mm-ai-badge--lower-left {
    bottom: var(--sto-mm-ai-edge-y);
    left: var(--sto-mm-ai-edge-x);
}

.sto-mm-ai-badge--lower-center {
    bottom: var(--sto-mm-ai-edge-y);
    left: 50%;
    transform: translateX(-50%);
}

.sto-mm-ai-badge--lower-right {
    right: var(--sto-mm-ai-edge-x);
    bottom: var(--sto-mm-ai-edge-y);
}

.sto-mm-ai-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
