/* Product Labels & Stickers – front (JS mode, PS 1.7+) */

.fmm-has-stickers { position: relative; }

.fmm-slot {
    position: absolute;
    left: 6px;
    right: 6px;              /* explicit width → % sizes resolve against the thumbnail */
    z-index: 2;              /* above the product image, below menus/modals */
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}
.fmm-slot > * { pointer-events: auto; }

.fmm-slot--top-left,   .fmm-slot--top-center,   .fmm-slot--top-right    { top: 6px; }
.fmm-slot--bottom-left,.fmm-slot--bottom-center,.fmm-slot--bottom-right { bottom: 6px; }
.fmm-slot--center-left,.fmm-slot--center-center,.fmm-slot--center-right { top: 50%; transform: translateY(-50%); }

.fmm-slot--top-left,   .fmm-slot--center-left,   .fmm-slot--bottom-left   { align-items: flex-start; }
.fmm-slot--top-center, .fmm-slot--center-center, .fmm-slot--bottom-center { align-items: center; }
.fmm-slot--top-right,  .fmm-slot--center-right,  .fmm-slot--bottom-right  { align-items: flex-end; }

.fmm-sticker {
    position: relative;
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}
.fmm-sticker img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
    box-shadow: none;
    background: transparent;
}
.fmm-sticker__text {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 8px;
    font-style: normal;
    white-space: nowrap;
}

/* Tooltip */
.fmm-sticker__tip {
    position: absolute;
    top: 100%;
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    display: none;
    z-index: 3;
}
.fmm-sticker__tip--left  { right: 0; }
.fmm-sticker__tip--right { left: 0; }
.fmm-sticker:hover > .fmm-sticker__tip { display: block; }
