/* Badge container */
.mvb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Single badge */
.mvb-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mvb-badge:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Badge image */
.mvb-badge-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.mvb-badge-placeholder {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 24px;
}

.mvb-badge-tooltip {
    position: absolute;
    z-index: 9999;
    bottom: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: 220px;
    padding: 7px 10px;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.mvb-badge-tooltip::after {
    position: absolute;
    top: 100%;
    left: 50%;
    border: 5px solid transparent;
    border-top-color: #222;
    content: "";
    transform: translateX(-50%);
}

.mvb-badge:hover .mvb-badge-tooltip,
.mvb-badge:focus-visible .mvb-badge-tooltip,
.mvb-badge.is-tooltip-open .mvb-badge-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Product page wrapper */
.mvb-product-vendor-badges {
    margin: 12px 0;
    /* background: #eee4; */
    padding: 12px;
    border-radius: 12px;
}

/* Store page wrapper */
.mvb-store-badges {
    margin-top: 10px;
}
