/**
 * Szilamer.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * @author    Szilamer
 * @copyright Szilamer
 * @license   commercial
 */

/* Listing badge, sitting just above the price in the product miniature. */
.szts-badge {
    display: inline-block;
    padding: 2px 9px;
    margin-bottom: 6px;
    border-radius: 11px;
    background: #b8493a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}

/* Emitted for click attribution only, with the badge itself switched off. */
.szts-badge--marker {
    display: none !important;
}

/*
 * Product page flag.
 *
 * front.js normally lifts the label into the theme's ul.product-flags, where it
 * inherits the native flag geometry and only needs its own colour. The source
 * wrapper stays hidden until JS has decided, and is only revealed when no such
 * list exists.
 */
/* The li carries the theme's own flag class as well, so the selector has to be
   specific enough to win: hummingbird paints .badge blue, classic paints
   .product-flag grey, and neither says "best seller". */
.product-flags li.szts-product-flag,
ul.product-flags li.szts-product-flag,
li.badge.szts-product-flag,
li.product-flag.szts-product-flag {
    background: #b8493a;
    background-color: #b8493a;
    color: #fff;
}

.szts-flag-source {
    display: none;
}

.szts-flag-source--standalone {
    display: block;
    margin: 10px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
    .szts-badge {
        transition: background-color .15s ease-in-out;
    }
}
