.tag {
    position: relative;
    min-width: min-content;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-xs);
    color: var(--color-text-primary);
    border: 1px solid var(--border-color-alpha-black-10);
    cursor: pointer;
    background: none;
    box-shadow: none;
    overflow: hidden;
    box-sizing: border-box;
    transition: color 0.3s ease;
}

.md {
    min-height: 40px;
    padding: var(--spacing-12) var(--spacing-16);
}

.lg {
    min-height: 52px;
    padding: var(--spacing-18) var(--spacing-20);
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(93deg, var(--color-indigo-200) 8.06%, var(--color-indigo-400) 160.95%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.active {
    color: var(--color-text-primary-inverted);
    border-color: transparent;
    cursor: default;
}

.active::before {
    opacity: 1;
}

.tag:disabled {
    cursor: not-allowed;
    color: var(--color-text-primary-disabled);
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: var(--spacing-8);
    z-index: 1;
}

.iconWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    max-height: 16px;
    overflow: hidden;

    & > * {
        width: 100%;
        height: 100%;
    }
}


.labelLg {
    font-family: var(--font-default), sans-serif;
    line-height: var(--line-height-sm);
    letter-spacing: var(--letter-spacing-negative-md);
    font-weight: var(--font-weight-regular);
    font-style: normal;
    font-size: var(--font-size-md);
}

.labelMd {
    font-family: var(--font-default), sans-serif;
    line-height: var(--line-height-xs);
    letter-spacing: var(--letter-spacing-negative-md);
    font-weight: var(--font-weight-regular);
    font-style: normal;
    font-size: var(--font-size-sm);
}
