@charset "UTF-8";

/* One vector badge for server-rendered and dynamically loaded companies. */
.vip-badge {
    display: inline-block;
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    padding: 0;
    margin: 0 0 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent url("../images/vip-badge.svg") center / contain no-repeat;
    vertical-align: -5px;
    line-height: 1;
}

.vip-company-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.vip-company-name > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.vip-company-name > .vip-badge { margin: 0; }
.page-banner .vip-company-name { justify-content: center; }

.featured-product-badge {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1px solid #d8ae69;
    border-radius: 6px;
    background: linear-gradient(155deg, #fffaf0, #f9e7bf);
    color: #955713;
    vertical-align: -4px;
    cursor: default;
}

.featured-product-badge > svg {
    display: block;
    width: 13px;
    height: 13px;
    fill: #eab65a;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linejoin: round;
}

.product-title-with-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.product-title-with-badge > :not(.featured-product-badge) { min-width: 0; }

.product-card .product-title-with-badge > a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-info h1 .featured-product-badge,
.en-detail-info h1 .featured-product-badge { width: 25px; height: 25px; }

.detail-info h1 .featured-product-badge > svg,
.en-detail-info h1 .featured-product-badge > svg { width: 16px; height: 16px; }
