/* Compact labels share the left edge; the right corner stays available for Favorites. */
#html-body .product-item-info,
#html-body .product.media,
#html-body .product-item-photo,
#html-body .fishy-product-gallery-visual { position: relative; }
#html-body .product-labels {
    position: absolute;
    inset: 8px auto auto 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: max-content;
    max-width: min(144px, calc(100% - 64px));
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 102;
}
#html-body .product-labels .product-label-item {
    display: block;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}
#html-body .product-labels .product-label-item > div {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    min-height: 24px;
    margin: 0;
    padding: 3px 9px;
    border: 0;
    border-radius: 3px;
    background: #34483a;
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
    clip-path: none;
}
#html-body .product-labels .product-label-item > div::before,
#html-body .product-labels .product-label-item > div::after { display: none; content: none; }
#html-body .product-labels .product-label-item > .label-discount { background: #df2347; }
#html-body .product-labels .product-label-item > .label-new { background: #357519; }
#html-body .product-labels .product-label-item > .fishy-black-friday-product-label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
    background: #ed350b;
    color: white;
    font-weight: 600;
}
#html-body .product-labels .fishy-black-friday-product-label > span { font-size: inherit; line-height: inherit; }
#html-body .product.media .product-labels { max-width: min(160px, calc(100% - 64px)); }
@media (min-width: 768px) {
    #html-body .product.media .product-labels .product-label-item > div { padding: 4px 10px; font-size: 13px; line-height: 18px; }
}
@media (max-width: 359px) {
    #html-body .product-labels { gap: 3px; }
    #html-body .product-labels .product-label-item > div { padding: 3px 7px; font-size: 11px; line-height: 16px; min-height: 22px; }
}

#html-body .product-labels.product-labels-bottom {
    inset: auto auto 8px 8px;
    max-width: min(180px, calc(100% - 16px));
}
#html-body .product-labels-bottom .fishy-black-friday-product-label { white-space: nowrap; }
#html-body .fishy-product-gallery-visual:has(.fotorama__nav-wrap--horizontal .fotorama__nav--thumbs) > .product-labels-bottom {
    bottom: calc(8px + var(--fishy-gallery-thumb-height, 0px) + var(--fishy-gallery-thumb-gap, 0px));
}
/* Black Friday has its own event treatment, separate from the percentage discount. */
#html-body .product-labels .product-label-item > .fishy-black-friday-product-label {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #b99a52;
    border-left: 3px solid #e1bc67;
    border-radius: 4px;
    background: linear-gradient(115deg, #080808 0%, #252525 48%, #080808 100%);
    color: #fff;
    box-shadow: 0 3px 9px #0004, inset 0 1px 0 #ffffff1f;
    font-weight: 800;
    letter-spacing: .65px;
    text-transform: uppercase;
}
#html-body .product-labels .fishy-black-friday-product-label > span {
    position: relative;
    z-index: 1;
    color: inherit;
    font-weight: inherit;
}
#html-body .product-labels .product-label-item > .fishy-black-friday-product-label::after {
    content: '';
    display: block;
    position: absolute;
    inset: -12px 12px -12px auto;
    width: 15px;
    height: auto;
    border-radius: 0;
    background: linear-gradient(90deg, transparent, #e1bc6729, transparent);
    transform: skewX(-24deg);
    pointer-events: none;
}
