/**
 * © Tebim sp. z o.o. | tebim.pro
 */

.tebim-product-label__icon,
.tebim-product-label__icon svg {
    width: 1.1em;
    height: 1.1em;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

/* Label with a graphic and no text: a larger icon with even padding around it. */
.tebim-product-label--icon-only {
    padding: 0.4em;
}

.tebim-product-label--icon-only .tebim-product-label__icon,
.tebim-product-label--icon-only .tebim-product-label__icon svg {
    width: var(--tebim-label-icon-size, 2.5rem);
    height: var(--tebim-label-icon-size, 2.5rem);
}

/* "Ignore background colour": no badge at all. The template also omits the inline
   background-color; `color` still applies, so an SVG drawn with currentColor keeps the
   label's text colour. Independent of the name — works with or without text. */
.tebim-product-label--transparent {
    background: none;
    padding: 0;
    border: 0;
    box-shadow: none;
}

/* On a product miniature the labels overlay the image (top-right), like the theme's own
   flags sit top-left, instead of pushing the image down. */
.product-miniature__top {
    position: relative;
}

.product-miniature__top > .tebim-product-labels {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    flex-direction: column;
    align-items: flex-end;
}
