/* 商品变体：图片色块下方补充文字标签
 * 由 AliDropship 渲染的 .adsw-attribute-option 只有图片，title 属性里有文字但不可见。
 * 这里用 ::after + attr(title) 把文字显示在图片下方，无需 JS。
 * 2026-11-23
 */

.adsw-attribute-option {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.adsw-attribute-option .meta-item-img {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 80px;
    cursor: pointer;
}

.adsw-attribute-option .meta-item-img::after {
    content: attr(title);
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: #55606b;
    text-align: center;
    overflow-wrap: anywhere;
}

.adsw-attribute-option .meta-item-img.active::after {
    color: #111418;
    font-weight: 600;
}

/* 纯文字型变体（无图）保持原样，只做对齐 */
.adsw-attribute-option .meta-item-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
}
