Extract CSS when popup opened